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)
commit5cdf83edb8e41cad1ec8eab2d402b4f9d9eb7ee0
tree8585bd88705aebb17bb8114768d09fa46c092c43
parent5dfe2be7ead15863fd7b3fcc8bd69e470fae2bec
Btrfs: do not ignore errors from btrfs_lookup_xattr in do_setxattr

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