xfs: use WRITE_ONCE to update if_seq
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Aug 2018 17:57:12 +0000 (10:57 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 7 Aug 2018 17:57:12 +0000 (10:57 -0700)
commit2ba090d521c5e09f32316c179d25bb6f699d3568
tree1171512eca076f1e10fea00dcf8e07766486c1a4
parenta0e336ba3e3d1c7ec0f738a2e2e203434c00b08e
xfs: use WRITE_ONCE to update if_seq

This adds ordering of the updates and makes sure we always see the if_seq
update before the extent tree is modified.

Signed-off-by: Christoph Hellwig <hch@lst.de>
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/xfs_aops.c
fs/xfs/xfs_iomap.c