David Sterba 3f9e3df8da 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>
2014-04-24 16:43:32 -07:00
..
2014-01-28 13:19:50 -08:00
2014-04-06 17:39:30 -07:00
2014-04-06 17:39:30 -07:00
2013-11-11 22:03:19 -05:00
2008-09-25 11:04:06 -04:00
2013-03-14 14:57:10 -04:00
2013-02-01 14:24:23 -05:00
2014-03-10 15:16:51 -04:00
2014-03-10 15:15:51 -04:00
2014-03-10 15:15:51 -04:00
2014-01-29 07:06:27 -08:00
2014-01-29 07:06:27 -08:00
2014-04-07 09:08:41 -07:00