xfs: remove NULLEXTNUM
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Nov 2016 00:40:32 +0000 (11:40 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Nov 2016 00:40:32 +0000 (11:40 +1100)
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>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_types.h

index dcc847ceaebee686e69b40de89f8d724d94d37f4..c2e13db145631858f4f0efce91d7e5134037eaa5 100644 (file)
@@ -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);
                }
index 8d74870468c24bb5661a0afa0e7ab436f8b4ded0..f9a1076de911e49572d1153c42ff1072a1b2a184 100644 (file)
@@ -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)