]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fallocate: use POSIX_FADV_DONTNEED to discard cached data
authorKarel Zak <kzak@redhat.com>
Tue, 18 Feb 2014 12:01:52 +0000 (13:01 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Feb 2014 12:01:52 +0000 (13:01 +0100)
commitc12eff4ce05b2236d9479ffd14c5ae4006caeaf6
treec31d1ef80303c0a1052809106b2c497c65006d21
parentdb5f00bc880200e5fc83257db7ea6b06853708c5
fallocate: use POSIX_FADV_DONTNEED to discard cached data

The patch discard cached data in 1MiB (or bigger) steps.

Thanks to Pádraig Brady.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fallocate.c