diff options
author | Eric Sandeen <sandeen@redhat.com> | 2018-01-25 13:54:51 -0600 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2018-01-25 13:54:51 -0600 |
commit | 2e2caf7d6d284bfda8d3057720d83884880a2753 (patch) | |
tree | 052a7be2e1c5a387eb08a6c72286af59d2c9b591 | |
parent | cfc06b60b832032a49f596b6b59449353bdcd088 (diff) | |
download | xfsprogs-dev-2e2caf7d6d284bfda8d3057720d83884880a2753.tar.gz |
libxfs: remove unused buf_fsprivate3
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>
-rw-r--r-- | libxfs/libxfs_io.h | 4 | ||||
-rw-r--r-- | libxfs/logitem.c | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/libxfs/libxfs_io.h b/libxfs/libxfs_io.h index 5acd3dffa9..2fce04dad4 100644 --- a/libxfs/libxfs_io.h +++ b/libxfs/libxfs_io.h @@ -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), \ diff --git a/libxfs/logitem.c b/libxfs/logitem.c index 0c183b5732..0c50fcf16b 100644 --- a/libxfs/logitem.c +++ b/libxfs/logitem.c @@ -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; |