[PATCH] xfs: log recovery needs to be aware of CONFIG_XFS_RT now
Dave Chinner
david at fromorbit.com
Mon Feb 8 17:33:50 CST 2016
From: Dave Chinner <dchinner at redhat.com>
As it uses buffer verifiers that only exist when CONFIG_XFS_RT=y.
Signed-off-by: Dave Chinner <dchinner at redhat.com>
---
Note: I will fold this back into the original patch that caused
this build regression and rebuild the for-next tree.
fs/xfs/xfs_log_recover.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 23ad143..1dc0e14 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -2472,11 +2472,13 @@ xlog_recover_validate_buf_type(
}
bp->b_ops = &xfs_sb_buf_ops;
break;
+#ifdef CONFIG_XFS_RT
case XFS_BLFT_RTBITMAP_BUF:
case XFS_BLFT_RTSUMMARY_BUF:
/* no magic numbers for verification of RT buffers */
bp->b_ops = &xfs_rtbuf_ops;
break;
+#endif /* CONFIG_XFS_RT */
default:
xfs_warn(mp, "Unknown buffer type %d!",
xfs_blft_from_flags(buf_f));
More information about the xfs
mailing list