diff options
author | Chuck Lever <[email protected]> | 2022-10-28 10:47:41 -0400 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2022-11-28 12:54:47 -0500 |
commit | 9270fc514ba7d415636b23bcb937573a1ce54f6a (patch) | |
tree | 0162d687536877f79d9088d5da3b5749a0b0a47a /lib/mpi/mpi-mod.c | |
parent | 3341678f2fd6106055cead09e513fad6950a0d19 (diff) |
NFSD: Clean up find_or_add_file()
Remove the call to find_file_locked() in insert_nfs4_file(). Tracing
shows that over 99% of these calls return NULL. Thus it is not worth
the expense of the extra bucket list traversal. insert_file() already
deals correctly with the case where the item is already in the hash
bucket.
Since nfsd4_file_hash_insert() is now just a wrapper around
insert_file(), move the meat of insert_file() into
nfsd4_file_hash_insert() and get rid of it.
Signed-off-by: Chuck Lever <[email protected]>
Reviewed-by: NeilBrown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions