]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: track cowblocks separately in i_flags
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 14 Dec 2017 23:42:22 +0000 (15:42 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 21 Dec 2017 01:11:48 +0000 (17:11 -0800)
commita5a83505e45423ae3ddb11cbddd633cf947f0779
treea51589201fbdbdbe00c0426baeba80ada0220038
parent07c79734793bbbb03608014c3e2bd478e67ffd86
xfs: track cowblocks separately in i_flags

The EOFBLOCKS/COWBLOCKS tags are totally separate things, so track them
with separate i_flags.  Right now we're abusing IEOFBLOCKS for both,
which is totally bogus because we won't tag the inode with COWBLOCKS if
IEOFBLOCKS was set by a previous tagging of the inode with EOFBLOCKS.
Found by wiring up clonerange to fsstress in xfs/017.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_icache.c
fs/xfs/xfs_inode.h