summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_bmap.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-11-24 11:40:32 +1100
committerDave Chinner <david@fromorbit.com>2016-11-24 11:40:32 +1100
commit0e8d630ba039d9976d250eedb82c3a423ad15447 (patch)
treefe00aff09186476bd86ecaad23472d7abeba2e56 /fs/xfs/libxfs/xfs_bmap.c
parent6edc977f775e5ac10655b03607ef091d2b06f2f6 (diff)
downloadlinux-0e8d630ba039d9976d250eedb82c3a423ad15447.tar.gz
linux-0e8d630ba039d9976d250eedb82c3a423ad15447.tar.bz2
linux-0e8d630ba039d9976d250eedb82c3a423ad15447.zip
xfs: remove NULLEXTNUM
We only ever set a field to this constant for an impossible to reach error case in xfs_bmap_search_extents. That functions has been removed, so we can remove the constant as well. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.c')
-rw-r--r--fs/xfs/libxfs/xfs_bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index dcc847ceaebe..c2e13db14563 100644
--- a/fs/xfs/libxfs/xfs_bmap.c
+++ b/fs/xfs/libxfs/xfs_bmap.c
@@ -4260,7 +4260,7 @@ xfs_bmapi_allocate(
if (bma->wasdel) {
bma->length = (xfs_extlen_t)bma->got.br_blockcount;
bma->offset = bma->got.br_startoff;
- if (bma->idx != NULLEXTNUM && bma->idx) {
+ if (bma->idx) {
xfs_bmbt_get_all(xfs_iext_get_ext(ifp, bma->idx - 1),
&bma->prev);
}