Btrfs: fix wrong return value of btrfs_lookup_csum()
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 28 Mar 2013 08:12:15 +0000 (08:12 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 28 Mar 2013 13:51:31 +0000 (09:51 -0400)
If we don't find the expected csum item, but find a csum item which is
adjacent to the specified extent, we should return -EFBIG, or we should
return -ENOENT. But btrfs_lookup_csum() return -EFBIG even the csum item
is not adjacent to the specified extent. Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>

No differences found