]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.8.16/xfs-set-agi-buffer-type-in-xlog_recover_clear_agi_bucket.patch
Drop watchdog patch
[thirdparty/kernel/stable-queue.git] / releases / 4.8.16 / xfs-set-agi-buffer-type-in-xlog_recover_clear_agi_bucket.patch
CommitLineData
469cb8aa
GKH
1From 6b10b23ca94451fae153a5cc8d62fd721bec2019 Mon Sep 17 00:00:00 2001
2From: Eric Sandeen <sandeen@sandeen.net>
3Date: Mon, 5 Dec 2016 12:31:06 +1100
4Subject: xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
5
6From: Eric Sandeen <sandeen@sandeen.net>
7
8commit 6b10b23ca94451fae153a5cc8d62fd721bec2019 upstream.
9
10xlog_recover_clear_agi_bucket didn't set the
11type to XFS_BLFT_AGI_BUF, so we got a warning during log
12replay (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
17Fix this, as was done in f19b872b for 2 other locations
18with the same problem.
19
20Signed-off-by: Eric Sandeen <sandeen@redhat.com>
21Reviewed-by: Brian Foster <bfoster@redhat.com>
22Reviewed-by: Christoph Hellwig <hch@lst.de>
23Signed-off-by: Dave Chinner <david@fromorbit.com>
24Signed-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