]> git.baikalelectronics.ru Git - 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)
commit4fe5d57ede2326c8bd235338ad5cc416fada1b52
treeee4f19ea910c9880dae8018d4c54c5006378df2b
parentca0897597dceb7bf1a2ba48e2830097d65f82c39
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