xfs: update fork seq counter on data fork changes
authorBrian Foster <bfoster@redhat.com>
Fri, 1 Feb 2019 17:14:22 +0000 (09:14 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 00:07:00 +0000 (16:07 -0800)
commit9f9bc034b84958523689347ee2bdd9c660008e5e
tree7651d81ce001e0ff119f1287c2eef9d8e8e13945
parentd519da41e2b789f2cbd705cd8cec0bb92be4838d
xfs: update fork seq counter on data fork changes

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>
fs/xfs/libxfs/xfs_iext_tree.c
fs/xfs/libxfs/xfs_inode_fork.h