diff --git a/pgxn/neon/file_cache.c b/pgxn/neon/file_cache.c index 143ad4bf67..8fe53b1e7d 100644 --- a/pgxn/neon/file_cache.c +++ b/pgxn/neon/file_cache.c @@ -14,7 +14,7 @@ */ #include -#include +#include #include #include @@ -204,7 +204,7 @@ lfc_change_limit_hook(int newval, void *extra) * * Interval of poooling cache state is calculated as minimal time needed to consume lfc_free_space_watermark * disk space with maximal possible disk write speed (1Gb/sec). But not larger than 1 second. - * Callinng statfs each second should not add some noticable overhead. + * Callinng statvfs each second should not add some noticable overhead. */ void FileCacheMonitorMain(Datum main_arg) @@ -226,8 +226,8 @@ FileCacheMonitorMain(Datum main_arg) { if (lfc_size_limit != 0) { - struct statfs sfs; - if (statfs(lfc_path, &sfs) < 0) + struct statvfs sfs; + if (statvfs(lfc_path, &sfs) < 0) { elog(WARNING, "Failed to obtain status of %s: %m", lfc_path); }