| /linux/fs/overlayfs/ |
| H A D | xattrs.c | 40 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_xattr_set() 47 with_ovl_creds(dentry->d_sb) in ovl_xattr_set() 65 with_ovl_creds(dentry->d_sb) { in ovl_xattr_set() 88 with_ovl_creds(dentry->d_sb) in ovl_xattr_get() 109 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_listxattr() 115 with_ovl_creds(dentry->d_sb) in ovl_listxattr() 132 if (!ovl_can_list(dentry->d_sb, s)) { in ovl_listxattr() 135 } else if (ovl_is_escaped_xattr(dentry->d_sb, s)) { in ovl_listxattr()
|
| H A D | dir.c | 273 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_set_opaque_xerr() 323 inode = ovl_get_inode(dentry->d_sb, &oip); in ovl_instantiate() 363 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_create_upper() 401 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_clear_empty() 438 err = ovl_copy_xattr(dentry->d_sb, &upperpath, opaquedir); in ovl_clear_empty() 486 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_create_over_whiteout() 603 if (WARN_ON_ONCE(current->cred != ovl_creds(dentry->d_sb))) in ovl_override_creator_creds() 654 scoped_class(override_creds_ovl, original_creds, dentry->d_sb) { in ovl_create_or_link() 711 inode = ovl_new_inode(dentry->d_sb, mode, rdev); in ovl_create_object() 763 with_ovl_creds(dentry->d_sb) in ovl_set_link_redirect() [all …]
|
| H A D | util.c | 24 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_get_write_access() 31 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_start_write() 37 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_want_write() 43 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_put_write_access() 49 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_end_write() 55 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_drop_write() 61 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_workdir() 214 if (sb_has_encoding(dentry->d_sb)) in ovl_dentry_weird() 247 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_path_upper() 911 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_set_impure() [all …]
|
| H A D | copy_up.c | 480 if (!ovl_can_decode_fh(origin->d_sb)) in ovl_get_origin_fh() 524 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_create_index() 525 struct dentry *indexdir = ovl_indexdir(dentry->d_sb); in ovl_create_index() 600 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_link_up() 641 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_data() 661 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_metadata() 666 err = ovl_copy_xattr(c->dentry->d_sb, &c->lowerpath, temp); in ovl_copy_up_metadata() 760 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_workdir() 854 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_tmpfile() 935 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_do_copy_up() [all …]
|
| H A D | inode.c | 25 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_setattr() 88 with_ovl_creds(dentry->d_sb) in ovl_setattr() 105 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_map_dev_ino() 116 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 130 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 149 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 175 struct super_block *sb = dentry->d_sb; in ovl_getattr() 205 if (!is_dir || ovl_same_dev(OVL_FS(dentry->d_sb))) { in ovl_getattr() 234 (!ovl_verify_lower(dentry->d_sb) && in ovl_getattr() 347 with_ovl_creds(dentry->d_sb) in ovl_get_link() [all …]
|
| H A D | readdir.c | 154 if (ovl_xino_bits(OVL_FS(rdd->dentry->d_sb))) in ovl_calc_d_ino() 316 struct ovl_fs *ofs = OVL_FS(rdd->dentry->d_sb); in ovl_fill_merge() 438 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_dir_read_merged() 444 rdd.map = sb_encoding(realpath.dentry->d_sb); in ovl_dir_read_merged() 555 struct ovl_fs *ofs = OVL_FS(dir->d_sb); in ovl_cache_update() 609 dir->d_sb->s_dev != stat.dev); in ovl_cache_update() 698 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_cache_get_impure() 798 struct ovl_fs *ofs = OVL_FS(dir->d_sb); in ovl_iterate_real() 820 WARN_ON_ONCE(dir->d_sb->s_dev != stat.dev); in ovl_iterate_real() 877 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_need_adjust_d_ino() [all …]
|
| /linux/fs/ |
| H A D | fs_context.c | 286 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context() 289 atomic_inc(&reference->d_sb->s_active); in alloc_fs_context() 290 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context() 319 if (dentry->d_sb->s_flags & SB_NOUSER) in fs_context_for_reconfigure() 322 return alloc_fs_context(dentry->d_sb->s_type, dentry, sb_flags, in fs_context_for_reconfigure() 344 ret = security_fs_context_submount(fc, reference->d_sb); in fs_context_for_submount() 356 struct super_block *sb = fc->root->d_sb; in fc_drop_locked() 495 sb = fc->root->d_sb; in put_fs_context()
|
| /linux/fs/hpfs/ |
| H A D | dentry.c | 32 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); in hpfs_hash_dentry() 54 if (hpfs_compare_names(dentry->d_sb, str, al, name->name, bl, 0)) in hpfs_compare_dentry()
|
| /linux/fs/autofs/ |
| H A D | root.c | 70 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_del_active() 82 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_dir_open() 113 struct autofs_sb_info *sbi = autofs_sbi(de->d_sb); in autofs_dentry_release() 134 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_lookup_active() 189 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_lookup_expiring() 248 struct autofs_sb_info *sbi = autofs_sbi(path->dentry->d_sb); in autofs_mount_wait() 293 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_mountpoint_changed() 335 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_d_automount() 431 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_d_manage()
|
| H A D | dev-ioctl.c | 201 if (path.dentry->d_sb->s_magic == AUTOFS_SUPER_MAGIC) { in find_autofs_mount() 218 return path->dentry->d_sb->s_dev == *(dev_t *)p; in test_by_dev() 600 devid = new_encode_dev(path.dentry->d_sb->s_dev); in autofs_dev_ioctl_ismountpoint() 604 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint() 618 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
|
| H A D | expire.c | 44 struct autofs_sb_info *sbi = autofs_sbi(path.dentry->d_sb); in autofs_mount_busy() 97 struct autofs_sb_info *sbi = autofs_sbi(root->d_sb); in get_next_positive_subdir() 115 struct autofs_sb_info *sbi = autofs_sbi(root->d_sb); in get_next_positive_dentry() 492 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_expire_wait()
|
| H A D | symlink.c | 17 sbi = autofs_sbi(dentry->d_sb); in autofs_get_link()
|
| /linux/fs/adfs/ |
| H A D | super.c | 100 struct adfs_sb_info *asb = ADFS_SB(root->d_sb); in adfs_show_options() 162 struct adfs_sb_info *asb = ADFS_SB(fc->root->d_sb); in adfs_reconfigure() 164 sync_filesystem(fc->root->d_sb); in adfs_reconfigure() 175 struct super_block *sb = dentry->d_sb; in adfs_statfs() 439 struct super_block *sb = fc->root->d_sb; in adfs_init_fs_context()
|
| /linux/fs/jffs2/ |
| H A D | super.c | 87 struct jffs2_sb_info *c = JFFS2_SB_INFO(root->d_sb); in jffs2_show_options() 150 return d_obtain_alias(jffs2_iget(child->d_sb, pino)); in jffs2_get_parent() 220 struct jffs2_sb_info *c = JFFS2_SB_INFO(fc->root->d_sb); in jffs2_update_mount_opts() 236 struct super_block *sb = fc->root->d_sb; in jffs2_reconfigure()
|
| /linux/fs/nfs/ |
| H A D | namespace.c | 150 struct nfs_server *server = NFS_SB(path->dentry->d_sb); in nfs_d_automount() 152 unsigned long s_flags = path->dentry->d_sb->s_flags; in nfs_d_automount() 168 ctx->clone_data.sb = path->dentry->d_sb; in nfs_d_automount() 208 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount()
|
| /linux/fs/cachefiles/ |
| H A D | cache.c | 67 !root->d_sb->s_op->statfs || in cachefiles_add_cache() 68 !root->d_sb->s_op->sync_fs || in cachefiles_add_cache() 69 root->d_sb->s_blocksize > PAGE_SIZE) in cachefiles_add_cache() 73 if (sb_rdonly(root->d_sb)) in cachefiles_add_cache()
|
| /linux/fs/debugfs/ |
| H A D | inode.c | 182 struct super_block *sb = fc->root->d_sb; in debugfs_reconfigure() 200 struct debugfs_fs_info *fsi = root->d_sb->s_fs_info; in debugfs_show_options() 436 inode = debugfs_get_inode(dentry->d_sb); in __debugfs_create_file() 581 inode = debugfs_get_inode(dentry->d_sb); in debugfs_create_dir() 623 inode = debugfs_get_inode(dentry->d_sb); in debugfs_create_automount() 681 inode = debugfs_get_inode(dentry->d_sb); in debugfs_create_symlink()
|
| /linux/fs/vboxsf/ |
| H A D | utils.c | 142 struct vboxsf_sbi *sbi = VBOXSF_SBI(dentry->d_sb); in vboxsf_create_at_dentry() 180 struct vboxsf_sbi *sbi = VBOXSF_SBI(dentry->d_sb); in vboxsf_stat_dentry() 208 sbi = VBOXSF_SBI(dentry->d_sb); in vboxsf_inode_revalidate() 265 struct vboxsf_sbi *sbi = VBOXSF_SBI(dentry->d_sb); in vboxsf_setattr() 592 struct vboxsf_sbi *sbi = VBOXSF_SBI(dentry->d_sb); in vboxsf_fileattr_get()
|
| /linux/fs/squashfs/ |
| H A D | super.c | 498 struct super_block *sb = fc->root->d_sb; in squashfs_reconfigure() 502 sync_filesystem(fc->root->d_sb); in squashfs_reconfigure() 524 struct super_block *sb = root->d_sb; in squashfs_show_options() 573 struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info; in squashfs_statfs() 574 u64 id = huge_encode_dev(dentry->d_sb->s_bdev->bd_dev); in squashfs_statfs()
|
| /linux/drivers/android/binder/ |
| H A D | rust_binderfs.c | 302 struct binderfs_info *info = BINDERFS_SB(fc->root->d_sb); in binderfs_fs_context_reconfigure() 314 struct binderfs_info *info = BINDERFS_SB(root->d_sb); in binderfs_show_options() 338 struct binderfs_info *info = dentry->d_sb->s_fs_info; in is_binderfs_control_device() 476 new_inode = binderfs_make_inode(parent->d_sb, S_IFREG | 0444); in rust_binderfs_create_file() 514 new_inode = binderfs_make_inode(parent->d_sb, S_IFDIR | 0755); in binderfs_create_dir()
|
| /linux/fs/devpts/ |
| H A D | inode.c | 311 struct pts_fs_info *fsi = DEVPTS_SB(fc->root->d_sb); in devpts_reconfigure() 340 struct pts_fs_info *fsi = DEVPTS_SB(root->d_sb); in devpts_show_options() 544 if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC) in devpts_get_priv() 557 WARN_ON_ONCE(dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC); in devpts_pty_kill()
|
| /linux/security/tomoyo/ |
| H A D | realpath.c | 156 struct super_block *sb = dentry->d_sb; in tomoyo_get_local_path() 243 struct super_block *sb = dentry->d_sb; in tomoyo_realpath_from_path()
|
| /linux/fs/orangefs/ |
| H A D | super.c | 40 struct orangefs_sb_info_s *orangefs_sb = ORANGEFS_SB(root->d_sb); in orangefs_show_options() 42 if (root->d_sb->s_flags & SB_POSIXACL) in orangefs_show_options() 150 sb = dentry->d_sb; in orangefs_statfs() 207 struct super_block *sb = fc->root->d_sb; in orangefs_reconfigure()
|
| /linux/security/ |
| H A D | inode.c | 132 inode = new_inode(parent->d_sb); in securityfs_create_dentry() 279 if (victim->d_parent == victim->d_sb->s_root) in remove_one()
|
| /linux/include/linux/ |
| H A D | fsnotify_backend.h | 401 return ((struct dentry *)data)->d_sb; in fsnotify_data_sb() 403 return ((const struct path *)data)->dentry->d_sb; in fsnotify_data_sb() 405 return file_range_path(data)->dentry->d_sb; in fsnotify_data_sb() 409 return ((const struct fsnotify_rename_data *)data)->moved->d_sb; in fsnotify_data_sb()
|