summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_error.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-29 04:27:29 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2019-06-29 04:27:29 +0200
commitdbd329f1e44ed48de8a1c19da5eb1218f5e1b4a5 (patch)
treef0e3c030dee4994dbea1fd6c3d3fed9fa1d64d05 /fs/xfs/xfs_error.c
parentxfs: remove the b_io_length field in struct xfs_buf (diff)
downloadlinux-dbd329f1e44ed48de8a1c19da5eb1218f5e1b4a5.tar.xz
linux-dbd329f1e44ed48de8a1c19da5eb1218f5e1b4a5.zip
xfs: add struct xfs_mount pointer to struct xfs_buf
We need to derive the mount pointer from a buffer in a lot of place. Add a direct pointer to short cut the pointer chasing. Signed-off-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>
Diffstat (limited to 'fs/xfs/xfs_error.c')
-rw-r--r--fs/xfs/xfs_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c
index 7cc799b67232..544c9482a0ef 100644
--- a/fs/xfs/xfs_error.c
+++ b/fs/xfs/xfs_error.c
@@ -354,7 +354,7 @@ xfs_buf_verifier_error(
size_t bufsz,
xfs_failaddr_t failaddr)
{
- struct xfs_mount *mp = bp->b_target->bt_mount;
+ struct xfs_mount *mp = bp->b_mount;
xfs_failaddr_t fa;
int sz;