diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-08 19:51:00 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-08 19:54:45 +0100 |
commit | 59f6fec3bdb2aafc84d39f34000819d232182d71 (patch) | |
tree | acce12c6bf13978133092a56878c8f6538779bb5 /fs/xfs/libxfs/xfs_btree.c | |
parent | xfs: distinguish between corrupt inode and invalid inum in xfs_scrub_get_inode (diff) | |
download | linux-59f6fec3bdb2aafc84d39f34000819d232182d71.tar.xz linux-59f6fec3bdb2aafc84d39f34000819d232182d71.zip |
xfs: remove XFS_FSB_SANITY_CHECK
We already have a function to verify fsb pointers, so get rid of the
last users of the (less robust) macro.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_btree.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_btree.c b/fs/xfs/libxfs/xfs_btree.c index 5f33adf8eecb..54c0a927a0fa 100644 --- a/fs/xfs/libxfs/xfs_btree.c +++ b/fs/xfs/libxfs/xfs_btree.c @@ -853,7 +853,7 @@ xfs_btree_read_bufl( xfs_daddr_t d; /* real disk block address */ int error; - if (!XFS_FSB_SANITY_CHECK(mp, fsbno)) + if (!xfs_verify_fsbno(mp, fsbno)) return -EFSCORRUPTED; d = XFS_FSB_TO_DADDR(mp, fsbno); error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, d, |