aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/xfs/xfs_buf_item.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2017-08-29 10:08:36 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-09-01 10:55:30 -0700
commita4f6cf6b2b6b60ec2a05a33a32e65caa4149aa2b (patch)
treeb00c2c811a7968971e936067f6390bae27ec53f7 /fs/xfs/xfs_buf_item.c
parentxfs: remove the ip argument to xfs_defer_finish (diff)
downloadwireguard-linux-a4f6cf6b2b6b60ec2a05a33a32e65caa4149aa2b.tar.xz
wireguard-linux-a4f6cf6b2b6b60ec2a05a33a32e65caa4149aa2b.zip
xfs: open-code xfs_buf_item_dirty()
It checks a single flag and has one caller. It probably isn't worth its own function. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r--fs/xfs/xfs_buf_item.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c
index 573fc72c3f23..cdae0ad5e0a5 100644
--- a/fs/xfs/xfs_buf_item.c
+++ b/fs/xfs/xfs_buf_item.c
@@ -945,17 +945,6 @@ xfs_buf_item_log(
}
-/*
- * Return 1 if the buffer has been logged or ordered in a transaction (at any
- * point, not just the current transaction) and 0 if not.
- */
-uint
-xfs_buf_item_dirty(
- xfs_buf_log_item_t *bip)
-{
- return (bip->bli_flags & XFS_BLI_DIRTY);
-}
-
STATIC void
xfs_buf_item_free(
xfs_buf_log_item_t *bip)