]> git.baikalelectronics.ru Git - kernel.git/commit
9p fid refcount: add p9_fid_get/put wrappers
authorDominique Martinet <asmadeus@codewreck.org>
Sun, 12 Jun 2022 04:42:32 +0000 (13:42 +0900)
committerDominique Martinet <dominique.martinet@atmark-techno.com>
Sat, 2 Jul 2022 09:52:21 +0000 (18:52 +0900)
commita08457b0540b6abef86ce25d94abf1898f0015cb
tree30857d1451aa4ff349eb622fd91944d591793dbc
parent1475b141f77cee003c97285ab1652f3fc4d26320
9p fid refcount: add p9_fid_get/put wrappers

I was recently reminded that it is not clear that p9_client_clunk()
was actually just decrementing refcount and clunking only when that
reaches zero: make it clear through a set of helpers.

This will also allow instrumenting refcounting better for debugging
next patch

Link: https://lkml.kernel.org/r/20220612085330.1451496-5-asmadeus@codewreck.org
Reviewed-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
12 files changed:
fs/9p/fid.c
fs/9p/fid.h
fs/9p/vfs_addr.c
fs/9p/vfs_dentry.c
fs/9p/vfs_dir.c
fs/9p/vfs_file.c
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c
fs/9p/vfs_super.c
fs/9p/xattr.c
include/net/9p/client.h
net/9p/client.c