xfs: handle unallocated inodes in xfs_inode_from_disk
authorChristoph Hellwig <hch@lst.de>
Thu, 14 May 2020 21:01:17 +0000 (14:01 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 19 May 2020 16:40:57 +0000 (09:40 -0700)
commit0bce8173fdcf203c92a4d57dc7d3bb642ed478a1
treea02a12f6ee5aac6d5c0930a98d01ad64f2018e3d
parent9229d18e801bdbdf79d963d8c944980fc77b5d6b
xfs: handle unallocated inodes in xfs_inode_from_disk

Handle inodes with a 0 di_mode in xfs_inode_from_disk, instead of partially
duplicating inode reading in xfs_iread.

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>
fs/xfs/libxfs/xfs_inode_buf.c