Lines Matching refs:hashval
173 nfsd_file_alloc(struct inode *inode, unsigned int may, unsigned int hashval,
187 nf->nf_hashval = hashval;
508 __nfsd_file_close_inode(struct inode *inode, unsigned int hashval,
514 spin_lock(&nfsd_file_hashtbl[hashval].nfb_lock);
515 hlist_for_each_entry_safe(nf, tmp, &nfsd_file_hashtbl[hashval].nfb_head, nf_node) {
519 spin_unlock(&nfsd_file_hashtbl[hashval].nfb_lock);
534 unsigned int hashval = (unsigned int)hash_long(inode->i_ino,
538 __nfsd_file_close_inode(inode, hashval, &dispose);
539 trace_nfsd_file_close_inode_sync(inode, hashval, !list_empty(&dispose));
554 unsigned int hashval = (unsigned int)hash_long(inode->i_ino,
558 __nfsd_file_close_inode(inode, hashval, &dispose);
559 trace_nfsd_file_close_inode(inode, hashval, !list_empty(&dispose));
884 unsigned int hashval, struct net *net)
889 hlist_for_each_entry_rcu(nf, &nfsd_file_hashtbl[hashval].nfb_head,
890 nf_node, lockdep_is_held(&nfsd_file_hashtbl[hashval].nfb_lock)) {
919 unsigned int hashval;
921 hashval = (unsigned int)hash_long(inode->i_ino, NFSD_FILE_HASH_BITS);
924 hlist_for_each_entry_rcu(nf, &nfsd_file_hashtbl[hashval].nfb_head,
932 trace_nfsd_file_is_cached(inode, hashval, (int)ret);
944 unsigned int hashval;
954 hashval = (unsigned int)hash_long(inode->i_ino, NFSD_FILE_HASH_BITS);
957 nf = nfsd_file_find_locked(inode, may_flags, hashval, net);
962 new = nfsd_file_alloc(inode, may_flags, hashval, net);
964 trace_nfsd_file_acquire(rqstp, hashval, inode, may_flags,
969 spin_lock(&nfsd_file_hashtbl[hashval].nfb_lock);
970 nf = nfsd_file_find_locked(inode, may_flags, hashval, net);
973 spin_unlock(&nfsd_file_hashtbl[hashval].nfb_lock);
1015 trace_nfsd_file_acquire(rqstp, hashval, inode, may_flags, nf, status);
1024 hlist_add_head_rcu(&nf->nf_node, &nfsd_file_hashtbl[hashval].nfb_head);
1025 ++nfsd_file_hashtbl[hashval].nfb_count;
1026 nfsd_file_hashtbl[hashval].nfb_maxcount = max(nfsd_file_hashtbl[hashval].nfb_maxcount,
1027 nfsd_file_hashtbl[hashval].nfb_count);
1028 spin_unlock(&nfsd_file_hashtbl[hashval].nfb_lock);
1044 spin_lock(&nfsd_file_hashtbl[hashval].nfb_lock);
1046 spin_unlock(&nfsd_file_hashtbl[hashval].nfb_lock);