]> asedeno.scripts.mit.edu Git - linux.git/commit
ubifs: Check link count of inodes when killing orphans.
authorRichard Weinberger <richard@nod.at>
Wed, 15 May 2019 20:31:13 +0000 (22:31 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 8 Jul 2019 18:01:33 +0000 (20:01 +0200)
commitee1438ce5dc4d67dd8dd1ff51583122a61f5bd9e
treec40ab5c29562393cc52ab0a85c832fb204d09090
parenteeabb9866e4ccce55d875cad140f9bf7c7ba1d66
ubifs: Check link count of inodes when killing orphans.

O_TMPFILE files can change their link count back to non-zero.
This corner case needs to get addressed in the orphans subsystem
too.

Fixes: 474b93704f32 ("ubifs: Implement O_TMPFILE")
Reported-by: Lars Persson <lists@bofh.nu>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/orphan.c