]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4ea434f0fc305dc98dfb50ff219530c7f16f653
tree86aa31da7598f8d92ff4fd56b71bee20dff82f9b
parent694540e6a0f51d46633c380ea514516e499980ee
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