Home
last modified time | relevance | path

Searched refs:dreq (Results 1 – 10 of 10) sorted by relevance

/fs/nfs/
Ddirect.c102 static void nfs_direct_write_complete(struct nfs_direct_req *dreq);
105 static inline void get_dreq(struct nfs_direct_req *dreq) in get_dreq() argument
107 atomic_inc(&dreq->io_count); in get_dreq()
110 static inline int put_dreq(struct nfs_direct_req *dreq) in put_dreq() argument
112 return atomic_dec_and_test(&dreq->io_count); in put_dreq()
116 nfs_direct_handle_truncated(struct nfs_direct_req *dreq, in nfs_direct_handle_truncated() argument
123 if (dreq->max_count >= dreq_len) { in nfs_direct_handle_truncated()
124 dreq->max_count = dreq_len; in nfs_direct_handle_truncated()
125 if (dreq->count > dreq_len) in nfs_direct_handle_truncated()
126 dreq->count = dreq_len; in nfs_direct_handle_truncated()
[all …]
Dcache_lib.c68 void nfs_cache_defer_req_put(struct nfs_cache_defer_req *dreq) in nfs_cache_defer_req_put() argument
70 if (refcount_dec_and_test(&dreq->count)) in nfs_cache_defer_req_put()
71 kfree(dreq); in nfs_cache_defer_req_put()
76 struct nfs_cache_defer_req *dreq; in nfs_dns_cache_revisit() local
78 dreq = container_of(d, struct nfs_cache_defer_req, deferred_req); in nfs_dns_cache_revisit()
80 complete(&dreq->completion); in nfs_dns_cache_revisit()
81 nfs_cache_defer_req_put(dreq); in nfs_dns_cache_revisit()
86 struct nfs_cache_defer_req *dreq; in nfs_dns_cache_defer() local
88 dreq = container_of(req, struct nfs_cache_defer_req, req); in nfs_dns_cache_defer()
89 dreq->deferred_req.revisit = nfs_dns_cache_revisit; in nfs_dns_cache_defer()
[all …]
Ddns_resolve.c284 struct nfs_cache_defer_req *dreq) in do_cache_lookup() argument
290 ret = cache_check(cd, &(*item)->h, &dreq->req); in do_cache_lookup()
326 struct nfs_cache_defer_req *dreq; in do_cache_lookup_wait() local
329 dreq = nfs_cache_defer_req_alloc(); in do_cache_lookup_wait()
330 if (!dreq) in do_cache_lookup_wait()
332 ret = do_cache_lookup(cd, key, item, dreq); in do_cache_lookup_wait()
334 ret = nfs_cache_wait_for_upcall(dreq); in do_cache_lookup_wait()
338 nfs_cache_defer_req_put(dreq); in do_cache_lookup_wait()
Dcache_lib.h24 extern void nfs_cache_defer_req_put(struct nfs_cache_defer_req *dreq);
25 extern int nfs_cache_wait_for_upcall(struct nfs_cache_defer_req *dreq);
Dinternal.h511 struct nfs_direct_req *dreq);
556 struct nfs_direct_req *dreq);
557 extern ssize_t nfs_dreq_bytes_left(struct nfs_direct_req *dreq);
664 if (!cinfo->dreq) { in nfs_mark_page_unstable()
Dwrite.c928 cinfo->dreq = NULL; in nfs_init_cinfo_from_inode()
934 struct nfs_direct_req *dreq) in nfs_init_cinfo() argument
936 if (dreq) in nfs_init_cinfo()
937 nfs_init_cinfo_from_dreq(cinfo, dreq); in nfs_init_cinfo()
1056 if ((ret == max) && !cinfo->dreq) in nfs_scan_commit_list()
1749 data->dreq = cinfo->dreq; in nfs_init_commit()
1773 if (!cinfo->dreq) in nfs_retry_commit()
1875 nfs_init_cinfo(&cinfo, data->inode, data->dreq); in nfs_commit_release_pages()
Dpagelist.c55 hdr->dreq = desc->pg_dreq; in nfs_pgheader_init()
1270 desc->pg_dreq = hdr->dreq; in nfs_pageio_resend()
Dnfs4proc.c5347 if (hdr->ds_clp != NULL || hdr->dreq != NULL) in nfs4_write_need_cache_consistency_data()
/fs/nilfs2/
Dbtree.c1743 union nilfs_bmap_ptr_req *dreq, in nilfs_btree_prepare_convert_and_insert() argument
1757 dreq->bpr_ptr = nilfs_btree_find_target_v(btree, NULL, key); in nilfs_btree_prepare_convert_and_insert()
1765 ret = nilfs_bmap_prepare_alloc_ptr(btree, dreq, dat); in nilfs_btree_prepare_convert_and_insert()
1772 nreq->bpr_ptr = dreq->bpr_ptr + 1; in nilfs_btree_prepare_convert_and_insert()
1792 nilfs_bmap_abort_alloc_ptr(btree, dreq, dat); in nilfs_btree_prepare_convert_and_insert()
1803 union nilfs_bmap_ptr_req *dreq, in nilfs_btree_commit_convert_and_insert() argument
1823 nilfs_bmap_commit_alloc_ptr(btree, dreq, dat); in nilfs_btree_commit_convert_and_insert()
1830 nilfs_btree_node_insert(node, n, key, dreq->bpr_ptr, ncblk); in nilfs_btree_commit_convert_and_insert()
1845 nilfs_bmap_commit_alloc_ptr(btree, dreq, dat); in nilfs_btree_commit_convert_and_insert()
1852 nilfs_btree_node_insert(node, n, key, dreq->bpr_ptr, in nilfs_btree_commit_convert_and_insert()
[all …]
/fs/nfs/blocklayout/
Dblocklayout.c266 const bool is_dio = (header->dreq != NULL); in bl_read_pagelist()