diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2016-12-04 20:31:06 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-06 04:40:17 -0500 |
commit | e12096297ea55330cabe576596ad3f0b0fa4b8f4 (patch) | |
tree | d962e28baee0335dfc8823c6bf0c56d5cfcf8325 /fs | |
parent | c11a13d6f5274167a7c44e08722162ae3acce437 (diff) |
xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
commit 6b10b23ca94451fae153a5cc8d62fd721bec2019 upstream.
xlog_recover_clear_agi_bucket didn't set the
type to XFS_BLFT_AGI_BUF, so we got a warning during log
replay (or an ASSERT on a debug build).
XFS (md0): Unknown buffer type 0!
XFS (md0): _xfs_buf_ioapply: no ops on block 0xaea8802/0x1
Fix this, as was done in f19b872b for 2 other locations
with the same problem.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_log_recover.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index 9b3d7c76915d..2d91f5ab7538 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
@@ -4929,6 +4929,7 @@ xlog_recover_clear_agi_bucket( | |||
4929 | agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO); | 4929 | agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO); |
4930 | offset = offsetof(xfs_agi_t, agi_unlinked) + | 4930 | offset = offsetof(xfs_agi_t, agi_unlinked) + |
4931 | (sizeof(xfs_agino_t) * bucket); | 4931 | (sizeof(xfs_agino_t) * bucket); |
4932 | xfs_trans_buf_set_type(tp, agibp, XFS_BLFT_AGI_BUF); | ||
4932 | xfs_trans_log_buf(tp, agibp, offset, | 4933 | xfs_trans_log_buf(tp, agibp, offset, |
4933 | (offset + sizeof(xfs_agino_t) - 1)); | 4934 | (offset + sizeof(xfs_agino_t) - 1)); |
4934 | 4935 | ||