]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: remove the NULL fork handling in xfs_bmapi_read
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Jul 2020 19:14:13 +0000 (21:14 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 10 Jul 2020 06:40:17 +0000 (08:40 +0200)
commit2cc4a2f45bb5c8e28e3f0b15bbad2253214487bd
treef64f3439d25ab1318f66df553901598269d1b8bd
parent47983ab6d81d2c873a30c95f506344db275be75b
xfs: remove the NULL fork handling in xfs_bmapi_read

Source kernel commit: 4b516ff4e772993a99fc9bf36503d23ce5bd5ba9

Now that we fully verify the inode forks before they are added to the
inode cache, the crash reported in

https://bugzilla.kernel.org/show_bug.cgi?id=204031

can't happen anymore, as we'll never let an inode that has inconsistent
nextents counts vs the presence of an in-core attr fork leak into the
inactivate code path.  So remove the work around to try to handle the
case, and just return an error and warn if the fork is not present.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_bmap.c