From: Christoph Hellwig Date: Tue, 10 Jan 2017 02:18:47 +0000 (-0600) Subject: xfs: remove NULLEXTNUM X-Git-Tag: v4.10.0-rc1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5f0bea90f191a0c481cae3ead738093a065dfd5;p=thirdparty%2Fxfsprogs-dev.git xfs: remove NULLEXTNUM Source kernel commit: 0e8d630ba039d9976d250eedb82c3a423ad15447 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 Reviewed-by: Brian Foster Signed-off-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c index e7c529bef..be2449af4 100644 --- a/libxfs/xfs_bmap.c +++ b/libxfs/xfs_bmap.c @@ -4252,7 +4252,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); } diff --git a/libxfs/xfs_types.h b/libxfs/xfs_types.h index cf044c0f4..717909f2f 100644 --- a/libxfs/xfs_types.h +++ b/libxfs/xfs_types.h @@ -57,7 +57,6 @@ typedef __int64_t xfs_sfiloff_t; /* signed block number in a file */ #define NULLAGBLOCK ((xfs_agblock_t)-1) #define NULLAGNUMBER ((xfs_agnumber_t)-1) -#define NULLEXTNUM ((xfs_extnum_t)-1) #define NULLCOMMITLSN ((xfs_lsn_t)-1)