diff options
author | liubo <liubo2009@cn.fujitsu.com> | 2011-08-06 08:35:23 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-29 13:29:09 -0700 |
commit | 966ef7daecee021ffded11d584e57160ee0395c2 (patch) | |
tree | 45afc87ca22842981b26fd33fed861f23a3273b3 /Documentation/target | |
parent | edcf2e9f6082672cde1b97429e51ea384db89976 (diff) | |
download | kernel_samsung_espresso10-966ef7daecee021ffded11d584e57160ee0395c2.zip kernel_samsung_espresso10-966ef7daecee021ffded11d584e57160ee0395c2.tar.gz kernel_samsung_espresso10-966ef7daecee021ffded11d584e57160ee0395c2.tar.bz2 |
Btrfs: fix an oops of log replay
commit 34f3e4f23ca3d259fe078f62a128d97ca83508ef upstream.
When btrfs recovers from a crash, it may hit the oops below:
------------[ cut here ]------------
kernel BUG at fs/btrfs/inode.c:4580!
[...]
RIP: 0010:[<ffffffffa03df251>] [<ffffffffa03df251>] btrfs_add_link+0x161/0x1c0 [btrfs]
[...]
Call Trace:
[<ffffffffa03e7b31>] ? btrfs_inode_ref_index+0x31/0x80 [btrfs]
[<ffffffffa04054e9>] add_inode_ref+0x319/0x3f0 [btrfs]
[<ffffffffa0407087>] replay_one_buffer+0x2c7/0x390 [btrfs]
[<ffffffffa040444a>] walk_down_log_tree+0x32a/0x480 [btrfs]
[<ffffffffa0404695>] walk_log_tree+0xf5/0x240 [btrfs]
[<ffffffffa0406cc0>] btrfs_recover_log_trees+0x250/0x350 [btrfs]
[<ffffffffa0406dc0>] ? btrfs_recover_log_trees+0x350/0x350 [btrfs]
[<ffffffffa03d18b2>] open_ctree+0x1442/0x17d0 [btrfs]
[...]
This comes from that while replaying an inode ref item, we forget to
check those old conflicting DIR_ITEM and DIR_INDEX items in fs/file tree,
then we will come to conflict corners which lead to BUG_ON().
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Tested-by: Andy Lutomirski <luto@mit.edu>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/target')
0 files changed, 0 insertions, 0 deletions