Lines Matching refs:fm

535 			   struct fuse_mount **fm)  in fuse_ilookup()  argument
547 if (fm) in fuse_ilookup()
548 *fm = fm_iter; in fuse_ilookup()
631 static void fuse_send_destroy(struct fuse_mount *fm) in fuse_send_destroy() argument
633 if (fm->fc->conn_init) { in fuse_send_destroy()
639 fuse_simple_request(fm, &args); in fuse_send_destroy()
660 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_statfs() local
665 if (!fuse_allow_current_process(fm->fc)) { in fuse_statfs()
677 err = fuse_simple_request(fm, &args); in fuse_statfs()
736 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_sync_fs() local
737 struct fuse_conn *fc = fm->fc; in fuse_sync_fs()
766 err = fuse_simple_request(fm, &args); in fuse_sync_fs()
969 void fuse_conn_init(struct fuse_conn *fc, struct fuse_mount *fm, in fuse_conn_init() argument
1008 list_add(&fm->fc_entry, &fc->mounts); in fuse_conn_init()
1009 fm->fc = fc; in fuse_conn_init()
1319 static void process_init_reply(struct fuse_mount *fm, struct fuse_args *args, in process_init_reply() argument
1322 struct fuse_conn *fc = fm->fc; in process_init_reply()
1382 fm->sb->s_time_gran = arg->time_gran; in process_init_reply()
1413 fm->sb->s_flags |= SB_NOSEC; in process_init_reply()
1444 fm->sb->s_stack_depth = arg->max_stack_depth; in process_init_reply()
1447 fm->sb->s_export_op = &fuse_export_fid_operations; in process_init_reply()
1450 fm->sb->s_iflags &= ~SB_I_NOIDMAP; in process_init_reply()
1467 fm->sb->s_bdi->ra_pages = in process_init_reply()
1468 min(fm->sb->s_bdi->ra_pages, ra_pages); in process_init_reply()
1485 static struct fuse_init_args *fuse_new_init(struct fuse_mount *fm) in fuse_new_init() argument
1494 ia->in.max_readahead = fm->sb->s_bdi->ra_pages * PAGE_SIZE; in fuse_new_init()
1511 if (fm->fc->dax) in fuse_new_init()
1513 if (fuse_is_inode_dax_mode(fm->fc->dax_mode)) in fuse_new_init()
1516 if (fm->fc->auto_submounts) in fuse_new_init()
1548 int fuse_send_init(struct fuse_mount *fm) in fuse_send_init() argument
1550 struct fuse_init_args *ia = fuse_new_init(fm); in fuse_send_init()
1553 if (fm->fc->sync_init) { in fuse_send_init()
1554 err = fuse_simple_request(fm, &ia->args); in fuse_send_init()
1560 err = fuse_simple_background(fm, &ia->args, GFP_KERNEL); in fuse_send_init()
1564 process_init_reply(fm, &ia->args, err); in fuse_send_init()
1565 if (fm->fc->conn_error) in fuse_send_init()
1720 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_fill_super_submount() local
1728 fm->sb = sb; in fuse_fill_super_submount()
1744 fuse_get_evict_ctr(fm->fc)); in fuse_fill_super_submount()
1777 struct fuse_mount *fm; in fuse_get_tree_submount() local
1783 fm = kzalloc(sizeof(struct fuse_mount), GFP_KERNEL); in fuse_get_tree_submount()
1784 if (!fm) in fuse_get_tree_submount()
1787 fm->fc = fuse_conn_get(fc); in fuse_get_tree_submount()
1788 fsc->s_fs_info = fm; in fuse_get_tree_submount()
1791 fuse_mount_destroy(fm); in fuse_get_tree_submount()
1803 list_add_tail(&fm->fc_entry, &fc->mounts); in fuse_get_tree_submount()
1826 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_fill_super_common() local
1827 struct fuse_conn *fc = fm->fc; in fuse_fill_super_common()
1867 fm->sb = sb; in fuse_fill_super_common()
1933 struct fuse_mount *fm; in fuse_fill_super() local
1955 fm = get_fuse_mount_super(sb); in fuse_fill_super()
1957 return fuse_send_init(fm); in fuse_fill_super()
1980 struct fuse_mount *fm; in fuse_get_tree() local
1988 fm = kzalloc(sizeof(*fm), GFP_KERNEL); in fuse_get_tree()
1989 if (!fm) { in fuse_get_tree()
1994 fuse_conn_init(fc, fm, fsc->user_ns, &fuse_dev_fiq_ops, NULL); in fuse_get_tree()
1997 fsc->s_fs_info = fm; in fuse_get_tree()
2030 fuse_mount_destroy(fm); in fuse_get_tree()
2070 bool fuse_mount_remove(struct fuse_mount *fm) in fuse_mount_remove() argument
2072 struct fuse_conn *fc = fm->fc; in fuse_mount_remove()
2076 list_del_init(&fm->fc_entry); in fuse_mount_remove()
2085 void fuse_conn_destroy(struct fuse_mount *fm) in fuse_conn_destroy() argument
2087 struct fuse_conn *fc = fm->fc; in fuse_conn_destroy()
2090 fuse_send_destroy(fm); in fuse_conn_destroy()
2106 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_sb_destroy() local
2110 last = fuse_mount_remove(fm); in fuse_sb_destroy()
2112 fuse_conn_destroy(fm); in fuse_sb_destroy()
2116 void fuse_mount_destroy(struct fuse_mount *fm) in fuse_mount_destroy() argument
2118 fuse_conn_put(fm->fc); in fuse_mount_destroy()
2119 kfree_rcu(fm, rcu); in fuse_mount_destroy()