| /fs/ |
| A D | fs_context.c | 146 ret = fc->ops->parse_param(fc, param); in vfs_parse_fs_param() 286 if (!fc) in alloc_fs_context() 301 fc->user_ns = get_user_ns(fc->cred->user_ns); in alloc_fs_context() 397 if (!fc) in vfs_dup_fs_context() 414 ret = fc->ops->dup(fc, src_fc); in vfs_dup_fs_context() 523 if (fc->need_free && fc->ops && fc->ops->free) in put_fs_context() 524 fc->ops->free(fc); in put_fs_context() 666 root = fc->fs_type->mount(fc->fs_type, fc->sb_flags, in legacy_get_tree() 741 if (fc->need_free && fc->ops && fc->ops->free) in vfs_clean_context() 742 fc->ops->free(fc); in vfs_clean_context() [all …]
|
| A D | fsopen.c | 71 if (fc) { in fscontext_release() 73 put_fs_context(fc); in fscontext_release() 93 put_fs_context(fc); in fscontext_create_fd() 99 fc->log.log = kzalloc(sizeof(*fc->log.log), GFP_KERNEL); in fscontext_alloc_log() 100 if (!fc->log.log) in fscontext_alloc_log() 103 fc->log.log->owner = fc->fs_type->owner; in fscontext_alloc_log() 138 if (IS_ERR(fc)) in SYSCALL_DEFINE2() 150 put_fs_context(fc); in SYSCALL_DEFINE2() 189 if (IS_ERR(fc)) { in SYSCALL_DEFINE3() 190 ret = PTR_ERR(fc); in SYSCALL_DEFINE3() [all …]
|
| A D | super.c | 761 s = alloc_super(fc->fs_type, fc->sb_flags, user_ns); in sget_fc() 1077 retval = fc->ops->reconfigure(fc); in reconfigure_super() 1088 (fc->sb_flags & fc->sb_flags_mask))); in reconfigure_super() 1612 if (fc) in setup_bdev_super() 1613 errorf(fc, "%s: Can't open blockdev", fc->source); in setup_bdev_super() 1633 if (fc) in setup_bdev_super() 1668 if (!fc->source) in get_tree_bdev_flags() 1674 errorf(fc, "%s: Can't lookup blockdev", fc->source); in get_tree_bdev_flags() 1690 error = setup_bdev_super(s, fc->sb_flags, fc); in get_tree_bdev_flags() 1809 if (fc->root) in vfs_get_tree() [all …]
|
| /fs/fuse/ |
| A D | control.c | 29 if (fc) in fuse_ctl_file_conn_get() 30 fc = fuse_conn_get(fc); in fuse_ctl_file_conn_get() 32 return fc; in fuse_ctl_file_conn_get() 39 if (fc) { in fuse_conn_abort_write() 40 if (fc->abort_err) in fuse_conn_abort_write() 57 if (!fc) in fuse_conn_waiting_read() 111 if (!fc) in fuse_conn_max_background_read() 131 if (fc) { in fuse_conn_max_background_write() 134 fc->blocked = fc->num_background >= fc->max_background; in fuse_conn_max_background_write() 153 if (!fc) in fuse_conn_congestion_threshold_read() [all …]
|
| A D | inode.c | 722 struct fuse_conn *fc = fm->fc; in fuse_sync_fs() local 958 memset(fc, 0, sizeof(*fc)); in fuse_conn_init() 993 fm->fc = fc; in fuse_conn_init() 1004 fc->release(fc); in delayed_release() 1304 struct fuse_conn *fc = fm->fc; in process_init_reply() local 1604 fud->fc = fuse_conn_get(fc); in fuse_dev_install() 1626 struct fuse_conn *fc = fud->fc; in fuse_dev_free() local 1751 fm->fc = fuse_conn_get(fc); in fuse_get_tree_submount() 1791 struct fuse_conn *fc = fm->fc; in fuse_fill_super_common() local 2026 struct fuse_conn *fc = fm->fc; in fuse_mount_remove() local [all …]
|
| A D | dev.c | 176 (fc->io_uring && fc->connected && !fuse_uring_ready(fc)); in fuse_block_alloc() 199 struct fuse_conn *fc = fm->fc; in fuse_get_req() local 268 struct fuse_conn *fc = req->fm->fc; in fuse_put_request() local 441 struct fuse_conn *fc = fm->fc; in fuse_request_end() local 526 struct fuse_conn *fc = req->fm->fc; in request_wait_answer() local 647 struct fuse_conn *fc = fm->fc; in __fuse_simple_request() local 705 struct fuse_conn *fc = fm->fc; in fuse_request_queue_background() local 1386 struct fuse_conn *fc = fud->fc; in fuse_dev_do_read() local 1858 struct fuse_conn *fc = fm->fc; in fuse_retrieve() local 2136 struct fuse_conn *fc = fud->fc; in fuse_dev_do_write() local [all …]
|
| A D | dev_uring.c | 53 struct fuse_conn *fc = ring->fc; in fuse_uring_flush_bg() local 64 while ((fc->active_background < fc->max_background || in fuse_uring_flush_bg() 83 struct fuse_conn *fc = ring->fc; in fuse_uring_req_end() local 124 struct fuse_conn *fc = ring->fc; in fuse_uring_abort_end_requests() local 255 ring->fc = fc; in fuse_uring_create() 271 struct fuse_conn *fc = ring->fc; in fuse_uring_create_queue() local 814 struct fuse_conn *fc = ring->fc; in fuse_uring_commit() local 982 struct fuse_conn *fc = ring->fc; in fuse_uring_do_register() local 1146 fc = fud->fc; in fuse_uring_cmd() 1260 struct fuse_conn *fc = req->fm->fc; in fuse_uring_queue_fuse_req() local [all …]
|
| A D | acl.c | 28 if (fc->no_getxattr) in __fuse_get_acl() 45 (size == -EOPNOTSUPP && fc->no_getxattr)) in __fuse_get_acl() 71 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_get_acl() local 73 if (fuse_no_acl(fc, inode)) in fuse_get_acl() 81 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_get_inode_acl() local 90 if (!fc->posix_acl) in fuse_get_inode_acl() 92 return __fuse_get_acl(fc, inode, type, rcu); in fuse_get_inode_acl() 99 struct fuse_conn *fc = get_fuse_conn(inode); in fuse_set_acl() local 106 if (fc->no_setxattr || fuse_no_acl(fc, inode)) in fuse_set_acl() 146 if (fc->posix_acl && in fuse_set_acl() [all …]
|
| A D | dev_uring_i.h | 110 struct fuse_conn *fc; member 139 void fuse_uring_destruct(struct fuse_conn *fc); 146 bool fuse_uring_request_expired(struct fuse_conn *fc); 148 static inline void fuse_uring_abort(struct fuse_conn *fc) in fuse_uring_abort() argument 150 struct fuse_ring *ring = fc->ring; in fuse_uring_abort() 163 struct fuse_ring *ring = fc->ring; in fuse_uring_wait_stopped_queues() 170 static inline bool fuse_uring_ready(struct fuse_conn *fc) in fuse_uring_ready() argument 172 return fc->ring && fc->ring->ready; in fuse_uring_ready() 177 static inline void fuse_uring_destruct(struct fuse_conn *fc) in fuse_uring_destruct() argument 186 static inline void fuse_uring_abort(struct fuse_conn *fc) in fuse_uring_abort() argument [all …]
|
| A D | dir.c | 203 struct fuse_conn *fc; in fuse_dentry_revalidate() local 414 struct fuse_conn *fc; in fuse_lookup() local 762 if (fc->no_create) in fuse_atomic_open() 767 fc->no_create = 1; in fuse_atomic_open() 910 if (fc->no_tmpfile) in fuse_tmpfile() 1118 if (fc->no_rename2 || fc->minor < 23) in fuse_rename2() 1349 if (fc->no_statx) in fuse_update_get_attr() 1761 if (fc->minor < 18) in fuse_dir_ioctl() 1772 if (fc->minor < 18) in fuse_dir_compat_ioctl() 1944 struct fuse_conn *fc = fm->fc; in fuse_do_setattr() local [all …]
|
| A D | passthrough.c | 172 idr_init(&fc->backing_files_map); in fuse_backing_files_init() 180 spin_lock(&fc->lock); in fuse_backing_id_alloc() 183 spin_unlock(&fc->lock); in fuse_backing_id_alloc() 195 spin_lock(&fc->lock); in fuse_backing_id_remove() 196 fb = idr_remove(&fc->backing_files_map, id); in fuse_backing_id_remove() 197 spin_unlock(&fc->lock); in fuse_backing_id_remove() 214 idr_destroy(&fc->backing_files_map); in fuse_backing_files_free() 228 if (!fc->passthrough || !capable(CAP_SYS_ADMIN)) in fuse_backing_open() 254 res = fuse_backing_id_alloc(fc, fb); in fuse_backing_open() 287 fb = fuse_backing_id_remove(fc, backing_id); in fuse_backing_close() [all …]
|
| /fs/proc/ |
| A D | root.c | 60 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_hidepid_param() 91 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_subset_param() 114 struct proc_fs_context *ctx = fc->fs_private; in proc_parse_param() 128 if (proc_parse_hidepid_param(fc, param)) in proc_parse_param() 146 struct fs_context *fc, in proc_apply_options() argument 149 struct proc_fs_context *ctx = fc->fs_private; in proc_apply_options() 215 struct super_block *sb = fc->root->d_sb; in proc_reconfigure() 226 return get_tree_nodev(fc, proc_fill_super); in proc_get_tree() 253 put_user_ns(fc->user_ns); in proc_init_fs_context() 255 fc->fs_private = ctx; in proc_init_fs_context() [all …]
|
| /fs/nfs/ |
| A D | fs_context.c | 602 if (fc->security) in nfs_fs_context_parse_param() 607 if (fc->source) in nfs_fs_context_parse_param() 1131 return fc->root != NULL; in is_remount_fc() 1297 if (is_remount_fc(fc)) { in nfs23_parse_monolithic() 1394 if (is_remount_fc(fc)) in nfs4_parse_monolithic() 1396 return nfs_invalf(fc, in nfs4_parse_monolithic() 1509 if (!fc->source) in nfs_fs_context_validate() 1653 fc->fs_private = ctx; in nfs_fs_context_dup() 1709 if (fc->root) { in nfs_init_fs_context() 1733 put_net(fc->net_ns); in nfs_init_fs_context() [all …]
|
| A D | namespace.c | 148 struct fs_context *fc; in nfs_d_automount() local 162 if (IS_ERR(fc)) in nfs_d_automount() 163 return ERR_CAST(fc); in nfs_d_automount() 165 ctx = nfs_fc2context(fc); in nfs_d_automount() 172 if (fc->net_ns != client->cl_net) { in nfs_d_automount() 173 put_net(fc->net_ns); in nfs_d_automount() 193 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount() 194 mnt = vfs_create_mount(fc); in nfs_d_automount() 205 put_fs_context(fc); in nfs_d_automount() 295 ret = vfs_get_tree(fc); in nfs_do_submount() [all …]
|
| /fs/smb/client/ |
| A D | fs_context.c | 879 fc->root = root; in smb3_get_tree_common() 889 int err = smb3_fs_context_validate(fc); in smb3_get_tree() 895 ret = smb3_get_tree_common(fc); in smb3_get_tree() 940 cifs_errorf(fc, in smb3_verify_reconfigure_ctx() 944 cifs_errorf(fc, in smb3_verify_reconfigure_ctx() 1021 struct dentry *root = fc->root; in smb3_reconfigure() 1348 cifs_errorf(fc, "acregmax too large\n"); in smb3_fs_context_parse_param() 1362 cifs_errorf(fc, "timeout too large\n"); in smb3_fs_context_parse_param() 1447 if (fc->source == NULL) { in smb3_fs_context_parse_param() 1924 fc->fs_private = ctx; in smb3_init_fs_context() [all …]
|
| /fs/coda/ |
| A D | inode.c | 94 sync_filesystem(fc->root->d_sb); in coda_reconfigure() 95 fc->sb_flags |= SB_NOATIME; in coda_reconfigure() 130 return invalf(fc, "coda: Not coda psdev"); in coda_set_idx() 154 err = coda_set_idx(fc, file); in coda_parse_fd() 170 return coda_parse_fd(fc, param, &result); in coda_parse_param() 186 return invalf(fc, "coda: Bad mount data"); in coda_parse_monolithic() 193 coda_set_idx(fc, file); in coda_parse_monolithic() 213 errorf(fc, "coda: No pseudo device"); in coda_fill_super() 369 kfree(fc->fs_private); in coda_free_fc() 388 fc->fs_private = ctx; in coda_init_fs_context() [all …]
|
| /fs/freevxfs/ |
| A D | vxfs_super.c | 96 sync_filesystem(fc->root->d_sb); in vxfs_reconfigure() 97 fc->sb_flags |= SB_RDONLY; in vxfs_reconfigure() 131 int silent = fc->sb_flags & SB_SILENT; in vxfs_try_sb_magic() 138 warnf(fc, in vxfs_try_sb_magic() 149 infof(fc, in vxfs_try_sb_magic() 191 int silent = fc->sb_flags & SB_SILENT; in vxfs_fill_super() 213 if (!vxfs_try_sb_magic(sbp, fc, 1, in vxfs_fill_super() 217 } else if (!vxfs_try_sb_magic(sbp, fc, 8, in vxfs_fill_super() 252 warnf(fc, "vxfs: unable to read olt"); in vxfs_fill_super() 257 warnf(fc, "vxfs: unable to read fshead"); in vxfs_fill_super() [all …]
|
| /fs/sysfs/ |
| A D | mount.c | 26 static int sysfs_get_tree(struct fs_context *fc) in sysfs_get_tree() argument 28 struct kernfs_fs_context *kfc = fc->fs_private; in sysfs_get_tree() 31 ret = kernfs_get_tree(fc); in sysfs_get_tree() 42 struct kernfs_fs_context *kfc = fc->fs_private; in sysfs_fs_context_free() 46 kernfs_free_fs_context(fc); in sysfs_fs_context_free() 60 if (!(fc->sb_flags & SB_KERNMOUNT)) { in sysfs_init_fs_context() 72 fc->fs_private = kfc; in sysfs_init_fs_context() 73 fc->ops = &sysfs_fs_context_ops; in sysfs_init_fs_context() 75 put_user_ns(fc->user_ns); in sysfs_init_fs_context() 76 fc->user_ns = get_user_ns(netns->user_ns); in sysfs_init_fs_context() [all …]
|
| /fs/overlayfs/ |
| A D | params.c | 339 struct ovl_fs *ofs = fc->s_fs_info; in ovl_add_layer() 418 err = ovl_ctx_realloc_lower(fc); in ovl_do_parse_layer() 588 struct ovl_fs *ofs = fc->s_fs_info; in ovl_parse_param() 599 if (fc->oldapi) in ovl_parse_param() 624 err = ovl_parse_layer(fc, param, opt); in ovl_parse_param() 674 if (!current_in_userns(fc->user_ns)) { in ovl_parse_param() 713 struct ovl_fs *ofs = fc->s_fs_info; in ovl_free() 731 struct super_block *sb = fc->root->d_sb; in ovl_reconfigure() 795 fc->s_fs_info = ofs; in ovl_init_fs_context() 796 fc->fs_private = ctx; in ovl_init_fs_context() [all …]
|
| /fs/afs/ |
| A D | super.c | 232 if (fc->source) in afs_parse_source() 310 fc->source = param->string; in afs_parse_source() 410 fc->sb_flags |= SB_RDONLY; in afs_validate_fc() 555 ret = afs_validate_fc(fc); in afs_get_tree() 563 as = afs_alloc_sbi(fc); in afs_get_tree() 566 fc->s_fs_info = as; in afs_get_tree() 569 sb = sget_fc(fc, in afs_get_tree() 589 fc->root = dget(sb->s_root); in afs_get_tree() 605 afs_destroy_sbi(fc->s_fs_info); in afs_free_fc() 639 fc->fs_private = ctx; in afs_init_fs_context() [all …]
|
| /fs/autofs/ |
| A D | inode.c | 176 errorf(fc, "Invalid/unusable pipe"); in autofs_parse_fd() 194 struct autofs_fs_context *ctx = fc->fs_private; in autofs_parse_param() 195 struct autofs_sb_info *sbi = fc->s_fs_info; in autofs_parse_param() 268 struct autofs_sb_info *sbi = fc->s_fs_info; in autofs_validate_protocol() 367 struct autofs_sb_info *sbi = fc->s_fs_info; in autofs_get_tree() 370 ret = autofs_validate_protocol(fc); in autofs_get_tree() 377 return get_tree_nodev(fc, autofs_fill_super); in autofs_get_tree() 383 struct autofs_sb_info *sbi = fc->s_fs_info; in autofs_free_fc() 418 fc->fs_private = ctx; in autofs_init_fs_context() 419 fc->s_fs_info = sbi; in autofs_init_fs_context() [all …]
|
| /fs/ceph/ |
| A D | super.c | 264 struct fs_context *fc) in ceph_parse_old_source() argument 283 struct fs_context *fc) in ceph_parse_new_source() argument 395 fc->source = param->string; in ceph_parse_source() 457 if (fc->source) in ceph_parse_mount_param() 619 warnfc(fc, in ceph_parse_mount_param() 1315 if (!fc->source) in ceph_get_tree() 1336 fc->s_fs_info = fsc; in ceph_get_tree() 1338 fc->s_fs_info = NULL; in ceph_get_tree() 1363 fc->root = fsc->sb->s_root; in ceph_get_tree() 1472 fc->sb_flags |= SB_POSIXACL; in ceph_init_fs_context() [all …]
|
| /fs/squashfs/ |
| A D | super.c | 153 struct fs_context *fc, in supported_squashfs_filesystem() argument 165 errorf(fc, "Please update your kernel"); in supported_squashfs_filesystem() 235 if (!(fc->sb_flags & SB_SILENT)) in squashfs_fill_super() 249 fc, in squashfs_fill_super() 385 errorf(fc, "unable to read id index table"); in squashfs_fill_super() 498 struct super_block *sb = fc->root->d_sb; in squashfs_reconfigure() 502 sync_filesystem(fc->root->d_sb); in squashfs_reconfigure() 503 fc->sb_flags |= SB_RDONLY; in squashfs_reconfigure() 512 kfree(fc->fs_private); in squashfs_free_fs_context() 566 fc->fs_private = opts; in squashfs_init_fs_context() [all …]
|
| /fs/jffs2/ |
| A D | super.c | 192 struct jffs2_sb_info *c = fc->s_fs_info; in jffs2_parse_param() 219 struct jffs2_sb_info *new_c = fc->s_fs_info; in jffs2_update_mount_opts() 236 struct super_block *sb = fc->root->d_sb; in jffs2_reconfigure() 239 jffs2_update_mount_opts(fc); in jffs2_reconfigure() 241 return jffs2_do_remount_fs(sb, fc); in jffs2_reconfigure() 290 return jffs2_do_fill_super(sb, fc); in jffs2_fill_super() 293 static int jffs2_get_tree(struct fs_context *fc) in jffs2_get_tree() argument 295 return get_tree_mtd(fc, jffs2_fill_super); in jffs2_get_tree() 300 kfree(fc->s_fs_info); in jffs2_free_fc() 318 fc->s_fs_info = ctx; in jffs2_init_fs_context() [all …]
|
| /fs/vboxsf/ |
| A D | super.c | 56 struct vboxsf_fs_context *ctx = fc->fs_private; in vboxsf_parse_param() 113 struct vboxsf_fs_context *ctx = fc->fs_private; in vboxsf_fill_super() 122 if (!fc->source) in vboxsf_fill_super() 163 size = strlen(fc->source) + 1; in vboxsf_fill_super() 176 fc->source, err); in vboxsf_fill_super() 383 return generic_parse_monolithic(fc, data); in vboxsf_parse_monolithic() 394 return get_tree_nodev(fc, vboxsf_fill_super); in vboxsf_get_tree() 400 struct vboxsf_fs_context *ctx = fc->fs_private; in vboxsf_reconfigure() 412 struct vboxsf_fs_context *ctx = fc->fs_private; in vboxsf_free_fc() 436 fc->fs_private = ctx; in vboxsf_init_fs_context() [all …]
|