Home
last modified time | relevance | path

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

1234

/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.c66 struct inode *root_inode = d_inode(root->d_sb->s_root); in autofs_show_options()
333 s->s_root = d_make_root(root_inode); in autofs_fill_super()
334 if (unlikely(!s->s_root)) { in autofs_fill_super()
338 s->s_root->d_fsdata = ino; in autofs_fill_super()
353 managed_dentry_set_managed(s->s_root); in autofs_fill_super()
437 if (sb->s_root) { in autofs_get_inode()
438 inode->i_uid = d_inode(sb->s_root)->i_uid; in autofs_get_inode()
439 inode->i_gid = d_inode(sb->s_root)->i_gid; in autofs_get_inode()
/linux/fs/
H A Dsuper.c563 if (!(sb->s_flags & SB_DYING) && sb->s_root && in super_trylock_shared()
619 if (sb->s_root) { in generic_shutdown_super()
933 if (sb->s_root) in iterate_supers()
971 if (sb->s_root) in iterate_supers_type()
1002 if (sb->s_root) in user_get_super()
1054 if (!sb->s_root) in reconfigure_super()
1118 if (locked && sb->s_root && sb->s_bdev && !sb_rdonly(sb)) { in do_emergency_remount_callback()
1121 fc = fs_context_for_reconfigure(sb->s_root, in do_emergency_remount_callback()
1155 if (locked && sb->s_root) { in do_thaw_all_callback()
1245 if (sb->s_root) in kill_litter_super()
[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()
H A Droot.c200 s->s_root = d_make_root(root_inode); in proc_fill_super()
201 if (!s->s_root) { in proc_fill_super()
/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()
202 if (inode == d_inode(inode->i_sb->s_root)) in ovl_check_encode_origin()
499 return dget(sb->s_root); in ovl_lookup_real_ancestor()
515 ancestor = dget(sb->s_root); in ovl_lookup_real_ancestor()
582 connected = dget(sb->s_root); in ovl_lookup_real()
/linux/fs/9p/
H A Dfid.c202 root_fid = v9fs_fid_find(dentry->d_sb->s_root, uid, any); in v9fs_fid_lookup_with_uid()
219 v9fs_fid_add(dentry->d_sb->s_root, &fid); in v9fs_fid_lookup_with_uid()
222 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/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/drivers/android/
H A Dbinderfs.c186 root = sb->s_root; in binderfs_binder_device_create()
399 struct dentry *root = sb->s_root; in binderfs_binder_ctl_create()
597 dir = binderfs_create_dir(sb->s_root, "features"); in init_binder_features()
629 binder_logs_root_dir = binderfs_create_dir(sb->s_root, in init_binder_logs()
716 sb->s_root = d_make_root(inode); in binderfs_fill_super()
717 if (!sb->s_root) in binderfs_fill_super()
/linux/fs/qnx6/
H A Dinode.c184 struct inode *root = d_inode(s->s_root); in qnx6_checkroot()
445 s->s_root = d_make_root(root); in qnx6_fill_super()
446 if (!s->s_root) in qnx6_fill_super()
459 dput(s->s_root); in qnx6_fill_super()
460 s->s_root = NULL; in qnx6_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/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()
1951 struct dentry *dentry = d_alloc_name(sb->s_root, ".swapover"); in sel_make_swapover_dir()
1967 inode_lock(sb->s_root->d_inode); in sel_make_swapover_dir()
1969 inc_nlink(sb->s_root->d_inode); in sel_make_swapover_dir()
1970 inode_unlock(sb->s_root->d_inode); in sel_make_swapover_dir()
2016 fsi->bool_dir = sel_make_dir(sb->s_root, BOOL_DIR_NAME, &fsi->last_ino); in sel_fill_super()
2024 dentry = d_alloc_name(sb->s_root, NULL_FILE_NAME); in sel_fill_super()
2044 dentry = sel_make_dir(sb->s_root, "avc", &fsi->last_ino); in sel_fill_super()
2054 dentry = sel_make_dir(sb->s_root, "ss", &fsi->last_ino); in sel_fill_super()
[all …]
/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/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/nilfs2/
H A Dsuper.c1061 sb->s_root = NULL; in nilfs_fill_super()
1090 err = nilfs_get_root_dentry(sb, fsroot, &sb->s_root); in nilfs_fill_super()
1172 root = NILFS_I(d_inode(sb->s_root))->i_root; in nilfs_reconfigure()
1217 if (!s->s_root) { in nilfs_get_tree()
1226 if (nilfs_tree_is_busy(s->s_root)) { in nilfs_get_tree()
1242 fc->root = dget(s->s_root); in nilfs_get_tree()
1263 fc->root = dget(s->s_root); in nilfs_get_tree()
/linux/fs/tracefs/
H A Dinode.c191 if (root_inode != d_inode(root_inode->i_sb->s_root)) { in set_tracefs_inode_owner()
195 root_inode = d_inode(root_inode->i_sb->s_root); in set_tracefs_inode_owner()
336 struct inode *inode = d_inode(sb->s_root); in tracefs_apply_options()
592 return d_inode(inode->i_sb->s_root); in instance_inode()
/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/ramfs/
H A Dinode.c275 sb->s_root = d_make_root(inode); in ramfs_fill_super()
276 if (!sb->s_root) in ramfs_fill_super()
/linux/drivers/misc/ibmasm/
H A Dibmasmfs.c127 sb->s_root = d_make_root(root); in ibmasmfs_fill_super()
128 if (!sb->s_root) in ibmasmfs_fill_super()
587 dir = ibmasmfs_create_dir(sb->s_root, sp->dirname); in ibmasmfs_create_files()

1234