]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: update fork seq counter on data fork changes
authorBrian Foster <bfoster@redhat.com>
Mon, 6 May 2019 22:00:20 +0000 (18:00 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 6 May 2019 22:00:20 +0000 (18:00 -0400)
commita2fa97f11ce10526ed27c02ea89bfd52bf26d25d
treeac80ae1bb82092aed56f51d8e7ce6e2769191e82
parent069265796cd74ed48b64490c047d6d70402c8837
xfs: update fork seq counter on data fork changes

Source kernel commit: 9f9bc034b84958523689347ee2bdd9c660008e5e

The sequence counter in the xfs_ifork structure is only updated on
COW forks. This is because the counter is currently only used to
optimize out repetitive COW fork checks at writeback time.

Tweak the extent code to update the seq counter regardless of the
fork type in preparation for using this counter on data forks as
well.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_iext_tree.c
libxfs/xfs_inode_fork.h