Lines Matching refs:fm

43 static void fuse_request_init(struct fuse_mount *fm, struct fuse_req *req)  in fuse_request_init()  argument
50 req->fm = fm; in fuse_request_init()
53 static struct fuse_req *fuse_request_alloc(struct fuse_mount *fm, gfp_t flags) in fuse_request_alloc() argument
57 fuse_request_init(fm, req); in fuse_request_alloc()
106 static struct fuse_req *fuse_get_req(struct fuse_mount *fm, bool for_background) in fuse_get_req() argument
108 struct fuse_conn *fc = fm->fc; in fuse_get_req()
130 req = fuse_request_alloc(fm, GFP_KERNEL); in fuse_get_req()
160 struct fuse_conn *fc = req->fm->fc; in fuse_put_request()
282 struct fuse_mount *fm = req->fm; in fuse_request_end() local
283 struct fuse_conn *fc = fm->fc; in fuse_request_end()
318 if (fc->num_background == fc->congestion_threshold && fm->sb) { in fuse_request_end()
319 clear_bdi_congested(fm->sb->s_bdi, BLK_RW_SYNC); in fuse_request_end()
320 clear_bdi_congested(fm->sb->s_bdi, BLK_RW_ASYNC); in fuse_request_end()
332 req->args->end(fm, req->args, req->out.h.error); in fuse_request_end()
340 struct fuse_iqueue *fiq = &req->fm->fc->iq; in queue_interrupt()
370 struct fuse_conn *fc = req->fm->fc; in request_wait_answer()
416 struct fuse_iqueue *fiq = &req->fm->fc->iq; in __fuse_request_send()
471 struct fuse_conn *fc = req->fm->fc; in fuse_force_creds()
487 ssize_t fuse_simple_request(struct fuse_mount *fm, struct fuse_args *args) in fuse_simple_request() argument
489 struct fuse_conn *fc = fm->fc; in fuse_simple_request()
495 req = fuse_request_alloc(fm, GFP_KERNEL | __GFP_NOFAIL); in fuse_simple_request()
504 req = fuse_get_req(fm, false); in fuse_simple_request()
528 struct fuse_mount *fm = req->fm; in fuse_request_queue_background() local
529 struct fuse_conn *fc = fm->fc; in fuse_request_queue_background()
543 if (fc->num_background == fc->congestion_threshold && fm->sb) { in fuse_request_queue_background()
544 set_bdi_congested(fm->sb->s_bdi, BLK_RW_SYNC); in fuse_request_queue_background()
545 set_bdi_congested(fm->sb->s_bdi, BLK_RW_ASYNC); in fuse_request_queue_background()
556 int fuse_simple_background(struct fuse_mount *fm, struct fuse_args *args, in fuse_simple_background() argument
563 req = fuse_request_alloc(fm, gfp_flags); in fuse_simple_background()
569 req = fuse_get_req(fm, true); in fuse_simple_background()
585 static int fuse_simple_notify_reply(struct fuse_mount *fm, in fuse_simple_notify_reply() argument
589 struct fuse_iqueue *fiq = &fm->fc->iq; in fuse_simple_notify_reply()
592 req = fuse_get_req(fm, false); in fuse_simple_notify_reply()
1646 static void fuse_retrieve_end(struct fuse_mount *fm, struct fuse_args *args, in fuse_retrieve_end() argument
1656 static int fuse_retrieve(struct fuse_mount *fm, struct inode *inode, in fuse_retrieve() argument
1667 struct fuse_conn *fc = fm->fc; in fuse_retrieve()
1729 err = fuse_simple_notify_reply(fm, args, outarg->notify_unique); in fuse_retrieve()
1731 fuse_retrieve_end(fm, args, err); in fuse_retrieve()
1740 struct fuse_mount *fm; in fuse_notify_retrieve() local
1759 inode = fuse_ilookup(fc, nodeid, &fm); in fuse_notify_retrieve()
1761 err = fuse_retrieve(fm, inode, &outarg); in fuse_notify_retrieve()