]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
xfs: fix unused variable warning in buffer completion on !DEBUG
authorBrian Foster <bfoster@redhat.com>
Fri, 8 May 2020 15:50:52 +0000 (08:50 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 8 May 2020 15:50:52 +0000 (08:50 -0700)
commit43dc0aa84ef74e3acd908b6d5eaa8ae15d7ecc8a
tree8d90c1397f5d1be62c0e2364c77c85e7f990c2d6
parent6ea670ade207232d7863933bc6a834defe8b0269
xfs: fix unused variable warning in buffer completion on !DEBUG

The random buffer write failure errortag patch introduced a local
mount pointer variable for the test macro, but the macro is compiled
out on !DEBUG kernels. This results in an unused variable warning.

Access the mount structure through the buffer pointer and remove the
local mount pointer to address the warning.

Fixes: 7376d745473 ("xfs: random buffer write failure errortag")
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_buf.c