Home
last modified time | relevance | path

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

/fs/autofs4/
Dinode.c185 struct inode *root_inode = mnt->mnt_sb->s_root->d_inode; in autofs4_show_options() local
191 if (root_inode->i_uid != 0) in autofs4_show_options()
192 seq_printf(m, ",uid=%u", root_inode->i_uid); in autofs4_show_options()
193 if (root_inode->i_gid != 0) in autofs4_show_options()
194 seq_printf(m, ",gid=%u", root_inode->i_gid); in autofs4_show_options()
319 struct inode * root_inode; in autofs4_fill_super() local
362 root_inode = autofs4_get_inode(s, ino); in autofs4_fill_super()
363 if (!root_inode) in autofs4_fill_super()
366 root = d_alloc_root(root_inode); in autofs4_fill_super()
375 if (parse_options(data, &pipefd, &root_inode->i_uid, &root_inode->i_gid, in autofs4_fill_super()
[all …]
/fs/autofs/
Dinode.c136 struct inode * root_inode; in autofs_fill_super() local
167 root_inode = autofs_iget(s, AUTOFS_ROOT_INO); in autofs_fill_super()
168 if (IS_ERR(root_inode)) in autofs_fill_super()
170 root = d_alloc_root(root_inode); in autofs_fill_super()
177 if (parse_options(data, &pipefd, &root_inode->i_uid, in autofs_fill_super()
178 &root_inode->i_gid, &pgid, &minproto, in autofs_fill_super()
227 iput(root_inode); in autofs_fill_super()
/fs/openpromfs/
Dinode.c385 struct inode *root_inode; in openprom_fill_super() local
395 root_inode = openprom_iget(s, OPENPROM_ROOT_INO); in openprom_fill_super()
396 if (IS_ERR(root_inode)) { in openprom_fill_super()
397 ret = PTR_ERR(root_inode); in openprom_fill_super()
401 oi = OP_I(root_inode); in openprom_fill_super()
405 s->s_root = d_alloc_root(root_inode); in openprom_fill_super()
411 iput(root_inode); in openprom_fill_super()
/fs/affs/
Dsuper.c266 struct inode *root_inode = NULL; in affs_fill_super() local
455 root_inode = affs_iget(sb, root_block); in affs_fill_super()
456 if (IS_ERR(root_inode)) { in affs_fill_super()
457 ret = PTR_ERR(root_inode); in affs_fill_super()
461 sb->s_root = d_alloc_root(root_inode); in affs_fill_super()
475 if (root_inode) in affs_fill_super()
476 iput(root_inode); in affs_fill_super()
/fs/proc/
Dinode.c502 struct inode * root_inode; in proc_fill_super() local
512 root_inode = proc_get_inode(s, PROC_ROOT_INO, &proc_root); in proc_fill_super()
513 if (!root_inode) in proc_fill_super()
515 root_inode->i_uid = 0; in proc_fill_super()
516 root_inode->i_gid = 0; in proc_fill_super()
517 s->s_root = d_alloc_root(root_inode); in proc_fill_super()
524 iput(root_inode); in proc_fill_super()
/fs/hfs/
Dsuper.c358 struct inode *root_inode; in hfs_fill_super() local
396 root_inode = hfs_iget(sb, &fd.search_key->cat, &rec); in hfs_fill_super()
398 if (!root_inode) in hfs_fill_super()
402 sb->s_root = d_alloc_root(root_inode); in hfs_fill_super()
412 iput(root_inode); in hfs_fill_super()
/fs/squashfs/
Dsuper.c74 long long root_inode; in squashfs_fill_super() local
165 root_inode = le64_to_cpu(sblk->root_inode); in squashfs_fill_super()
166 if (SQUASHFS_INODE_OFFSET(root_inode) > SQUASHFS_METADATA_SIZE) in squashfs_fill_super()
261 err = squashfs_read_inode(root, root_inode); in squashfs_fill_super()
Dsquashfs_fs.h228 __le64 root_inode; member
/fs/hostfs/
Dhostfs_kern.c967 struct inode *root_inode; in hostfs_fill_sb_common() local
988 root_inode = hostfs_iget(sb); in hostfs_fill_sb_common()
989 if (IS_ERR(root_inode)) { in hostfs_fill_sb_common()
990 err = PTR_ERR(root_inode); in hostfs_fill_sb_common()
994 err = init_inode(root_inode, NULL); in hostfs_fill_sb_common()
998 HOSTFS_I(root_inode)->host_filename = host_root_path; in hostfs_fill_sb_common()
1006 sb->s_root = d_alloc_root(root_inode); in hostfs_fill_sb_common()
1010 err = hostfs_read_inode(root_inode); in hostfs_fill_sb_common()
1021 iput(root_inode); in hostfs_fill_sb_common()
/fs/sysv/
Dsuper.c305 struct inode *root_inode; in complete_read_super() local
335 root_inode = sysv_iget(sb, SYSV_ROOT_INO); in complete_read_super()
336 if (IS_ERR(root_inode)) { in complete_read_super()
340 sb->s_root = d_alloc_root(root_inode); in complete_read_super()
342 iput(root_inode); in complete_read_super()
/fs/minix/
Dinode.c148 struct inode *root_inode; in minix_fill_super() local
248 root_inode = minix_iget(s, MINIX_ROOT_INO); in minix_fill_super()
249 if (IS_ERR(root_inode)) { in minix_fill_super()
250 ret = PTR_ERR(root_inode); in minix_fill_super()
255 s->s_root = d_alloc_root(root_inode); in minix_fill_super()
273 iput(root_inode); in minix_fill_super()
/fs/fat/
Dinode.c1193 struct inode *root_inode = NULL; in fat_fill_super() local
1442 root_inode = new_inode(sb); in fat_fill_super()
1443 if (!root_inode) in fat_fill_super()
1445 root_inode->i_ino = MSDOS_ROOT_INO; in fat_fill_super()
1446 root_inode->i_version = 1; in fat_fill_super()
1447 error = fat_read_root(root_inode); in fat_fill_super()
1451 insert_inode_hash(root_inode); in fat_fill_super()
1452 sb->s_root = d_alloc_root(root_inode); in fat_fill_super()
1467 if (root_inode) in fat_fill_super()
1468 iput(root_inode); in fat_fill_super()
/fs/smbfs/
Dinode.c499 struct inode *root_inode; in smb_fill_super() local
610 root_inode = smb_iget(sb, &root); in smb_fill_super()
611 if (!root_inode) in smb_fill_super()
614 sb->s_root = d_alloc_root(root_inode); in smb_fill_super()
623 iput(root_inode); in smb_fill_super()
/fs/hppfs/
Dhppfs.c706 struct inode *root_inode; in hppfs_fill_super() local
721 root_inode = get_inode(sb, proc_mnt->mnt_sb->s_root); in hppfs_fill_super()
722 if (!root_inode) in hppfs_fill_super()
725 sb->s_root = d_alloc_root(root_inode); in hppfs_fill_super()
732 iput(root_inode); in hppfs_fill_super()
/fs/ncpfs/
Dinode.c438 struct inode *root_inode; in ncp_fill_super() local
690 root_inode = ncp_iget(sb, &finfo); in ncp_fill_super()
691 if (!root_inode) in ncp_fill_super()
693 DPRINTK("ncp_fill_super: root vol=%d\n", NCP_FINFO(root_inode)->volNumber); in ncp_fill_super()
694 sb->s_root = d_alloc_root(root_inode); in ncp_fill_super()
701 iput(root_inode); in ncp_fill_super()
/fs/reiserfs/
Dsuper.c1598 struct inode *root_inode; in reiserfs_fill_super() local
1735 root_inode = in reiserfs_fill_super()
1738 if (!root_inode) { in reiserfs_fill_super()
1744 if (root_inode->i_state & I_NEW) { in reiserfs_fill_super()
1745 reiserfs_read_locked_inode(root_inode, &args); in reiserfs_fill_super()
1746 unlock_new_inode(root_inode); in reiserfs_fill_super()
1749 s->s_root = d_alloc_root(root_inode); in reiserfs_fill_super()
1751 iput(root_inode); in reiserfs_fill_super()
/fs/ocfs2/
Dsuper.c269 osb->root_inode = new; in ocfs2_init_global_system_inodes()
353 inode = osb->root_inode; in ocfs2_release_system_inodes()
356 osb->root_inode = NULL; in ocfs2_release_system_inodes()
930 if (osb->root_inode) in ocfs2_fill_super()
931 inode = igrab(osb->root_inode); in ocfs2_fill_super()
Ddcache.c63 if (inode == osb->root_inode || is_bad_inode(inode)) in ocfs2_dentry_revalidate()
Docfs2.h218 struct inode *root_inode; member
Dinode.c776 if (inode == osb->root_inode) { in ocfs2_inode_is_valid_to_delete()
Dnamei.c781 if (inode == osb->root_inode) { in ocfs2_unlink()
/fs/
Ddcache.c1093 struct dentry * d_alloc_root(struct inode * root_inode) in d_alloc_root() argument
1097 if (root_inode) { in d_alloc_root()
1102 res->d_sb = root_inode->i_sb; in d_alloc_root()
1104 d_instantiate(res, root_inode); in d_alloc_root()