readahead: make use of util.h's page_size() call

This commit is contained in:
Lennart Poettering 2012-06-21 23:56:03 +02:00
parent 87ce22cc0d
commit a0bbec1ab0

View File

@ -45,7 +45,6 @@ int main_analyze(const char *pack_path)
uint32_t b; uint32_t b;
uint32_t c; uint32_t c;
struct stat st; struct stat st;
int pagesize = getpagesize();
if (!pack_path) if (!pack_path)
pack_path = "/.readahead"; pack_path = "/.readahead";
@ -109,7 +108,7 @@ int main_analyze(const char *pack_path)
if (sections == 0) if (sections == 0)
size = st.st_size; size = st.st_size;
else else
size = pages * pagesize; size = pages * page_size();
tsize += size; tsize += size;