]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: use WRITE_ONCE to update if_seq
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Oct 2018 02:36:12 +0000 (21:36 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 5 Oct 2018 02:36:12 +0000 (21:36 -0500)
commitc02e03410e8a51959ff376fff301dea8ecb2984f
tree6c9ae85b52f9b26040542106dfc2870cddf6837b
parent92a8736e0c77082999519bbb10027f6897a14d24
xfs: use WRITE_ONCE to update if_seq

Source kernel commit: 2ba090d521c5e09f32316c179d25bb6f699d3568

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h
libxfs/xfs_iext_tree.c