]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
afs: Use refcount_t rather than atomic_t
authorDavid Howells <dhowells@redhat.com>
Wed, 6 Jul 2022 09:52:14 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:13:30 +0000 (15:13 +0100)
commit57bf56295068af01afb0a644b65dc09f3fd34481
treeb7d01d5e9849558ac9759614fe5df1df89af0bda
parentd1fe946cb5b27afaed2e491860b227c19ecee982
afs: Use refcount_t rather than atomic_t

[ Upstream commit c56f9ec8b20f931014574b943590c4d830109380 ]

Use refcount_t rather than atomic_t in afs to make use of the count
checking facilities provided.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Link: https://lore.kernel.org/r/165911277768.3745403.423349776836296452.stgit@warthog.procyon.org.uk/
Stable-dep-of: 9a6b294ab496 ("afs: Fix use-after-free due to get/remove race in volume tree")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/afs/cell.c
fs/afs/cmservice.c
fs/afs/internal.h
fs/afs/proc.c
fs/afs/rxrpc.c
fs/afs/server.c
fs/afs/vl_list.c
fs/afs/volume.c
include/trace/events/afs.h