]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
gfs2: Fix xattr fsync
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 4 Oct 2017 14:21:19 +0000 (16:21 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 31 Oct 2017 13:26:56 +0000 (14:26 +0100)
commit6862c44ec5ad0261968c3bc47d23cffb088b6836
treeee4f19ea910c9880dae8018d4c54c5006378df2b
parentcc555b09d8c3817aeebda43a14ab67049a5653f7
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>
fs/gfs2/xattr.c