]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: remove unused buf_fsprivate3
authorEric Sandeen <sandeen@redhat.com>
Thu, 25 Jan 2018 19:54:51 +0000 (13:54 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 25 Jan 2018 19:54:51 +0000 (13:54 -0600)
The buf_fsprivate3 field has no actual use, other than a pointless
"if it's not set, set it" in xfs_buf_item_init; nobody cares after
that.  Remove it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_io.h
libxfs/logitem.c

index 5acd3dffa9ed4803e96d3733452deca2f424be36..2fce04dad4239517af4ecc2e394b14e105b914dc 100644 (file)
@@ -70,7 +70,6 @@ typedef struct xfs_buf {
        unsigned int            b_recur;
        void                    *b_fspriv;
        void                    *b_transp;
-       void                    *b_fsprivate3;
        void                    *b_addr;
        int                     b_error;
        const struct xfs_buf_ops *b_ops;
@@ -111,9 +110,6 @@ enum xfs_buf_flags_t {      /* b_flags bits */
 #define XFS_BUF_SET_ADDR(bp,blk)       ((bp)->b_bn = (blk))
 #define XFS_BUF_SET_COUNT(bp,cnt)      ((bp)->b_bcount = (cnt))
 
-#define XFS_BUF_FSPRIVATE3(bp,type)    ((type)(bp)->b_fsprivate3)
-#define XFS_BUF_SET_FSPRIVATE3(bp,val) (bp)->b_fsprivate3 = (void *)(val)
-
 #define XFS_BUF_SET_PRIORITY(bp,pri)   cache_node_set_priority( \
                                                libxfs_bcache, \
                                                (struct cache_node *)(bp), \
index 0c183b5732778fd63a302c72e029bd7fb81ffe77..0c50fcf16b5cd7e026b797778eea4930de15fcc0 100644 (file)
@@ -96,8 +96,6 @@ xfs_buf_item_init(
         * the first.  If we do already have one, there is
         * nothing to do here so return.
         */
-       if (XFS_BUF_FSPRIVATE3(bp, xfs_mount_t *) != mp)
-               XFS_BUF_SET_FSPRIVATE3(bp, mp);
        XFS_BUF_SET_BDSTRAT_FUNC(bp, xfs_bdstrat_cb);
        if (bp->b_fspriv != NULL) {
                lip = bp->b_fspriv;