]> git.baikalelectronics.ru Git - kernel.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)
commit0ed795399e23b15bfbe0dedbdaaded9d75891483
treec40ab5c29562393cc52ab0a85c832fb204d09090
parent1c82df7297faad5266d5f9dcfe4b6bb06359c9af
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: 3eb439a8d42c ("ubifs: Implement O_TMPFILE")
Reported-by: Lars Persson <lists@bofh.nu>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/orphan.c