]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: fiemap should honor the FIEMAP_FLAG_SYNC flag
authorDave Chinner <dchinner@redhat.com>
Tue, 16 Aug 2016 22:41:10 +0000 (08:41 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 16 Aug 2016 22:41:10 +0000 (08:41 +1000)
commit5de49ed7cb2154032ead1ddfc4317b011bd847e1
tree2679e5c31f31e9168da223b8c016bba2b29cbe96
parente62ebf166995e36dae6ad8c280f868a10c487417
iomap: fiemap should honor the FIEMAP_FLAG_SYNC flag

The flag is checked as supported, but then we do an unconditional
sync of the file, regardless of whether the flag is set or not. Make
the sync conditional on having the FIEMAP_FLAG_SYNC flag set.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/iomap.c