summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-04-15 16:50:17 (GMT)
committerChris Mason <clm@fb.com>2014-04-24 23:43:32 (GMT)
commit3f9e3df8da3c51649c15db249978a10f7374236a (patch)
tree27c95d85e319fe75e4643fdeaf79ae928bbef6b3 /fs/btrfs/ctree.h
parentc5f7d0bb29df2e1848a236e58e201daf5b4e0f21 (diff)
downloadlinux-3f9e3df8da3c51649c15db249978a10f7374236a.tar.xz
btrfs: replace error code from btrfs_drop_extents
There's a case which clone does not handle and used to BUG_ON instead, (testcase xfstests/btrfs/035), now returns EINVAL. This error code is confusing to the ioctl caller, as it normally signifies errorneous arguments. Change it to ENOPNOTSUPP which allows a fall back to copy instead of clone. This does not affect the common reflink operation. Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions