]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: inode unlink does not set AGI buffer type
authorDave Chinner <dchinner@redhat.com>
Wed, 21 Jan 2015 22:29:40 +0000 (09:29 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 21 Jan 2015 22:29:40 +0000 (09:29 +1100)
commitf19b872b086711bb4b22c3a0f52f16aa920bcc61
tree75c9dacf4020ab9df9acfc602a9b4df1756819db
parent0d612fb570b71ea2e49554a770cff4c489018b2c
xfs: inode unlink does not set AGI buffer type

This leads to log recovery throwing errors like:

XFS (md0): Mounting V5 Filesystem
XFS (md0): Starting recovery (logdev: internal)
XFS (md0): Unknown buffer type 0!
XFS (md0): _xfs_buf_ioapply: no ops on block 0xaea8802/0x1
ffff8800ffc53800: 58 41 47 49 .....

Which is the AGI buffer magic number.

Ensure that we set the type appropriately in both unlink list
addition and removal.

cc: <stable@vger.kernel.org> # 3.10 to current
Tested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_inode.c