coredump: vacuum - fix calculation of 10% of fs size for MaxUse

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-07-01 23:11:47 +02:00 committed by Tom Gundersen
parent 926695f1b5
commit cd4ba18a84

View file

@ -104,8 +104,8 @@ static bool vacuum_necessary(int fd, off_t sum, off_t keep_free, off_t max_use)
if (max_use < DEFAULT_MAX_USE_LOWER)
max_use = DEFAULT_MAX_USE_LOWER;
}
max_use = DEFAULT_MAX_USE_LOWER;
else
max_use = DEFAULT_MAX_USE_LOWER;
} else
max_use = PAGE_ALIGN(max_use);