diff options
author | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2020-09-23 17:11:44 +0300 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2020-11-03 11:29:46 +0300 |
commit | 987a64850996db22bbcf2c1d0a051446a343fa2c (patch) | |
tree | 70596e685ff828cc5225956c3426d5f559eb5f28 /include | |
parent | 154372e67d4053e56591245eb413686621941333 (diff) | |
download | linux-987a64850996db22bbcf2c1d0a051446a343fa2c.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/9p/client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h index dd5b5bd781a4..ce7882da8e86 100644 --- a/include/net/9p/client.h +++ b/include/net/9p/client.h @@ -152,6 +152,7 @@ struct p9_fid { void *rdir; struct hlist_node dlist; /* list of all fids attached to a dentry */ + struct hlist_node ilist; }; /** |