fs/9p: track open fids
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Wed, 23 Sep 2020 14:11:44 +0000 (22:11 +0800)
committerDominique Martinet <asmadeus@codewreck.org>
Tue, 3 Nov 2020 08:29:46 +0000 (09:29 +0100)
commit987a64850996db22bbcf2c1d0a051446a343fa2c
tree70596e685ff828cc5225956c3426d5f559eb5f28
parent154372e67d4053e56591245eb413686621941333
fs/9p: track open fids

This patch adds accounting of open fids in a list hanging off the i_private
field of the corresponding inode. This allows faster lookups compared to
searching the full 9p client list.

The lookup code is modified accordingly.

Link: http://lkml.kernel.org/r/20200923141146.90046-3-jianyong.wu@arm.com
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/fid.c
fs/9p/fid.h
fs/9p/vfs_dir.c
fs/9p/vfs_file.c
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c
include/net/9p/client.h