mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
xfs: set AGI buffer type in xlog_recover_clear_agi_bucket
commit6b10b23ca9upstream. 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 inf19b872bfor 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
959e363eaf
commit
587e89bd56
@@ -4506,6 +4506,7 @@ xlog_recover_clear_agi_bucket(
|
|||||||
agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO);
|
agi->agi_unlinked[bucket] = cpu_to_be32(NULLAGINO);
|
||||||
offset = offsetof(xfs_agi_t, agi_unlinked) +
|
offset = offsetof(xfs_agi_t, agi_unlinked) +
|
||||||
(sizeof(xfs_agino_t) * bucket);
|
(sizeof(xfs_agino_t) * bucket);
|
||||||
|
xfs_trans_buf_set_type(tp, agibp, XFS_BLFT_AGI_BUF);
|
||||||
xfs_trans_log_buf(tp, agibp, offset,
|
xfs_trans_log_buf(tp, agibp, offset,
|
||||||
(offset + sizeof(xfs_agino_t) - 1));
|
(offset + sizeof(xfs_agino_t) - 1));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user