Home
last modified time | relevance | path

Searched refs:root_inode (Results 1 – 24 of 24) sorted by relevance

/linux/fs/autofs/
H A Dinode.c66 struct inode *root_inode = d_inode(root->d_sb->s_root); in autofs_show_options() local
72 if (!uid_eq(root_inode->i_uid, GLOBAL_ROOT_UID)) in autofs_show_options()
74 from_kuid_munged(&init_user_ns, root_inode->i_uid)); in autofs_show_options()
75 if (!gid_eq(root_inode->i_gid, GLOBAL_ROOT_GID)) in autofs_show_options()
77 from_kgid_munged(&init_user_ns, root_inode->i_gid)); in autofs_show_options()
304 struct inode *root_inode; in autofs_fill_super() local
324 root_inode = autofs_get_inode(s, S_IFDIR | 0755); in autofs_fill_super()
325 if (!root_inode) in autofs_fill_super()
328 root_inode->i_uid = ctx->uid; in autofs_fill_super()
329 root_inode->i_gid = ctx->gid; in autofs_fill_super()
[all …]
/linux/fs/openpromfs/
H A Dinode.c373 struct inode *root_inode; in openprom_fill_super() local
383 root_inode = openprom_iget(s, OPENPROM_ROOT_INO); in openprom_fill_super()
384 if (IS_ERR(root_inode)) { in openprom_fill_super()
385 ret = PTR_ERR(root_inode); in openprom_fill_super()
389 simple_inode_init_ts(root_inode); in openprom_fill_super()
390 root_inode->i_op = &openprom_inode_operations; in openprom_fill_super()
391 root_inode->i_fop = &openprom_operations; in openprom_fill_super()
392 root_inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; in openprom_fill_super()
393 oi = OP_I(root_inode); in openprom_fill_super()
396 unlock_new_inode(root_inode); in openprom_fill_super()
[all …]
/linux/fs/proc/
H A Dself.c38 struct inode *root_inode = d_inode(s->s_root); in proc_setup_self() local
43 inode_lock(root_inode); in proc_setup_self()
60 inode_unlock(root_inode); in proc_setup_self()
H A Dthread_self.c38 struct inode *root_inode = d_inode(s->s_root); in proc_setup_thread_self() local
43 inode_lock(root_inode); in proc_setup_thread_self()
60 inode_unlock(root_inode); in proc_setup_thread_self()
H A Droot.c162 struct inode *root_inode; in proc_fill_super() local
194 root_inode = proc_get_inode(s, &proc_root); in proc_fill_super()
195 if (!root_inode) { in proc_fill_super()
200 s->s_root = d_make_root(root_inode); in proc_fill_super()
/linux/fs/tracefs/
H A Dinode.c179 struct inode *root_inode = ti->private; in set_tracefs_inode_owner() local
183 uid = root_inode->i_uid; in set_tracefs_inode_owner()
184 gid = root_inode->i_gid; in set_tracefs_inode_owner()
191 if (root_inode != d_inode(root_inode->i_sb->s_root)) { in set_tracefs_inode_owner()
194 rti = get_tracefs(root_inode); in set_tracefs_inode_owner()
195 root_inode = d_inode(root_inode->i_sb->s_root); in set_tracefs_inode_owner()
198 uid = root_inode->i_uid; in set_tracefs_inode_owner()
201 gid = root_inode->i_gid; in set_tracefs_inode_owner()
/linux/fs/exfat/
H A Dsuper.c659 struct inode *root_inode; in exfat_fill_super() local
704 root_inode = new_inode(sb); in exfat_fill_super()
705 if (!root_inode) { in exfat_fill_super()
711 root_inode->i_ino = EXFAT_ROOT_INO; in exfat_fill_super()
712 inode_set_iversion(root_inode, 1); in exfat_fill_super()
713 err = exfat_read_root(root_inode); in exfat_fill_super()
719 exfat_hash_inode(root_inode, EXFAT_I(root_inode)->i_pos); in exfat_fill_super()
720 insert_inode_hash(root_inode); in exfat_fill_super()
722 sb->s_root = d_make_root(root_inode); in exfat_fill_super()
732 iput(root_inode); in exfat_fill_super()
/linux/arch/s390/hypfs/
H A Dinode.c259 struct inode *root_inode; in hypfs_fill_super() local
268 root_inode = hypfs_make_inode(sb, S_IFDIR | 0755); in hypfs_fill_super()
269 if (!root_inode) in hypfs_fill_super()
271 root_inode->i_op = &simple_dir_inode_operations; in hypfs_fill_super()
272 root_inode->i_fop = &simple_dir_operations; in hypfs_fill_super()
273 sb->s_root = root_dentry = d_make_root(root_inode); in hypfs_fill_super()
/linux/fs/hostfs/
H A Dhostfs_kern.c935 struct inode *root_inode; in hostfs_fill_super() local
948 root_inode = hostfs_iget(sb, fsi->host_root_path); in hostfs_fill_super()
949 if (IS_ERR(root_inode)) in hostfs_fill_super()
950 return PTR_ERR(root_inode); in hostfs_fill_super()
952 if (S_ISLNK(root_inode->i_mode)) { in hostfs_fill_super()
955 iput(root_inode); in hostfs_fill_super()
960 root_inode = hostfs_iget(sb, name); in hostfs_fill_super()
962 if (IS_ERR(root_inode)) in hostfs_fill_super()
963 return PTR_ERR(root_inode); in hostfs_fill_super()
966 sb->s_root = d_make_root(root_inode); in hostfs_fill_super()
/linux/fs/squashfs/
H A Dsuper.c186 long long root_inode; in squashfs_fill_super() local
283 root_inode = le64_to_cpu(sblk->root_inode); in squashfs_fill_super()
284 if (SQUASHFS_INODE_OFFSET(root_inode) > SQUASHFS_METADATA_SIZE) in squashfs_fill_super()
445 err = squashfs_read_inode(root, root_inode); in squashfs_fill_super()
H A Dsquashfs_fs.h252 __le64 root_inode; member
/linux/fs/minix/
H A Dinode.c180 struct inode *root_inode; in minix_fill_super() local
304 root_inode = minix_iget(s, MINIX_ROOT_INO); in minix_fill_super()
305 if (IS_ERR(root_inode)) { in minix_fill_super()
306 ret = PTR_ERR(root_inode); in minix_fill_super()
311 s->s_root = d_make_root(root_inode); in minix_fill_super()
/linux/fs/sysv/
H A Dsuper.c306 struct inode *root_inode; in complete_read_super() local
339 root_inode = sysv_iget(sb, SYSV_ROOT_INO); in complete_read_super()
340 if (IS_ERR(root_inode)) { in complete_read_super()
344 sb->s_root = d_make_root(root_inode); in complete_read_super()
/linux/fs/fat/
H A Dinode.c1537 struct inode *root_inode = NULL, *fat_inode = NULL; in fat_fill_super() local
1809 root_inode = new_inode(sb); in fat_fill_super()
1810 if (!root_inode) in fat_fill_super()
1812 root_inode->i_ino = MSDOS_ROOT_INO; in fat_fill_super()
1813 inode_set_iversion(root_inode, 1); in fat_fill_super()
1814 error = fat_read_root(root_inode); in fat_fill_super()
1816 iput(root_inode); in fat_fill_super()
1820 insert_inode_hash(root_inode); in fat_fill_super()
1821 fat_attach(root_inode, 0); in fat_fill_super()
1822 sb->s_root = d_make_root(root_inode); in fat_fill_super()
/linux/fs/bcachefs/
H A Drecovery.c1008 struct bch_inode_unpacked root_inode, lostfound_inode; in bch2_fs_initialize() local
1096 bch2_inode_init(c, &root_inode, 0, 0, S_IFDIR|0755, 0, NULL); in bch2_fs_initialize()
1097 root_inode.bi_inum = BCACHEFS_ROOT_INO; in bch2_fs_initialize()
1098 root_inode.bi_subvol = BCACHEFS_ROOT_SUBVOL; in bch2_fs_initialize()
1099 bch2_inode_pack(&packed_inode, &root_inode); in bch2_fs_initialize()
1112 &root_inode, &lostfound_inode, in bch2_fs_initialize()
H A Dfsck.c248 struct bch_inode_unpacked root_inode; in lookup_lostfound() local
250 ret = lookup_inode(trans, root_inum.inum, snapshot, &root_inode); in lookup_lostfound()
256 root_hash_info = bch2_hash_info_init(c, &root_inode); in lookup_lostfound()
299 bch2_inode_init_late(lostfound, now, 0, 0, S_IFDIR|0700, 0, &root_inode); in lookup_lostfound()
300 lostfound->bi_dir = root_inode.bi_inum; in lookup_lostfound()
303 root_inode.bi_nlink++; in lookup_lostfound()
315 0, root_inode.bi_inum, snapshot, &root_hash_info, in lookup_lostfound()
2628 struct bch_inode_unpacked root_inode; in check_root_trans() local
2659 ret = lookup_inode(trans, BCACHEFS_ROOT_INO, snapshot, &root_inode); in check_root_trans()
2666 mustfix_fsck_err_on(!S_ISDIR(root_inode.bi_mode), in check_root_trans()
[all …]
/linux/security/landlock/
H A Druleset.c38 new_ruleset->root_inode = RB_ROOT; in create_ruleset()
145 return &ruleset->root_inode; in get_root()
490 rbtree_postorder_for_each_entry_safe(freeme, next, &ruleset->root_inode, in free_ruleset()
H A Druleset.h181 struct rb_root root_inode; member
/linux/fs/ocfs2/
H A Ddcache.c70 if (inode == osb->root_inode || is_bad_inode(inode)) in ocfs2_dentry_revalidate()
H A Dsuper.c443 osb->root_inode = new; in ocfs2_init_global_system_inodes()
524 inode = osb->root_inode; in ocfs2_release_system_inodes()
527 osb->root_inode = NULL; in ocfs2_release_system_inodes()
1088 if (osb->root_inode) in ocfs2_fill_super()
1089 inode = igrab(osb->root_inode); in ocfs2_fill_super()
H A Docfs2.h320 struct inode *root_inode; member
H A Dnamei.c906 if (inode == osb->root_inode) in ocfs2_unlink()
1087 if (parent_inode_no == osb->root_inode->i_ino) { in ocfs2_check_if_ancestor()
/linux/fs/btrfs/
H A Dsuper.c1191 struct inode *root_inode = d_inode(root); in mount_subvol() local
1192 u64 root_objectid = btrfs_root_id(BTRFS_I(root_inode)->root); in mount_subvol()
1195 if (!is_subvolume_inode(root_inode)) { in mount_subvol()
/linux/security/selinux/
H A Dhooks.c507 struct inode *root_inode = d_backing_inode(root); in sb_check_xattr_support() local
518 if (!(root_inode->i_opflags & IOP_XATTR)) { in sb_check_xattr_support()
524 rc = __vfs_getxattr(root, root_inode, XATTR_NAME_SELINUX, NULL, 0); in sb_check_xattr_support()
556 struct inode *root_inode = d_backing_inode(root); in sb_finish_set_opts() local
578 rc = inode_doinit_with_dentry(root_inode, root); in sb_finish_set_opts()