]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove NULLEXTNUM
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Jan 2017 02:18:47 +0000 (20:18 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 10 Jan 2017 02:18:47 +0000 (20:18 -0600)
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 <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c
libxfs/xfs_types.h

index e7c529bef5dcc23aa9109a2d03d0bfc87c086fb7..be2449af4dcd47ae613d726b4011006bd9a30e61 100644 (file)
@@ -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);
                }
index cf044c0f4d4178ee09e9b3e4c1eba2ceef161a1a..717909f2f7b704be9c842a94155a2c88c5054a76 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)