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)
commit82d130ff390be67d980d8b6f39e921c0b1d8d8e0
treeb9ad04b14f74ce072624b1f8a5ece4b9889187e1
parent39847c4d3d91f487f9ab3d083ee5d0f8419f105c
Btrfs: fix wrong return value of btrfs_lookup_csum()

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>
fs/btrfs/file-item.c