Home
last modified time | relevance | path

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

12345

/linux-6.15/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-6.15/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-6.15/arch/s390/hypfs/
H A Dinode.c187 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
189 rc = hypfs_vm_create_files(sb->s_root); in hypfs_write_iter()
191 rc = hypfs_diag_create_files(sb->s_root); in hypfs_write_iter()
194 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
274 sb->s_root = root_dentry = d_make_root(root_inode); in hypfs_fill_super()
329 if (sb->s_root) in hypfs_kill_super()
330 hypfs_delete_tree(sb->s_root); in hypfs_kill_super()
/linux-6.15/fs/
H A Dsuper.c619 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()
1245 if (sb->s_root) in kill_litter_super()
1279 if (!sb->s_root) { in vfs_get_super()
1626 if (s->s_root) { in get_tree_bdev_flags()
1685 if (s->s_root) { in mount_bdev()
1702 return dget(s->s_root); in mount_bdev()
[all …]
/linux-6.15/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-6.15/fs/efivarfs/
H A Dsuper.c222 dentry = d_hash_and_lookup(sb->s_root, &qstr); in efivarfs_variable_is_present()
236 struct dentry *dentry, *root = sb->s_root; in efivarfs_create_dentry()
360 sb->s_root = root; in efivarfs_fill_super()
408 struct dentry *dentry = d_hash_and_lookup(ectx->sb->s_root, &qstr); in efivarfs_actor()
456 dentry = d_hash_and_lookup(sb->s_root, &qstr); in efivarfs_check_missing()
522 path.dentry = sfi->sb->s_root; in efivarfs_pm_notify()
/linux-6.15/fs/devpts/
H A Dinode.c126 (path->mnt->mnt_root != sb->s_root)) in devpts_ptmx_path()
265 struct dentry *root = sb->s_root; in mknod_ptmx()
398 s->s_root = d_make_root(inode); in devpts_fill_super()
399 if (!s->s_root) { in devpts_fill_super()
521 root = sb->s_root; in devpts_pty_new()
/linux-6.15/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-6.15/fs/kernfs/
H A Dmount.c216 dentry = dget(sb->s_root); in kernfs_node_dentry()
305 sb->s_root = root; in kernfs_fill_super()
370 if (!sb->s_root) { in kernfs_get_tree()
392 fc->root = dget(sb->s_root); in kernfs_get_tree()
/linux-6.15/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-6.15/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-6.15/drivers/android/
H A Dbinderfs.c186 root = sb->s_root; in binderfs_binder_device_create()
402 struct dentry *root = sb->s_root; in binderfs_binder_ctl_create()
600 dir = binderfs_create_dir(sb->s_root, "features"); in init_binder_features()
632 binder_logs_root_dir = binderfs_create_dir(sb->s_root, in init_binder_logs()
719 sb->s_root = d_make_root(inode); in binderfs_fill_super()
720 if (!sb->s_root) in binderfs_fill_super()
/linux-6.15/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-6.15/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-6.15/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()
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()
2064 dentry = sel_make_dir(sb->s_root, "initial_contexts", &fsi->last_ino); in sel_fill_super()
[all …]
/linux-6.15/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-6.15/fs/nilfs2/
H A Dsuper.c1069 sb->s_root = NULL; in nilfs_fill_super()
1098 err = nilfs_get_root_dentry(sb, fsroot, &sb->s_root); in nilfs_fill_super()
1180 root = NILFS_I(d_inode(sb->s_root))->i_root; in nilfs_reconfigure()
1225 if (!s->s_root) { in nilfs_get_tree()
1234 if (nilfs_tree_is_busy(s->s_root)) { in nilfs_get_tree()
1250 fc->root = dget(s->s_root); in nilfs_get_tree()
1271 fc->root = dget(s->s_root); in nilfs_get_tree()
/linux-6.15/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-6.15/fs/pstore/
H A Dinode.c302 root = pstore_sb->s_root; in psinfo_lock_root()
432 sb->s_root = d_make_root(inode); in pstore_fill_super()
433 if (!sb->s_root) in pstore_fill_super()
/linux-6.15/fs/afs/
H A Dsuper.c481 sb->s_root = d_make_root(inode); in afs_fill_super()
482 if (!sb->s_root) in afs_fill_super()
577 if (!sb->s_root) { in afs_get_tree()
589 fc->root = dget(sb->s_root); in afs_get_tree()
/linux-6.15/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()
593 return d_inode(inode->i_sb->s_root); in instance_inode()
/linux-6.15/fs/ecryptfs/
H A Dmain.c539 s->s_root = d_make_root(inode); in ecryptfs_get_tree()
540 if (!s->s_root) { in ecryptfs_get_tree()
551 ecryptfs_set_dentry_private(s->s_root, root_info); in ecryptfs_get_tree()
555 fc->root = dget(s->s_root); in ecryptfs_get_tree()
/linux-6.15/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()

12345