summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-10-28 17:47:41 +0300
committerChuck Lever <chuck.lever@oracle.com>2022-11-28 20:54:47 +0300
commit9270fc514ba7d415636b23bcb937573a1ce54f6a (patch)
tree0162d687536877f79d9088d5da3b5749a0b0a47a /scripts/gdb/linux/tasks.py
parent3341678f2fd6106055cead09e513fad6950a0d19 (diff)
downloadlinux-9270fc514ba7d415636b23bcb937573a1ce54f6a.tar.xz
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 <chuck.lever@oracle.com> Reviewed-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions