• Home
  • Raw
  • Download

Lines Matching refs:entry

221 int nfs_readdir_add_to_array(struct nfs_entry *entry, struct page *page)  in nfs_readdir_add_to_array()  argument
237 cache_entry->cookie = entry->prev_cookie; in nfs_readdir_add_to_array()
238 cache_entry->ino = entry->ino; in nfs_readdir_add_to_array()
239 cache_entry->d_type = entry->d_type; in nfs_readdir_add_to_array()
240 ret = nfs_readdir_make_qstr(&cache_entry->string, entry->name, entry->len); in nfs_readdir_add_to_array()
243 array->last_cookie = entry->cookie; in nfs_readdir_add_to_array()
245 if (entry->eof != 0) in nfs_readdir_add_to_array()
354 struct nfs_entry *entry, struct file *file, struct inode *inode) in nfs_readdir_xdr_filler() argument
364 error = NFS_PROTO(inode)->readdir(file->f_path.dentry, cred, entry->cookie, pages, in nfs_readdir_xdr_filler()
383 struct nfs_entry *entry, struct xdr_stream *xdr) in xdr_decode() argument
387 error = desc->decode(xdr, entry, desc->plus); in xdr_decode()
390 entry->fattr->time_start = desc->timestamp; in xdr_decode()
391 entry->fattr->gencount = desc->gencount; in xdr_decode()
396 int nfs_same_file(struct dentry *dentry, struct nfs_entry *entry) in nfs_same_file() argument
400 if (nfs_compare_fh(entry->fh, NFS_FH(dentry->d_inode)) != 0) in nfs_same_file()
431 void nfs_prime_dcache(struct dentry *parent, struct nfs_entry *entry) in nfs_prime_dcache() argument
433 struct qstr filename = QSTR_INIT(entry->name, entry->len); in nfs_prime_dcache()
449 if (nfs_same_file(dentry, entry)) { in nfs_prime_dcache()
450 nfs_refresh_inode(dentry->d_inode, entry->fattr); in nfs_prime_dcache()
463 inode = nfs_fhget(dentry->d_sb, entry->fh, entry->fattr); in nfs_prime_dcache()
482 int nfs_readdir_page_filler(nfs_readdir_descriptor_t *desc, struct nfs_entry *entry, in nfs_readdir_page_filler() argument
500 status = xdr_decode(desc, entry, &stream); in nfs_readdir_page_filler()
510 nfs_prime_dcache(desc->file->f_path.dentry, entry); in nfs_readdir_page_filler()
512 status = nfs_readdir_add_to_array(entry, page); in nfs_readdir_page_filler()
515 } while (!entry->eof); in nfs_readdir_page_filler()
517 if (count == 0 || (status == -EBADCOOKIE && entry->eof != 0)) { in nfs_readdir_page_filler()
573 struct nfs_entry entry; in nfs_readdir_xdr_to_array() local
579 entry.prev_cookie = 0; in nfs_readdir_xdr_to_array()
580 entry.cookie = desc->last_cookie; in nfs_readdir_xdr_to_array()
581 entry.eof = 0; in nfs_readdir_xdr_to_array()
582 entry.fh = nfs_alloc_fhandle(); in nfs_readdir_xdr_to_array()
583 entry.fattr = nfs_alloc_fattr(); in nfs_readdir_xdr_to_array()
584 entry.server = NFS_SERVER(inode); in nfs_readdir_xdr_to_array()
585 if (entry.fh == NULL || entry.fattr == NULL) in nfs_readdir_xdr_to_array()
601 status = nfs_readdir_xdr_filler(pages, desc, &entry, file, inode); in nfs_readdir_xdr_to_array()
606 status = nfs_readdir_page_filler(desc, &entry, pages, page, pglen); in nfs_readdir_xdr_to_array()
618 nfs_free_fattr(entry.fattr); in nfs_readdir_xdr_to_array()
619 nfs_free_fhandle(entry.fh); in nfs_readdir_xdr_to_array()
1941 static void nfs_access_free_entry(struct nfs_access_entry *entry) in nfs_access_free_entry() argument
1943 put_rpccred(entry->cred); in nfs_access_free_entry()
1944 kfree(entry); in nfs_access_free_entry()
2008 struct nfs_access_entry *entry; in __nfs_access_zap_cache() local
2012 entry = rb_entry(n, struct nfs_access_entry, rb_node); in __nfs_access_zap_cache()
2014 list_move(&entry->lru, head); in __nfs_access_zap_cache()
2041 struct nfs_access_entry *entry; in nfs_access_search_rbtree() local
2044 entry = rb_entry(n, struct nfs_access_entry, rb_node); in nfs_access_search_rbtree()
2046 if (cred < entry->cred) in nfs_access_search_rbtree()
2048 else if (cred > entry->cred) in nfs_access_search_rbtree()
2051 return entry; in nfs_access_search_rbtree()
2097 struct nfs_access_entry *entry; in nfs_access_add_rbtree() local
2102 entry = rb_entry(parent, struct nfs_access_entry, rb_node); in nfs_access_add_rbtree()
2104 if (set->cred < entry->cred) in nfs_access_add_rbtree()
2106 else if (set->cred > entry->cred) in nfs_access_add_rbtree()
2119 list_del(&entry->lru); in nfs_access_add_rbtree()
2121 nfs_access_free_entry(entry); in nfs_access_add_rbtree()
2152 void nfs_access_set_mask(struct nfs_access_entry *entry, u32 access_result) in nfs_access_set_mask() argument
2154 entry->mask = 0; in nfs_access_set_mask()
2156 entry->mask |= MAY_READ; in nfs_access_set_mask()
2159 entry->mask |= MAY_WRITE; in nfs_access_set_mask()
2161 entry->mask |= MAY_EXEC; in nfs_access_set_mask()