]>
Commit | Line | Data |
---|---|---|
469cb8aa GKH |
1 | From 6b10b23ca94451fae153a5cc8d62fd721bec2019 Mon Sep 17 00:00:00 2001 |
2 | From: Eric Sandeen <sandeen@sandeen.net> | |
3 | Date: Mon, 5 Dec 2016 12:31:06 +1100 | |
4 | Subject: xfs: set AGI buffer type in xlog_recover_clear_agi_bucket | |
5 | ||
6 | From: Eric Sandeen <sandeen@sandeen.net> | |
7 | ||
8 | commit 6b10b23ca94451fae153a5cc8d62fd721bec2019 upstream. | |
9 | ||
10 | xlog_recover_clear_agi_bucket didn't set the | |
11 | type to XFS_BLFT_AGI_BUF, so we got a warning during log | |
12 | replay (or an ASSERT on a debug build). | |
13 | ||
14 | XFS (md0): Unknown buffer type 0! | |
15 | XFS (md0): _xfs_buf_ioapply: no ops on block 0xaea8802/0x1 | |
16 | ||
17 | Fix this, as was done in f19b872b for 2 other locations | |
18 | with the same problem. | |
19 | ||
20 | Signed-off-by: Eric Sandeen <sandeen@redhat.com> | |
21 | Reviewed-by: Brian Foster <bfoster@redhat.com> | |
22 | Reviewed-by: Christoph Hellwig <hch@lst.de> | |
23 | Signed-off-by: Dave Chinner <david@fromorbit.com> | |
24 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
25 | ||
26 | --- | |
27 | fs/xfs/xfs_log_recover.c | 1 + | |
28 | 1 file changed, 1 insertion(+) | |
29 | ||
30 | --- a/fs/xfs/xfs_log_recover.c | |
31 | +++ b/fs/xfs/xfs_log_recover.c | |
32 | @@ -4506,6 +4506,7 @@ xlog_recover_clear_agi_bucket( | |
33 | agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO); | |
34 | offset = offsetof(xfs_agi_t, agi_unlinked) + | |
35 | (sizeof(xfs_agino_t) * bucket); | |
36 | + xfs_trans_buf_set_type(tp, agibp, XFS_BLFT_AGI_BUF); | |
37 | xfs_trans_log_buf(tp, agibp, offset, | |
38 | (offset + sizeof(xfs_agino_t) - 1)); | |
39 |