Home
last modified time | relevance | path

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

12

/linux-6.12.1/fs/autofs/
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-6.12.1/fs/openpromfs/
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-6.12.1/fs/proc/
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()
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()
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-6.12.1/fs/tracefs/
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-6.12.1/fs/exfat/
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-6.12.1/arch/s390/hypfs/
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-6.12.1/fs/hostfs/
Dhostfs_kern.c934 struct inode *root_inode; in hostfs_fill_super() local
947 root_inode = hostfs_iget(sb, fsi->host_root_path); in hostfs_fill_super()
948 if (IS_ERR(root_inode)) in hostfs_fill_super()
949 return PTR_ERR(root_inode); in hostfs_fill_super()
951 if (S_ISLNK(root_inode->i_mode)) { in hostfs_fill_super()
954 iput(root_inode); in hostfs_fill_super()
959 root_inode = hostfs_iget(sb, name); in hostfs_fill_super()
961 if (IS_ERR(root_inode)) in hostfs_fill_super()
962 return PTR_ERR(root_inode); in hostfs_fill_super()
965 sb->s_root = d_make_root(root_inode); in hostfs_fill_super()
/linux-6.12.1/fs/hfs/
Dsuper.c384 struct inode *root_inode; in hfs_fill_super() local
431 root_inode = hfs_iget(sb, &fd.search_key->cat, &rec); in hfs_fill_super()
433 if (!root_inode) in hfs_fill_super()
438 sb->s_root = d_make_root(root_inode); in hfs_fill_super()
/linux-6.12.1/fs/squashfs/
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()
Dsquashfs_fs.h252 __le64 root_inode; member
/linux-6.12.1/fs/affs/
Dsuper.c337 struct inode *root_inode = NULL; in affs_fill_super() local
531 root_inode = affs_iget(sb, root_block); in affs_fill_super()
532 if (IS_ERR(root_inode)) in affs_fill_super()
533 return PTR_ERR(root_inode); in affs_fill_super()
540 sb->s_root = d_make_root(root_inode); in affs_fill_super()
/linux-6.12.1/fs/xfs/scrub/
Dorphanage.c127 struct inode *root_inode = VFS_I(sc->mp->m_rootip); in xrep_orphanage_create() local
142 root_dentry = d_find_alias(root_inode); in xrep_orphanage_create()
155 inode_lock_nested(root_inode, I_MUTEX_PARENT); in xrep_orphanage_create()
170 error = vfs_mkdir(&nop_mnt_idmap, root_inode, orphanage_dentry, in xrep_orphanage_create()
/linux-6.12.1/fs/minix/
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-6.12.1/fs/sysv/
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-6.12.1/fs/fat/
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-6.12.1/fs/reiserfs/
Dsuper.c1889 struct inode *root_inode; in reiserfs_fill_super() local
2051 root_inode = in reiserfs_fill_super()
2054 if (!root_inode) { in reiserfs_fill_super()
2069 if (root_inode->i_state & I_NEW) { in reiserfs_fill_super()
2070 reiserfs_read_locked_inode(root_inode, &args); in reiserfs_fill_super()
2071 unlock_new_inode(root_inode); in reiserfs_fill_super()
2074 if (!S_ISDIR(root_inode->i_mode) || !inode_get_bytes(root_inode) || in reiserfs_fill_super()
2075 !root_inode->i_size) { in reiserfs_fill_super()
2077 iput(root_inode); in reiserfs_fill_super()
2082 s->s_root = d_make_root(root_inode); in reiserfs_fill_super()
/linux-6.12.1/fs/bcachefs/
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()
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-6.12.1/security/landlock/
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()
Druleset.h181 struct rb_root root_inode; member
/linux-6.12.1/fs/ocfs2/
Ddcache.c70 if (inode == osb->root_inode || is_bad_inode(inode)) in ocfs2_dentry_revalidate()
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()
/linux-6.12.1/fs/
Ddcache.c1927 struct dentry *d_make_root(struct inode *root_inode) in d_make_root() argument
1931 if (root_inode) { in d_make_root()
1932 res = d_alloc_anon(root_inode->i_sb); in d_make_root()
1934 d_instantiate(res, root_inode); in d_make_root()
1936 iput(root_inode); in d_make_root()

12