/kernel/linux/linux-5.10/fs/overlayfs/ |
H A D | inode.c | 81 old_cred = ovl_override_creds(dentry->d_sb); in ovl_setattr() 99 bool samefs = ovl_same_fs(dentry->d_sb); in ovl_map_dev_ino() 100 unsigned int xinobits = ovl_xino_bits(dentry->d_sb); in ovl_map_dev_ino() 109 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 123 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 125 } else if (ovl_xino_warn(dentry->d_sb)) { in ovl_map_dev_ino() 142 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 151 stat->dev = OVL_FS(dentry->d_sb)->fs[fsid].pseudo_dev; in ovl_map_dev_ino() 172 old_cred = ovl_override_creds(dentry->d_sb); in ovl_getattr() 186 if (!is_dir || ovl_same_dev(dentry->d_sb)) { in ovl_getattr() [all...] |
H A D | util.c | 20 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_want_write() 26 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_drop_write() 32 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_workdir() 167 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_path_upper() 620 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_check_setxattr() 705 if (!lower || !ovl_indexdir(dentry->d_sb)) in ovl_need_index() 709 if (ovl_index_all(dentry->d_sb)) in ovl_need_index() 722 struct dentry *indexdir = ovl_indexdir(dentry->d_sb); in ovl_cleanup_index() 758 } else if (ovl_index_all(dentry->d_sb)) { in ovl_cleanup_index() 760 err = ovl_cleanup_and_whiteout(OVL_FS(dentry->d_sb), in ovl_cleanup_index() [all...] |
H A D | copy_up.c | 284 uuid_t *uuid = &real->d_sb->s_uuid; in ovl_encode_real_fh() 343 if (ovl_can_decode_fh(lower->d_sb)) { in ovl_set_origin() 384 struct dentry *indexdir = ovl_indexdir(dentry->d_sb); in ovl_create_index() 415 err = ovl_set_upper_fh(OVL_FS(dentry->d_sb), upper, temp); in ovl_create_index() 492 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_inode() 514 err = ovl_copy_xattr(c->dentry->d_sb, c->lowerpath.dentry, temp); in ovl_copy_up_inode() 705 struct ovl_fs *ofs = c->dentry->d_sb->s_fs_info; in ovl_do_copy_up() 717 c->workdir = ovl_indexdir(c->dentry->d_sb); in ovl_do_copy_up() 726 c->destdir = ovl_indexdir(c->dentry->d_sb); in ovl_do_copy_up() 778 struct ovl_fs *ofs = dentry->d_sb in ovl_need_meta_copy_up() [all...] |
H A D | readdir.c | 121 if (ovl_xino_bits(rdd->dentry->d_sb)) in ovl_calc_d_ino() 274 old_cred = ovl_override_creds(rdd->dentry->d_sb); in ovl_check_whiteouts() 465 int xinobits = ovl_xino_bits(dir->d_sb); in ovl_cache_update_ino() 468 if (!ovl_same_dev(dir->d_sb)) in ovl_cache_update_ino() 509 dir->d_sb->s_dev != stat.dev); in ovl_cache_update_ino() 515 ovl_xino_warn(dir->d_sb)); in ovl_cache_update_ino() 597 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_cache_get_impure() 697 .xinobits = ovl_xino_bits(dir->d_sb), in ovl_iterate_real() 698 .xinowarn = ovl_xino_warn(dir->d_sb), in ovl_iterate_real() 713 WARN_ON_ONCE(dir->d_sb in ovl_iterate_real() [all...] |
H A D | namei.c | 821 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_lookup() 823 struct ovl_entry *roe = dentry->d_sb->s_root->d_fsdata; in ovl_lookup() 837 .sb = dentry->d_sb, in ovl_lookup() 850 old_cred = ovl_override_creds(dentry->d_sb); in ovl_lookup() 944 ((d.is_dir && ovl_verify_lower(dentry->d_sb)) || in ovl_lookup() 1044 if (origin && ovl_indexdir(dentry->d_sb) && in ovl_lookup() 1045 (!d.is_dir || ovl_index_all(dentry->d_sb))) { in ovl_lookup() 1092 inode = ovl_get_inode(dentry->d_sb, &oip); in ovl_lookup() 1153 old_cred = ovl_override_creds(dentry->d_sb); in ovl_lower_positive()
|
/kernel/linux/linux-5.10/fs/ecryptfs/ |
H A D | super.c | 95 if (!lower_dentry->d_sb->s_op->statfs) in ecryptfs_statfs() 98 rc = lower_dentry->d_sb->s_op->statfs(lower_dentry, buf); in ecryptfs_statfs() 104 &ecryptfs_superblock_to_private(dentry->d_sb)->mount_crypt_stat); in ecryptfs_statfs() 134 struct super_block *sb = root->d_sb; in ecryptfs_show_options()
|
H A D | main.c | 532 if (path.dentry->d_sb->s_type == &ecryptfs_fs_type) { in ecryptfs_mount() 549 ecryptfs_set_superblock_lower(s, path.dentry->d_sb); in ecryptfs_mount() 556 s->s_flags |= path.dentry->d_sb->s_flags & SB_POSIXACL; in ecryptfs_mount() 563 if (sb_rdonly(path.dentry->d_sb) || mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_mount() 566 s->s_maxbytes = path.dentry->d_sb->s_maxbytes; in ecryptfs_mount() 567 s->s_blocksize = path.dentry->d_sb->s_blocksize; in ecryptfs_mount() 569 s->s_stack_depth = path.dentry->d_sb->s_stack_depth + 1; in ecryptfs_mount()
|
/kernel/linux/linux-6.6/fs/ecryptfs/ |
H A D | super.c | 95 if (!lower_dentry->d_sb->s_op->statfs) in ecryptfs_statfs() 98 rc = lower_dentry->d_sb->s_op->statfs(lower_dentry, buf); in ecryptfs_statfs() 104 &ecryptfs_superblock_to_private(dentry->d_sb)->mount_crypt_stat); in ecryptfs_statfs() 134 struct super_block *sb = root->d_sb; in ecryptfs_show_options()
|
H A D | main.c | 532 if (path.dentry->d_sb->s_type == &ecryptfs_fs_type) { in ecryptfs_mount() 555 ecryptfs_set_superblock_lower(s, path.dentry->d_sb); in ecryptfs_mount() 562 s->s_flags |= path.dentry->d_sb->s_flags & SB_POSIXACL; in ecryptfs_mount() 569 if (sb_rdonly(path.dentry->d_sb) || mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_mount() 572 s->s_maxbytes = path.dentry->d_sb->s_maxbytes; in ecryptfs_mount() 573 s->s_blocksize = path.dentry->d_sb->s_blocksize; in ecryptfs_mount() 575 s->s_stack_depth = path.dentry->d_sb->s_stack_depth + 1; in ecryptfs_mount()
|
/kernel/linux/linux-6.6/fs/overlayfs/ |
H A D | inode.c | 26 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_setattr() 82 old_cred = ovl_override_creds(dentry->d_sb); in ovl_setattr() 100 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_map_dev_ino() 111 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 125 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 144 stat->dev = dentry->d_sb->s_dev; in ovl_map_dev_ino() 173 old_cred = ovl_override_creds(dentry->d_sb); in ovl_getattr() 190 if (!is_dir || ovl_same_dev(OVL_FS(dentry->d_sb))) { in ovl_getattr() 220 (!ovl_verify_lower(dentry->d_sb) && in ovl_getattr() 336 old_cred = ovl_override_creds(dentry->d_sb); in ovl_get_link() [all...] |
H A D | copy_up.c | 380 uuid_t *uuid = &real->d_sb->s_uuid; in ovl_encode_real_fh() 440 if (ovl_can_decode_fh(lower->d_sb)) { in ovl_set_origin() 482 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_create_index() 483 struct dentry *indexdir = ovl_indexdir(dentry->d_sb); in ovl_create_index() 555 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_link_up() 593 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_data() 612 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_metadata() 617 err = ovl_copy_xattr(c->dentry->d_sb, &c->lowerpath, temp); in ovl_copy_up_metadata() 708 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_workdir() 794 struct ovl_fs *ofs = OVL_FS(c->dentry->d_sb); in ovl_copy_up_tmpfile() [all...] |
H A D | dir.c | 237 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_set_opaque_xerr() 287 inode = ovl_get_inode(dentry->d_sb, &oip); in ovl_instantiate() 324 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_create_upper() 364 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_clear_empty() 400 err = ovl_copy_xattr(dentry->d_sb, &upperpath, opaquedir); in ovl_clear_empty() 448 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_create_over_whiteout() 566 old_cred = ovl_override_creds(dentry->d_sb); in ovl_create_or_link() 635 inode = ovl_new_inode(dentry->d_sb, mode, rdev); in ovl_create_object() 690 old_cred = ovl_override_creds(dentry->d_sb); in ovl_set_link_redirect() 749 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_remove_and_whiteout() [all...] |
H A D | namei.c | 395 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_lookup_data_layers() 895 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_maybe_validate_verity() 929 old_cred = ovl_override_creds(dentry->d_sb); in ovl_maybe_validate_verity() 967 old_cred = ovl_override_creds(dentry->d_sb); in ovl_maybe_lookup_lowerdata() 1005 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_lookup() 1007 struct ovl_entry *roe = OVL_E(dentry->d_sb->s_root); in ovl_lookup() 1022 .sb = dentry->d_sb, in ovl_lookup() 1035 old_cred = ovl_override_creds(dentry->d_sb); in ovl_lookup() 1131 ((d.is_dir && ovl_verify_lower(dentry->d_sb)) || in ovl_lookup() 1240 if (origin && ovl_indexdir(dentry->d_sb) in ovl_lookup() [all...] |
H A D | util.c | 22 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_want_write() 28 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_drop_write() 34 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_workdir() 207 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_path_upper() 802 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_set_impure() 951 if (!lower || !ovl_indexdir(dentry->d_sb)) in ovl_need_index() 955 if (ovl_index_all(dentry->d_sb)) in ovl_need_index() 968 struct ovl_fs *ofs = OVL_FS(dentry->d_sb); in ovl_cleanup_index() 969 struct dentry *indexdir = ovl_indexdir(dentry->d_sb); in ovl_cleanup_index() 1005 } else if (ovl_index_all(dentry->d_sb)) { in ovl_cleanup_index() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/fs/ |
H A D | fs_context.c | 304 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context() 307 atomic_inc(&reference->d_sb->s_active); in alloc_fs_context() 308 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context() 341 return alloc_fs_context(dentry->d_sb->s_type, dentry, sb_flags, in fs_context_for_reconfigure() 364 ret = security_fs_context_submount(fc, reference->d_sb); in fs_context_for_submount() 376 struct super_block *sb = fc->root->d_sb; in fc_drop_locked() 513 sb = fc->root->d_sb; in put_fs_context() 667 sb = root->d_sb; in legacy_get_tree() 680 struct super_block *sb = fc->root->d_sb; in legacy_reconfigure()
|
/kernel/linux/linux-5.10/fs/cachefiles/ |
H A D | bind.c | 127 !root->d_sb->s_op->statfs || in cachefiles_daemon_add_cache() 128 !root->d_sb->s_op->sync_fs) in cachefiles_daemon_add_cache() 132 if (sb_rdonly(root->d_sb)) in cachefiles_daemon_add_cache() 215 fsdef->dentry->d_sb->s_id); in cachefiles_daemon_add_cache()
|
/kernel/linux/linux-5.10/fs/ |
H A D | fs_context.c | 276 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context() 279 atomic_inc(&reference->d_sb->s_active); in alloc_fs_context() 280 fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); in alloc_fs_context() 313 return alloc_fs_context(dentry->d_sb->s_type, dentry, sb_flags, in fs_context_for_reconfigure() 327 struct super_block *sb = fc->root->d_sb; in fc_drop_locked() 462 sb = fc->root->d_sb; in put_fs_context() 616 sb = root->d_sb; in legacy_get_tree() 629 struct super_block *sb = fc->root->d_sb; in legacy_reconfigure()
|
/kernel/linux/linux-5.10/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() 219 struct jffs2_sb_info *c = JFFS2_SB_INFO(fc->root->d_sb); in jffs2_update_mount_opts() 235 struct super_block *sb = fc->root->d_sb; in jffs2_reconfigure()
|
/kernel/linux/linux-6.6/fs/cachefiles/ |
H A D | cache.c | 66 !root->d_sb->s_op->statfs || in cachefiles_add_cache() 67 !root->d_sb->s_op->sync_fs || in cachefiles_add_cache() 68 root->d_sb->s_blocksize > PAGE_SIZE) in cachefiles_add_cache() 72 if (sb_rdonly(root->d_sb)) in cachefiles_add_cache()
|
/kernel/linux/linux-6.6/fs/jffs2/ |
H A D | super.c | 86 struct jffs2_sb_info *c = JFFS2_SB_INFO(root->d_sb); in jffs2_show_options() 149 return d_obtain_alias(jffs2_iget(child->d_sb, pino)); in jffs2_get_parent() 218 struct jffs2_sb_info *c = JFFS2_SB_INFO(fc->root->d_sb); in jffs2_update_mount_opts() 234 struct super_block *sb = fc->root->d_sb; in jffs2_reconfigure()
|
/kernel/linux/linux-5.10/fs/autofs/ |
H A D | root.c | 65 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_del_active() 77 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_dir_open() 107 struct autofs_sb_info *sbi = autofs_sbi(de->d_sb); in autofs_dentry_release() 128 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_lookup_active() 183 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_lookup_expiring() 242 struct autofs_sb_info *sbi = autofs_sbi(path->dentry->d_sb); in autofs_mount_wait() 287 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_mountpoint_changed() 312 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_d_automount() 400 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_d_manage()
|
H A D | autofs_i.h | 240 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in __autofs_add_expiring() 251 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_add_expiring() 264 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_del_expiring()
|
/kernel/linux/linux-6.6/fs/autofs/ |
H A D | root.c | 69 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_del_active() 81 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_dir_open() 112 struct autofs_sb_info *sbi = autofs_sbi(de->d_sb); in autofs_dentry_release() 133 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_lookup_active() 188 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_lookup_expiring() 247 struct autofs_sb_info *sbi = autofs_sbi(path->dentry->d_sb); in autofs_mount_wait() 292 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_mountpoint_changed() 334 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_d_automount() 422 struct autofs_sb_info *sbi = autofs_sbi(dentry->d_sb); in autofs_d_manage()
|