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)
commit91aae6be4139b9e3902656d819e6af66e051bd7a
treea51589201fbdbdbe00c0426baeba80ada0220038
parenta192de265b26c525672884630d5376c405e83b2a
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