summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ulist.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-12-18 11:39:19 -0500
committerJosef Bacik <jbacik@fusionio.com>2013-01-24 12:49:49 -0500
commitb0175117b9376a69978bbe80af26fb95dddbd53e (patch)
tree1748791c73aae22587be21f2b3ee127d858c3432 /fs/btrfs/ulist.h
parent201a90389424d6771d24fc5d72f7e34cb4a8f967 (diff)
Btrfs: fix panic when recovering tree log
A user reported a BUG_ON(ret) that occured during tree log replay. Ret was -EAGAIN, so what I think happened is that we removed an extent that covered a bitmap entry and an extent entry. We remove the part from the bitmap and return -EAGAIN and then search for the next piece we want to remove, which happens to be an entire extent entry, so we just free the sucker and return. The problem is ret is still set to -EAGAIN so we trip the BUG_ON(). The user used btrfs-zero-log so I'm not 100% sure this is what happened so I've added a WARN_ON() to catch the other possibility. Thanks, Reported-by: Jan Steffens <jan.steffens@gmail.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/ulist.h')
0 files changed, 0 insertions, 0 deletions