Home
last modified time | relevance | path

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

12345

/linux/fs/nfs/
H A Dgetroot.c42 if (sb->s_root == NULL) { in nfs_superblock_set_dummy_root()
43 sb->s_root = d_make_root(inode); in nfs_superblock_set_dummy_root()
44 if (sb->s_root == NULL) in nfs_superblock_set_dummy_root()
55 spin_lock(&d_inode(sb->s_root)->i_lock); in nfs_superblock_set_dummy_root()
56 spin_lock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root()
57 hlist_del_init(&sb->s_root->d_u.d_alias); in nfs_superblock_set_dummy_root()
58 spin_unlock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root()
59 spin_unlock(&d_inode(sb->s_root)->i_lock); in nfs_superblock_set_dummy_root()
/linux/fs/autofs/
H A Dinode.c64 struct inode *root_inode = d_inode(root->d_sb->s_root); in autofs_show_options()
340 s->s_root = d_make_root(root_inode); in autofs_fill_super()
341 if (unlikely(!s->s_root)) { in autofs_fill_super()
345 s->s_root->d_fsdata = ino; in autofs_fill_super()
360 managed_dentry_set_managed(s->s_root); in autofs_fill_super()
444 if (sb->s_root) { in autofs_get_inode()
445 inode->i_uid = d_inode(sb->s_root)->i_uid; in autofs_get_inode()
446 inode->i_gid = d_inode(sb->s_root)->i_gid; in autofs_get_inode()
/linux/fs/
H A Dsuper.c618 if (sb->s_root) { in generic_shutdown_super()
921 if (sb->s_root) in iterate_supers()
959 if (sb->s_root) in iterate_supers_type()
990 if (sb->s_root) in user_get_super()
1042 if (!sb->s_root) in reconfigure_super()
1233 if (sb->s_root) in kill_litter_super()
1267 if (!sb->s_root) { in vfs_get_super()
1604 if (s->s_root) { in get_tree_bdev()
1650 if (s->s_root) { in mount_bdev()
1667 return dget(s->s_root); in mount_bdev()
[all …]
/linux/arch/s390/hypfs/
H A Dinode.c186 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
188 rc = hypfs_vm_create_files(sb->s_root); in hypfs_write_iter()
190 rc = hypfs_diag_create_files(sb->s_root); in hypfs_write_iter()
193 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
273 sb->s_root = root_dentry = d_make_root(root_inode); in hypfs_fill_super()
328 if (sb->s_root) in hypfs_kill_super()
329 hypfs_delete_tree(sb->s_root); in hypfs_kill_super()
/linux/fs/devpts/
H A Dinode.c125 (path->mnt->mnt_root != sb->s_root)) in devpts_ptmx_path()
309 struct dentry *root = sb->s_root; in mknod_ptmx()
459 s->s_root = d_make_root(inode); in devpts_fill_super()
460 if (!s->s_root) { in devpts_fill_super()
471 dput(s->s_root); in devpts_fill_super()
472 s->s_root = NULL; in devpts_fill_super()
552 root = sb->s_root; in devpts_pty_new()
/linux/fs/proc/
H A Dself.c38 struct inode *root_inode = d_inode(s->s_root); in proc_setup_self()
44 self = d_alloc_name(s->s_root, "self"); in proc_setup_self()
H A Dthread_self.c38 struct inode *root_inode = d_inode(s->s_root); in proc_setup_thread_self()
44 thread_self = d_alloc_name(s->s_root, "thread-self"); in proc_setup_thread_self()
/linux/drivers/mtd/
H A Dmtdsuper.c37 if (sb->s_root) { in mtd_get_sb()
65 fc->root = dget(sb->s_root); in mtd_get_sb()
/linux/fs/kernfs/
H A Dmount.c213 dentry = dget(sb->s_root); in kernfs_node_dentry()
283 sb->s_root = root; in kernfs_fill_super()
348 if (!sb->s_root) { in kernfs_get_tree()
370 fc->root = dget(sb->s_root); in kernfs_get_tree()
/linux/fs/9p/
H A Dfid.c203 root_fid = v9fs_fid_find(dentry->d_sb->s_root, uid, any); in v9fs_fid_lookup_with_uid()
220 v9fs_fid_add(dentry->d_sb->s_root, &fid); in v9fs_fid_lookup_with_uid()
223 if (dentry->d_sb->s_root == dentry) in v9fs_fid_lookup_with_uid()
H A Dvfs_super.c153 sb->s_root = root; in v9fs_mount()
160 return dget(sb->s_root); in v9fs_mount()
/linux/fs/overlayfs/
H A Dexport.c77 if (dentry == dentry->d_sb->s_root) in ovl_connectable_layer()
107 if (WARN_ON(dentry == dentry->d_sb->s_root) || in ovl_connect_layer()
196 if (dentry == dentry->d_sb->s_root) in ovl_check_encode_origin()
490 return dget(sb->s_root); in ovl_lookup_real_ancestor()
506 ancestor = dget(sb->s_root); in ovl_lookup_real_ancestor()
573 connected = dget(sb->s_root); in ovl_lookup_real()
/linux/drivers/android/
H A Dbinderfs.c184 root = sb->s_root; in binderfs_binder_device_create()
397 struct dentry *root = sb->s_root; in binderfs_binder_ctl_create()
595 dir = binderfs_create_dir(sb->s_root, "features"); in init_binder_features()
621 binder_logs_root_dir = binderfs_create_dir(sb->s_root, in init_binder_logs()
708 sb->s_root = d_make_root(inode); in binderfs_fill_super()
709 if (!sb->s_root) in binderfs_fill_super()
/linux/fs/afs/
H A Ddynroot.c281 root = sb->s_root; in afs_dynroot_mkdir()
309 root = sb->s_root; in afs_dynroot_rmdir()
367 struct dentry *root = sb->s_root, *subdir; in afs_dynroot_depopulate()
H A Dsuper.c485 sb->s_root = d_make_root(inode); in afs_fill_super()
486 if (!sb->s_root) in afs_fill_super()
588 if (!sb->s_root) { in afs_get_tree()
600 fc->root = dget(sb->s_root); in afs_get_tree()
/linux/security/tomoyo/
H A Drealpath.c180 struct inode *inode = d_backing_inode(sb->s_root); in tomoyo_get_local_path()
261 inode = d_backing_inode(sb->s_root); in tomoyo_realpath_from_path()
/linux/fs/reiserfs/
H A Dsuper.c2083 if (!s->s_root) in reiserfs_fill_super()
2088 dput(s->s_root); in reiserfs_fill_super()
2089 s->s_root = NULL; in reiserfs_fill_super()
2105 dput(s->s_root); in reiserfs_fill_super()
2106 s->s_root = NULL; in reiserfs_fill_super()
2167 dput(s->s_root); in reiserfs_fill_super()
2168 s->s_root = NULL; in reiserfs_fill_super()
2175 dput(s->s_root); in reiserfs_fill_super()
2176 s->s_root = NULL; in reiserfs_fill_super()
2193 dput(s->s_root); in reiserfs_fill_super()
[all …]
H A Dxattr.c976 inode_lock(d_inode(s->s_root)); in reiserfs_lookup_privroot()
977 dentry = lookup_one_len(PRIVROOT_NAME, s->s_root, in reiserfs_lookup_privroot()
986 inode_unlock(d_inode(s->s_root)); in reiserfs_lookup_privroot()
1006 inode_lock(d_inode(s->s_root)); in reiserfs_xattr_init()
1008 inode_unlock(d_inode(s->s_root)); in reiserfs_xattr_init()
/linux/security/selinux/
H A Dselinuxfs.c542 lock_rename(tmp_parent, fsi->sb->s_root); in sel_make_policy_nodes()
557 unlock_rename(tmp_parent, fsi->sb->s_root); in sel_make_policy_nodes()
1947 struct dentry *dentry = d_alloc_name(sb->s_root, ".swapover"); in sel_make_swapover_dir()
1963 inode_lock(sb->s_root->d_inode); in sel_make_swapover_dir()
1965 inc_nlink(sb->s_root->d_inode); in sel_make_swapover_dir()
1966 inode_unlock(sb->s_root->d_inode); in sel_make_swapover_dir()
2012 fsi->bool_dir = sel_make_dir(sb->s_root, BOOL_DIR_NAME, &fsi->last_ino); in sel_fill_super()
2020 dentry = d_alloc_name(sb->s_root, NULL_FILE_NAME); in sel_fill_super()
2040 dentry = sel_make_dir(sb->s_root, "avc", &fsi->last_ino); in sel_fill_super()
2050 dentry = sel_make_dir(sb->s_root, "s in sel_fill_super()
[all...]
/linux/fs/qnx6/
H A Dinode.c185 struct inode *root = d_inode(s->s_root); in qnx6_checkroot()
448 s->s_root = d_make_root(root); in qnx6_fill_super()
449 if (!s->s_root) in qnx6_fill_super()
462 dput(s->s_root); in qnx6_fill_super()
463 s->s_root = NULL; in qnx6_fill_super()
/linux/fs/bfs/
H A Dinode.c364 s->s_root = d_make_root(inode); in bfs_fill_super()
365 if (!s->s_root) { in bfs_fill_super()
438 dput(s->s_root); in bfs_fill_super()
439 s->s_root = NULL; in bfs_fill_super()
/linux/fs/pstore/
H A Dinode.c300 root = pstore_sb->s_root; in psinfo_lock_root()
429 sb->s_root = d_make_root(inode); in pstore_fill_super()
430 if (!sb->s_root) in pstore_fill_super()
/linux/fs/ecryptfs/
H A Dmain.c574 s->s_root = d_make_root(inode); in ecryptfs_mount()
575 if (!s->s_root) { in ecryptfs_mount()
586 ecryptfs_set_dentry_private(s->s_root, root_info); in ecryptfs_mount()
590 return dget(s->s_root); in ecryptfs_mount()
/linux/fs/freevxfs/
H A Dvxfs_super.c266 sbp->s_root = d_make_root(root); in vxfs_fill_super()
267 if (!sbp->s_root) { in vxfs_fill_super()
/linux/fs/tracefs/
H A Dinode.c194 if (root_inode != d_inode(root_inode->i_sb->s_root)) { in set_tracefs_inode_owner()
198 root_inode = d_inode(root_inode->i_sb->s_root); in set_tracefs_inode_owner()
347 struct inode *inode = d_inode(sb->s_root); in tracefs_apply_options()
586 return d_inode(inode->i_sb->s_root); in instance_inode()

12345