From: Lennart Poettering Date: Thu, 21 Jun 2012 21:56:03 +0000 (+0200) Subject: readahead: make use of util.h's page_size() call X-Git-Tag: v186~129 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a0bbec1ab0493963bacb5364304fa57afbd14277;p=elogind.git readahead: make use of util.h's page_size() call --- diff --git a/src/readahead/readahead-analyze.c b/src/readahead/readahead-analyze.c index 5a5b9176d..9c328a5f5 100644 --- a/src/readahead/readahead-analyze.c +++ b/src/readahead/readahead-analyze.c @@ -45,7 +45,6 @@ int main_analyze(const char *pack_path) uint32_t b; uint32_t c; struct stat st; - int pagesize = getpagesize(); if (!pack_path) pack_path = "/.readahead"; @@ -109,7 +108,7 @@ int main_analyze(const char *pack_path) if (sections == 0) size = st.st_size; else - size = pages * pagesize; + size = pages * page_size(); tsize += size;