]> git.hungrycats.org Git - linux/commit
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)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:32:58 +0000 (23:32 -0400)
commit5a013f870693e5a41a3961c0e384b38d2b38fac7
tree724886c315a5352a787e9dee1877f1a54746f660
parent5710b134d1f65b36c703ce360f07b1f58f2dea32
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>
(cherry picked from commit 5cdf83edb8e41cad1ec8eab2d402b4f9d9eb7ee0)
fs/btrfs/xattr.c