btrfs: tree_search, copy_to_sk: return needed size on EOVERFLOW
authorGerhard Heift <gerhard@heift.name>
Thu, 30 Jan 2014 15:24:00 +0000 (16:24 +0100)
committerChris Mason <clm@fb.com>
Fri, 13 Jun 2014 01:21:47 +0000 (18:21 -0700)
commit9b6e817d022fd44fe99db92f00d4b18ac2d8f429
tree86aa31da7598f8d92ff4fd56b71bee20dff82f9b
parent8f5f6178f366bdb93d6af6f2bdca8ebca1ad9fe9
btrfs: tree_search, copy_to_sk: return needed size on EOVERFLOW

If an item in tree_search is too large to be stored in the given buffer, return
the needed size (including the header).

Signed-off-by: Gerhard Heift <Gerhard@Heift.Name>
Signed-off-by: Chris Mason <clm@fb.com>
Acked-by: David Sterba <dsterba@suse.cz>
fs/btrfs/ioctl.c