]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc53f0e671cf1c294db8ff297ce46376c72471a75
tree1171512eca076f1e10fea00dcf8e07766486c1a4
parent05e8d4065f5638136635151a4ae09ae66693f1e6
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