]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3830b47b86ce5f56aeb4274f143409a22f0e703
tree7ac48f3f8f78b182bb1c44e628c9bf690bcd0995
parentbd2df385f950ad57178a47191d3942417da5d2c7
Revert "ubifs: xattr: Don't operate on deleted inodes"

This reverts commit 34ecae9939e9e873e6359f499c553a550c01384b.
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: 34ecae9939e9 ("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