Home
last modified time | relevance | path

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

/linux-6.6.21/fs/openpromfs/
Dinode.c374 struct inode *root_inode; in openprom_fill_super() local
384 root_inode = openprom_iget(s, OPENPROM_ROOT_INO); in openprom_fill_super()
385 if (IS_ERR(root_inode)) { in openprom_fill_super()
386 ret = PTR_ERR(root_inode); in openprom_fill_super()
390 root_inode->i_mtime = root_inode->i_atime = inode_set_ctime_current(root_inode); in openprom_fill_super()
391 root_inode->i_op = &openprom_inode_operations; in openprom_fill_super()
392 root_inode->i_fop = &openprom_operations; in openprom_fill_super()
393 root_inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; in openprom_fill_super()
394 oi = OP_I(root_inode); in openprom_fill_super()
397 unlock_new_inode(root_inode); in openprom_fill_super()
[all …]
/linux-6.6.21/fs/autofs/
Dinode.c65 struct inode *root_inode = d_inode(root->d_sb->s_root); in autofs_show_options() local
71 if (!uid_eq(root_inode->i_uid, GLOBAL_ROOT_UID)) in autofs_show_options()
73 from_kuid_munged(&init_user_ns, root_inode->i_uid)); in autofs_show_options()
74 if (!gid_eq(root_inode->i_gid, GLOBAL_ROOT_GID)) in autofs_show_options()
76 from_kgid_munged(&init_user_ns, root_inode->i_gid)); in autofs_show_options()
223 struct inode *root_inode; in autofs_fill_super() local
272 root_inode = autofs_get_inode(s, S_IFDIR | 0755); in autofs_fill_super()
273 root = d_make_root(root_inode); in autofs_fill_super()
283 if (parse_options(data, root_inode, &pgrp, &pgrp_set, sbi)) { in autofs_fill_super()
319 root_inode->i_fop = &autofs_root_operations; in autofs_fill_super()
[all …]
/linux-6.6.21/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.6.21/fs/exfat/
Dsuper.c620 struct inode *root_inode; in exfat_fill_super() local
665 root_inode = new_inode(sb); in exfat_fill_super()
666 if (!root_inode) { in exfat_fill_super()
672 root_inode->i_ino = EXFAT_ROOT_INO; in exfat_fill_super()
673 inode_set_iversion(root_inode, 1); in exfat_fill_super()
674 err = exfat_read_root(root_inode); in exfat_fill_super()
680 exfat_hash_inode(root_inode, EXFAT_I(root_inode)->i_pos); in exfat_fill_super()
681 insert_inode_hash(root_inode); in exfat_fill_super()
683 sb->s_root = d_make_root(root_inode); in exfat_fill_super()
693 iput(root_inode); in exfat_fill_super()
/linux-6.6.21/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.6.21/fs/hostfs/
Dhostfs_kern.c927 struct inode *root_inode; in hostfs_fill_sb_common() local
950 root_inode = hostfs_iget(sb, host_root_path); in hostfs_fill_sb_common()
951 if (IS_ERR(root_inode)) in hostfs_fill_sb_common()
952 return PTR_ERR(root_inode); in hostfs_fill_sb_common()
954 if (S_ISLNK(root_inode->i_mode)) { in hostfs_fill_sb_common()
957 iput(root_inode); in hostfs_fill_sb_common()
962 root_inode = hostfs_iget(sb, name); in hostfs_fill_sb_common()
964 if (IS_ERR(root_inode)) in hostfs_fill_sb_common()
965 return PTR_ERR(root_inode); in hostfs_fill_sb_common()
968 sb->s_root = d_make_root(root_inode); in hostfs_fill_sb_common()
/linux-6.6.21/fs/hfs/
Dsuper.c383 struct inode *root_inode; in hfs_fill_super() local
430 root_inode = hfs_iget(sb, &fd.search_key->cat, &rec); in hfs_fill_super()
432 if (!root_inode) in hfs_fill_super()
437 sb->s_root = d_make_root(root_inode); in hfs_fill_super()
/linux-6.6.21/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.6.21/fs/affs/
Dsuper.c338 struct inode *root_inode = NULL; in affs_fill_super() local
532 root_inode = affs_iget(sb, root_block); in affs_fill_super()
533 if (IS_ERR(root_inode)) in affs_fill_super()
534 return PTR_ERR(root_inode); in affs_fill_super()
541 sb->s_root = d_make_root(root_inode); in affs_fill_super()
/linux-6.6.21/fs/minix/
Dinode.c179 struct inode *root_inode; in minix_fill_super() local
302 root_inode = minix_iget(s, MINIX_ROOT_INO); in minix_fill_super()
303 if (IS_ERR(root_inode)) { in minix_fill_super()
304 ret = PTR_ERR(root_inode); in minix_fill_super()
309 s->s_root = d_make_root(root_inode); in minix_fill_super()
/linux-6.6.21/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.6.21/fs/fat/
Dinode.c1601 struct inode *root_inode = NULL, *fat_inode = NULL; in fat_fill_super() local
1853 root_inode = new_inode(sb); in fat_fill_super()
1854 if (!root_inode) in fat_fill_super()
1856 root_inode->i_ino = MSDOS_ROOT_INO; in fat_fill_super()
1857 inode_set_iversion(root_inode, 1); in fat_fill_super()
1858 error = fat_read_root(root_inode); in fat_fill_super()
1860 iput(root_inode); in fat_fill_super()
1864 insert_inode_hash(root_inode); in fat_fill_super()
1865 fat_attach(root_inode, 0); in fat_fill_super()
1866 sb->s_root = d_make_root(root_inode); in fat_fill_super()
/linux-6.6.21/fs/reiserfs/
Dsuper.c1890 struct inode *root_inode; in reiserfs_fill_super() local
2052 root_inode = in reiserfs_fill_super()
2055 if (!root_inode) { in reiserfs_fill_super()
2070 if (root_inode->i_state & I_NEW) { in reiserfs_fill_super()
2071 reiserfs_read_locked_inode(root_inode, &args); in reiserfs_fill_super()
2072 unlock_new_inode(root_inode); in reiserfs_fill_super()
2075 if (!S_ISDIR(root_inode->i_mode) || !inode_get_bytes(root_inode) || in reiserfs_fill_super()
2076 !root_inode->i_size) { in reiserfs_fill_super()
2078 iput(root_inode); in reiserfs_fill_super()
2083 s->s_root = d_make_root(root_inode); in reiserfs_fill_super()
/linux-6.6.21/fs/tracefs/
Dinode.c155 struct inode *root_inode = ti->private; in set_tracefs_inode_owner() local
162 inode->i_uid = root_inode->i_uid; in set_tracefs_inode_owner()
165 inode->i_gid = root_inode->i_gid; in set_tracefs_inode_owner()
/linux-6.6.21/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()
1086 if (osb->root_inode) in ocfs2_fill_super()
1087 inode = igrab(osb->root_inode); in ocfs2_fill_super()
Docfs2.h296 struct inode *root_inode; member
Dnamei.c903 if (inode == osb->root_inode) in ocfs2_unlink()
1083 if (parent_inode_no == osb->root_inode->i_ino) { in ocfs2_check_if_ancestor()
Dinode.c851 if (inode == osb->root_inode) { in ocfs2_inode_is_valid_to_delete()
/linux-6.6.21/fs/
Ddcache.c2064 struct dentry *d_make_root(struct inode *root_inode) in d_make_root() argument
2068 if (root_inode) { in d_make_root()
2069 res = d_alloc_anon(root_inode->i_sb); in d_make_root()
2071 d_instantiate(res, root_inode); in d_make_root()
2073 iput(root_inode); in d_make_root()
/linux-6.6.21/fs/btrfs/
Dsuper.c1404 struct inode *root_inode = d_inode(root); in mount_subvol() local
1405 u64 root_objectid = BTRFS_I(root_inode)->root->root_key.objectid; in mount_subvol()
1408 if (!is_subvolume_inode(root_inode)) { in mount_subvol()
/linux-6.6.21/security/selinux/
Dhooks.c500 struct inode *root_inode = d_backing_inode(root); in sb_check_xattr_support() local
511 if (!(root_inode->i_opflags & IOP_XATTR)) { in sb_check_xattr_support()
517 rc = __vfs_getxattr(root, root_inode, XATTR_NAME_SELINUX, NULL, 0); in sb_check_xattr_support()
549 struct inode *root_inode = d_backing_inode(root); in sb_finish_set_opts() local
571 rc = inode_doinit_with_dentry(root_inode, root); in sb_finish_set_opts()