]> git.hungrycats.org Git - linux/commit
netfs, fscache: export fscache_put_volume() and add fscache_try_get_volume()
authorBaokun Li <libaokun1@huawei.com>
Fri, 19 Jul 2024 13:28:10 +0000 (21:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:42 +0000 (09:53 +0200)
commit456b75ca66912c3ffb7cba4fc975480b57d6746f
tree937d9f0366e06c2dafe9d94d8b596c2f431b155c
parent4232ec483b3e00cad329fd4ee717a882319312f7
netfs, fscache: export fscache_put_volume() and add fscache_try_get_volume()

[ Upstream commit 85b08b31a22b481ec6528130daf94eee4452e23f ]

Export fscache_put_volume() and add fscache_try_get_volume()
helper function to allow cachefiles to get/put fscache_volume
via linux/fscache-cache.h.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Link: https://lore.kernel.org/r/20240628062930.2467993-2-libaokun@huaweicloud.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Stable-dep-of: 522018a0de6b ("cachefiles: fix slab-use-after-free in fscache_withdraw_volume()")
Stable-dep-of: 5d8f80578907 ("cachefiles: fix slab-use-after-free in cachefiles_withdraw_cookie()")
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/netfs/fscache_volume.c
fs/netfs/internal.h
include/linux/fscache-cache.h