summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/sys.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2017-10-04 16:21:19 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2017-10-31 14:26:56 +0100
commit6862c44ec5ad0261968c3bc47d23cffb088b6836 (patch)
treeee4f19ea910c9880dae8018d4c54c5006378df2b /fs/gfs2/sys.c
parentcc555b09d8c3817aeebda43a14ab67049a5653f7 (diff)
downloadlinux-6862c44ec5ad0261968c3bc47d23cffb088b6836.tar.bz2
gfs2: Fix xattr fsync
Make sure that changing xattrs marks the corresponding inode dirty so that a subsequent fsync will sync those changes to disk. We set I_DIRTY_SYNC as well as I_DIRTY_DATASYNC so that both fsync and fdatasync will sync xattr changes: xattrs can contain information critical to how the data can be accessed, so we don't want fdatasync to skip them. Fixes xfstest generic/066. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Andrew Price <anprice@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/sys.c')
0 files changed, 0 insertions, 0 deletions