Btrfs: do not ignore errors from btrfs_lookup_xattr in do_setxattr
authorFilipe Manana <fdmanana@suse.com>
Mon, 23 Feb 2015 19:50:49 +0000 (19:50 +0000)
committerChris Mason <clm@fb.com>
Mon, 2 Mar 2015 22:04:45 +0000 (14:04 -0800)
The return value from btrfs_lookup_xattr() can be a pointer encoding an
error, therefore deal with it. This fixes commit 5f5bc6b1e2d5
("Btrfs: make xattr replace operations atomic").

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/xattr.c

Simple merge