summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_quotaops.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-05-29 17:24:55 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-14 13:05:58 (GMT)
commitc404f0dee7a82c08eda68aa14350072ae189a5ed (patch)
tree161876ca1c527308f16d253b600396e733bd3077 /fs/xfs/xfs_quotaops.c
parent2e16921d1743db8661d206cdc09af23fdaa1a1a7 (diff)
downloadlinux-c404f0dee7a82c08eda68aa14350072ae189a5ed.tar.xz
ext4: fix fdatasync(2) after extent manipulation operations
commit 67a7d5f561f469ad2fa5154d2888258ab8e6df7c upstream. Currently, extent manipulation operations such as hole punch, range zeroing, or extent shifting do not record the fact that file data has changed and thus fdatasync(2) has a work to do. As a result if we crash e.g. after a punch hole and fdatasync, user can still possibly see the punched out data after journal replay. Test generic/392 fails due to these problems. Fix the problem by properly marking that file data has changed in these operations. Fixes: a4bb6b64e39abc0e41ca077725f2a72c868e7622 Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_quotaops.c')
0 files changed, 0 insertions, 0 deletions