From: David Sterba Date: Tue, 15 Apr 2014 16:50:17 +0000 (+0200) Subject: btrfs: replace error code from btrfs_drop_extents X-Git-Tag: omap-for-v3.16/pm-signed~41^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f9e3df8da3c;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed