Lines Matching refs:fm

369 			   struct fuse_mount **fm)  in fuse_ilookup()  argument
381 if (fm) in fuse_ilookup()
382 *fm = fm_iter; in fuse_ilookup()
448 static void fuse_send_destroy(struct fuse_mount *fm) in fuse_send_destroy() argument
450 if (fm->fc->conn_init) { in fuse_send_destroy()
456 fuse_simple_request(fm, &args); in fuse_send_destroy()
477 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_statfs() local
482 if (!fuse_allow_current_process(fm->fc)) { in fuse_statfs()
494 err = fuse_simple_request(fm, &args); in fuse_statfs()
553 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_sync_fs() local
554 struct fuse_conn *fc = fm->fc; in fuse_sync_fs()
583 err = fuse_simple_request(fm, &args); in fuse_sync_fs()
770 void fuse_conn_init(struct fuse_conn *fc, struct fuse_mount *fm, in fuse_conn_init() argument
801 list_add(&fm->fc_entry, &fc->mounts); in fuse_conn_init()
802 fm->fc = fc; in fuse_conn_init()
1063 static void process_init_reply(struct fuse_mount *fm, struct fuse_args *args, in process_init_reply() argument
1066 struct fuse_conn *fc = fm->fc; in process_init_reply()
1120 fm->sb->s_time_gran = arg->time_gran; in process_init_reply()
1124 fm->sb->s_xattr = fuse_acl_xattr_handlers; in process_init_reply()
1142 fm->sb->s_flags |= SB_NOSEC; in process_init_reply()
1152 fm->sb->s_bdi->ra_pages = in process_init_reply()
1153 min(fm->sb->s_bdi->ra_pages, ra_pages); in process_init_reply()
1170 void fuse_send_init(struct fuse_mount *fm) in fuse_send_init() argument
1178 ia->in.max_readahead = fm->sb->s_bdi->ra_pages * PAGE_SIZE; in fuse_send_init()
1191 if (fm->fc->dax) in fuse_send_init()
1194 if (fm->fc->auto_submounts) in fuse_send_init()
1212 if (fuse_simple_background(fm, &ia->args, GFP_KERNEL) != 0) in fuse_send_init()
1213 process_init_reply(fm, &ia->args, -ENOTCONN); in fuse_send_init()
1370 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_fill_super_submount() local
1376 fm->sb = sb; in fuse_fill_super_submount()
1408 struct fuse_mount *fm; in fuse_get_tree_submount() local
1414 fm = kzalloc(sizeof(struct fuse_mount), GFP_KERNEL); in fuse_get_tree_submount()
1415 if (!fm) in fuse_get_tree_submount()
1418 fm->fc = fuse_conn_get(fc); in fuse_get_tree_submount()
1419 fsc->s_fs_info = fm; in fuse_get_tree_submount()
1422 fuse_mount_destroy(fm); in fuse_get_tree_submount()
1434 list_add_tail(&fm->fc_entry, &fc->mounts); in fuse_get_tree_submount()
1457 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_fill_super_common() local
1458 struct fuse_conn *fc = fm->fc; in fuse_fill_super_common()
1497 fm->sb = sb; in fuse_fill_super_common()
1603 struct fuse_mount *fm; in fuse_get_tree() local
1611 fm = kzalloc(sizeof(*fm), GFP_KERNEL); in fuse_get_tree()
1612 if (!fm) { in fuse_get_tree()
1617 fuse_conn_init(fc, fm, fsc->user_ns, &fuse_dev_fiq_ops, NULL); in fuse_get_tree()
1620 fsc->s_fs_info = fm; in fuse_get_tree()
1653 fuse_mount_destroy(fm); in fuse_get_tree()
1693 bool fuse_mount_remove(struct fuse_mount *fm) in fuse_mount_remove() argument
1695 struct fuse_conn *fc = fm->fc; in fuse_mount_remove()
1699 list_del_init(&fm->fc_entry); in fuse_mount_remove()
1708 void fuse_conn_destroy(struct fuse_mount *fm) in fuse_conn_destroy() argument
1710 struct fuse_conn *fc = fm->fc; in fuse_conn_destroy()
1713 fuse_send_destroy(fm); in fuse_conn_destroy()
1729 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_sb_destroy() local
1733 last = fuse_mount_remove(fm); in fuse_sb_destroy()
1735 fuse_conn_destroy(fm); in fuse_sb_destroy()
1739 void fuse_mount_destroy(struct fuse_mount *fm) in fuse_mount_destroy() argument
1741 fuse_conn_put(fm->fc); in fuse_mount_destroy()
1742 kfree(fm); in fuse_mount_destroy()