Revert "ubifs: xattr: Don't operate on deleted inodes"
authorRichard Weinberger <richard@nod.at>
Sun, 16 Sep 2018 21:57:35 +0000 (23:57 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 20 Sep 2018 19:37:41 +0000 (21:37 +0200)
commitf061c1cc404a618858a77aea233fde0aeaad2f2d
tree7ac48f3f8f78b182bb1c44e628c9bf690bcd0995
parentd3bdc016c598e09a4ddf17805d17d43759b0a582
Revert "ubifs: xattr: Don't operate on deleted inodes"

This reverts commit 11a6fc3dc743e22fb50f2196ec55bee5140d3c52.
UBIFS wants to assert that xattr operations are only issued on files
with positive link count. The said patch made this operations return
-ENOENT for unlinked files such that the asserts will no longer trigger.
This was wrong since xattr operations are perfectly fine on unlinked
files.
Instead the assertions need to be fixed/removed.

Cc: <stable@vger.kernel.org>
Fixes: 11a6fc3dc743 ("ubifs: xattr: Don't operate on deleted inodes")
Reported-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/xattr.c