]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
afs: Fix the dynamic root's d_delete to always delete unused dentries
authorDavid Howells <dhowells@redhat.com>
Mon, 11 Dec 2023 15:08:57 +0000 (15:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:12:24 +0000 (15:12 +0100)
commit65d2c287fc00dfb73d1a146e28ef21f9f9f9fdeb
tree03b992b6bbb19eba5e52dd7cabdd2737dbf7553d
parenta3218319ee866edc5ef33969e25bcea9873fdc90
afs: Fix the dynamic root's d_delete to always delete unused dentries

[ Upstream commit 71f8b55bc30e82d6355e07811213d847981a32e2 ]

Fix the afs dynamic root's d_delete function to always delete unused
dentries rather than only deleting them if they're positive.  With things
as they stand upstream, negative dentries stemming from failed DNS lookups
stick around preventing retries.

Fixes: 66c7e1d319a5 ("afs: Split the dynroot stuff out and give it its own ops tables")
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Markus Suvanto <markus.suvanto@gmail.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/afs/dynroot.c