summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf_item_recover.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2021-08-18 18:47:05 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-08-19 10:07:15 -0700
commit9343ee76909e3f6466d85c9ebb0e343cdf54de71 (patch)
tree5e457a29d0e5fd884434b9d794cc3f5ae8849a47 /fs/xfs/xfs_buf_item_recover.c
parent04fcad80cd068731a779fb442f78234732683755 (diff)
downloadlinux-9343ee76909e3f6466d85c9ebb0e343cdf54de71.tar.gz
linux-9343ee76909e3f6466d85c9ebb0e343cdf54de71.tar.xz
xfs: convert bp->b_bn references to xfs_buf_daddr()
Stop directly referencing b_bn in code outside the buffer cache, as b_bn is supposed to be used only as an internal cache index. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_buf_item_recover.c')
-rw-r--r--fs/xfs/xfs_buf_item_recover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf_item_recover.c b/fs/xfs/xfs_buf_item_recover.c
index a14f7039d346..a476c7ef5d53 100644
--- a/fs/xfs/xfs_buf_item_recover.c
+++ b/fs/xfs/xfs_buf_item_recover.c
@@ -497,7 +497,7 @@ xlog_recover_do_reg_buffer(
if (fa) {
xfs_alert(mp,
"dquot corrupt at %pS trying to replay into block 0x%llx",
- fa, bp->b_bn);
+ fa, xfs_buf_daddr(bp));
goto next;
}
}