btrfs: return ENOMEM if path allocation fails in btrfs_cross_ref_exist
authorSu Yue <suy.fnst@cn.fujitsu.com>
Wed, 30 May 2018 06:49:10 +0000 (14:49 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 May 2018 15:33:58 +0000 (17:33 +0200)
commit9132c4ff6f9557db3ba10fb321317b4f67626ee8
tree685c19639e5d5ab9b980e0632d0ecea6440dc165
parent1389053e1bed93b75b0c3cd292f61032334c81b3
btrfs: return ENOMEM if path allocation fails in btrfs_cross_ref_exist

The error code does not match the reason of failure and may confuse the
callers.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c