linux/fs/9p
Dominique Martinet dafbe68973 9p fid refcount: cleanup p9_fid_put calls
Simplify p9_fid_put cleanup path in many 9p functions since the function
is noop on null or error fids.

Also make the *_add_fid() helpers "steal" the fid by nulling its
pointer, so put after them will be noop.

This should lead to no change of behaviour

Link: https://lkml.kernel.org/r/20220612085330.1451496-7-asmadeus@codewreck.org
Reviewed-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
2022-07-02 18:52:21 +09:00
..
acl.c 9p: fix a bunch of checkpatch warnings 2021-11-04 21:04:25 +09:00
acl.h 9p: fix a bunch of checkpatch warnings 2021-11-04 21:04:25 +09:00
cache.c netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context 2022-06-09 13:55:00 -07:00
cache.h 9p: Use fscache indexing rewrite and reenable caching 2022-01-10 11:53:06 +00:00
fid.c 9p fid refcount: cleanup p9_fid_put calls 2022-07-02 18:52:21 +09:00
fid.h 9p fid refcount: cleanup p9_fid_put calls 2022-07-02 18:52:21 +09:00
Kconfig 9p: Use fscache indexing rewrite and reenable caching 2022-01-10 11:53:06 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
v9fs_vfs.h 9p: fix a bunch of checkpatch warnings 2021-11-04 21:04:25 +09:00
v9fs.c netfs: Fix gcc-12 warning by embedding vfs inode in netfs_i_context 2022-06-09 13:55:00 -07:00
v9fs.h netfs: Further cleanups after struct netfs_inode wrapper introduced 2022-06-10 20:55:21 +01:00
vfs_addr.c 9p fid refcount: add p9_fid_get/put wrappers 2022-07-02 18:52:21 +09:00
vfs_dentry.c 9p fid refcount: add p9_fid_get/put wrappers 2022-07-02 18:52:21 +09:00
vfs_dir.c 9p fid refcount: add p9_fid_get/put wrappers 2022-07-02 18:52:21 +09:00
vfs_file.c 9p fid refcount: cleanup p9_fid_put calls 2022-07-02 18:52:21 +09:00
vfs_inode_dotl.c 9p fid refcount: cleanup p9_fid_put calls 2022-07-02 18:52:21 +09:00
vfs_inode.c 9p fid refcount: cleanup p9_fid_put calls 2022-07-02 18:52:21 +09:00
vfs_super.c 9p fid refcount: cleanup p9_fid_put calls 2022-07-02 18:52:21 +09:00
xattr.c 9p fid refcount: add p9_fid_get/put wrappers 2022-07-02 18:52:21 +09:00
xattr.h 9p: fix a bunch of checkpatch warnings 2021-11-04 21:04:25 +09:00