xfs: remove block number from inode lookup code
The block number comes from bulkstat based inode lookups to shortcut the mapping calculations. We ar enot able to trust anything from bulkstat, so drop the block number as well so that the correct lookups and mappings are always done. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
committed by
Dave Chinner
parent
1920779e67
commit
7b6259e7a8
@@ -787,7 +787,6 @@ xfs_iread(
|
||||
xfs_mount_t *mp,
|
||||
xfs_trans_t *tp,
|
||||
xfs_inode_t *ip,
|
||||
xfs_daddr_t bno,
|
||||
uint iget_flags)
|
||||
{
|
||||
xfs_buf_t *bp;
|
||||
@@ -797,11 +796,9 @@ xfs_iread(
|
||||
/*
|
||||
* Fill in the location information in the in-core inode.
|
||||
*/
|
||||
ip->i_imap.im_blkno = bno;
|
||||
error = xfs_imap(mp, tp, ip->i_ino, &ip->i_imap, iget_flags);
|
||||
if (error)
|
||||
return error;
|
||||
ASSERT(bno == 0 || bno == ip->i_imap.im_blkno);
|
||||
|
||||
/*
|
||||
* Get pointers to the on-disk inode and the buffer containing it.
|
||||
|
Reference in New Issue
Block a user