Lines Matching refs:fm
410 struct fuse_mount **fm) in fuse_ilookup() argument
422 if (fm) in fuse_ilookup()
423 *fm = fm_iter; in fuse_ilookup()
489 static void fuse_send_destroy(struct fuse_mount *fm) in fuse_send_destroy() argument
491 if (fm->fc->conn_init) { in fuse_send_destroy()
497 fuse_simple_request(fm, &args); in fuse_send_destroy()
518 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_statfs() local
523 if (!fuse_allow_current_process(fm->fc)) { in fuse_statfs()
535 err = fuse_simple_request(fm, &args); in fuse_statfs()
594 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_sync_fs() local
595 struct fuse_conn *fc = fm->fc; in fuse_sync_fs()
624 err = fuse_simple_request(fm, &args); in fuse_sync_fs()
815 void fuse_conn_init(struct fuse_conn *fc, struct fuse_mount *fm, in fuse_conn_init() argument
846 list_add(&fm->fc_entry, &fc->mounts); in fuse_conn_init()
847 fm->fc = fc; in fuse_conn_init()
1108 static void process_init_reply(struct fuse_mount *fm, struct fuse_args *args, in process_init_reply() argument
1111 struct fuse_conn *fc = fm->fc; in process_init_reply()
1167 fm->sb->s_time_gran = arg->time_gran; in process_init_reply()
1171 fm->sb->s_xattr = fuse_acl_xattr_handlers; in process_init_reply()
1192 fm->sb->s_flags |= SB_NOSEC; in process_init_reply()
1204 fm->sb->s_bdi->ra_pages = in process_init_reply()
1205 min(fm->sb->s_bdi->ra_pages, ra_pages); in process_init_reply()
1222 void fuse_send_init(struct fuse_mount *fm) in fuse_send_init() argument
1231 ia->in.max_readahead = fm->sb->s_bdi->ra_pages * PAGE_SIZE; in fuse_send_init()
1245 if (fm->fc->dax) in fuse_send_init()
1247 if (fuse_is_inode_dax_mode(fm->fc->dax_mode)) in fuse_send_init()
1250 if (fm->fc->auto_submounts) in fuse_send_init()
1271 if (fuse_simple_background(fm, &ia->args, GFP_KERNEL) != 0) in fuse_send_init()
1272 process_init_reply(fm, &ia->args, -ENOTCONN); in fuse_send_init()
1429 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_fill_super_submount() local
1435 fm->sb = sb; in fuse_fill_super_submount()
1467 struct fuse_mount *fm; in fuse_get_tree_submount() local
1473 fm = kzalloc(sizeof(struct fuse_mount), GFP_KERNEL); in fuse_get_tree_submount()
1474 if (!fm) in fuse_get_tree_submount()
1477 fm->fc = fuse_conn_get(fc); in fuse_get_tree_submount()
1478 fsc->s_fs_info = fm; in fuse_get_tree_submount()
1481 fuse_mount_destroy(fm); in fuse_get_tree_submount()
1493 list_add_tail(&fm->fc_entry, &fc->mounts); in fuse_get_tree_submount()
1516 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_fill_super_common() local
1517 struct fuse_conn *fc = fm->fc; in fuse_fill_super_common()
1556 fm->sb = sb; in fuse_fill_super_common()
1662 struct fuse_mount *fm; in fuse_get_tree() local
1670 fm = kzalloc(sizeof(*fm), GFP_KERNEL); in fuse_get_tree()
1671 if (!fm) { in fuse_get_tree()
1676 fuse_conn_init(fc, fm, fsc->user_ns, &fuse_dev_fiq_ops, NULL); in fuse_get_tree()
1679 fsc->s_fs_info = fm; in fuse_get_tree()
1712 fuse_mount_destroy(fm); in fuse_get_tree()
1752 bool fuse_mount_remove(struct fuse_mount *fm) in fuse_mount_remove() argument
1754 struct fuse_conn *fc = fm->fc; in fuse_mount_remove()
1758 list_del_init(&fm->fc_entry); in fuse_mount_remove()
1767 void fuse_conn_destroy(struct fuse_mount *fm) in fuse_conn_destroy() argument
1769 struct fuse_conn *fc = fm->fc; in fuse_conn_destroy()
1772 fuse_send_destroy(fm); in fuse_conn_destroy()
1788 struct fuse_mount *fm = get_fuse_mount_super(sb); in fuse_sb_destroy() local
1792 last = fuse_mount_remove(fm); in fuse_sb_destroy()
1794 fuse_conn_destroy(fm); in fuse_sb_destroy()
1798 void fuse_mount_destroy(struct fuse_mount *fm) in fuse_mount_destroy() argument
1800 fuse_conn_put(fm->fc); in fuse_mount_destroy()
1801 kfree(fm); in fuse_mount_destroy()