Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Iliopoulos <ailiopoulos@suse.com>2019-05-18 01:28:47 +0200
committerAnthony Iliopoulos <ailiopoulos@suse.com>2019-05-18 01:28:47 +0200
commitaf7f9c24cdc1d5baf1ec2fd2daee0e9bcc683bbb (patch)
treecb8bf1b11579cb9db1511d13068c5b20062d3326
parentec73cb4ccc5e6e00f66714c1b4bdacb711791378 (diff)
xfs: fix unused variable warning in xfs_buf_set_ref()
(bsc#1114427). suse-commit: b0ec684d343081be69c395f30a344fa34de8cc52
-rw-r--r--fs/xfs/xfs_buf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index 90eb96dff15c..dd2eb58594e2 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -2079,14 +2079,13 @@ xfs_buf_terminate(void)
void xfs_buf_set_ref(struct xfs_buf *bp, int lru_ref)
{
- struct xfs_mount *mp = bp->b_target->bt_mount;
-
/*
* Set the lru reference count to 0 based on the error injection tag.
* This allows userspace to disrupt buffer caching for debug/testing
* purposes.
*/
- if (XFS_TEST_ERROR(false, mp, XFS_ERRTAG_BUF_LRU_REF))
+ if (XFS_TEST_ERROR(false, bp->b_target->bt_mount,
+ XFS_ERRTAG_BUF_LRU_REF))
lru_ref = 0;
atomic_set(&bp->b_lru_ref, lru_ref);