diff options
author | Sami Kerola | 2014-07-16 22:54:57 +0200 |
---|---|---|
committer | Karel Zak | 2014-07-17 14:01:00 +0200 |
commit | 0407c1bef9f5bc39da0fcf2e21bc5bd8b48b5349 (patch) | |
tree | bea5d6d977f5d3885699185b998d83e6c4de0c43 /sys-utils/fstrim.c | |
parent | lib/colors: remove memory leak (diff) | |
download | kernel-qcow2-util-linux-0407c1bef9f5bc39da0fcf2e21bc5bd8b48b5349.tar.gz kernel-qcow2-util-linux-0407c1bef9f5bc39da0fcf2e21bc5bd8b48b5349.tar.xz kernel-qcow2-util-linux-0407c1bef9f5bc39da0fcf2e21bc5bd8b48b5349.zip |
fallocate: avoid unnecessary computation
Where POSIX_FADV_SEQUENTIAL and HAVE_POSIX_FADVISE are not available it
is waste of resources to have variables that are meaningful only for
posix_fadvise(). Also initialize the variables immediately to correct
values, and since cachesz is never changed mark it read only.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/fstrim.c')
0 files changed, 0 insertions, 0 deletions