Home
last modified time | relevance | path

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

123

/Linux-v6.1/security/loadpin/
Dloadpin.c79 static void check_pinning_enforcement(struct super_block *mnt_sb) in check_pinning_enforcement() argument
87 if (mnt_sb->s_bdev) { in check_pinning_enforcement()
88 ro = bdev_read_only(mnt_sb->s_bdev); in check_pinning_enforcement()
89 pr_info("%pg (%u:%u): %s\n", mnt_sb->s_bdev, in check_pinning_enforcement()
90 MAJOR(mnt_sb->s_bdev->bd_dev), in check_pinning_enforcement()
91 MINOR(mnt_sb->s_bdev->bd_dev), in check_pinning_enforcement()
106 static void check_pinning_enforcement(struct super_block *mnt_sb) in check_pinning_enforcement() argument
112 static void loadpin_sb_free_security(struct super_block *mnt_sb) in loadpin_sb_free_security() argument
119 if (!IS_ERR_OR_NULL(pinned_root) && mnt_sb == pinned_root) { in loadpin_sb_free_security()
158 load_root = file->f_path.mnt->mnt_sb; in loadpin_read_file()
/Linux-v6.1/fs/exportfs/
Dexpfs.c130 if (mnt->mnt_sb->s_export_op->get_parent) in reconnect_one()
131 parent = mnt->mnt_sb->s_export_op->get_parent(dentry); in reconnect_one()
219 BUG_ON(dentry == mnt->mnt_sb->s_root); in reconnect_path()
425 const struct export_operations *nop = mnt->mnt_sb->s_export_op; in exportfs_decode_fh_raw()
435 result = nop->fh_to_dentry(mnt->mnt_sb, fid, fh_len, fileid_type); in exportfs_decode_fh_raw()
496 target_dir = nop->fh_to_parent(mnt->mnt_sb, fid, in exportfs_decode_fh_raw()
/Linux-v6.1/fs/
Dnsfs.c80 inode = new_inode_pseudo(mnt->mnt_sb); in __ns_get_path()
92 dentry = d_alloc_anon(mnt->mnt_sb); in __ns_get_path()
265 return (ns->inum == ino) && (nsfs_mnt->mnt_sb->s_dev == dev); in ns_match()
305 nsfs_mnt->mnt_sb->s_flags &= ~SB_NOUSER; in nsfs_init()
Dnamespace.c271 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); in __mnt_is_readonly()
311 if (mnt->mnt_sb->s_readonly_remount) in mnt_is_readonly()
393 sb_start_write(m->mnt_sb); in mnt_want_write()
396 sb_end_write(m->mnt_sb); in mnt_want_write()
471 sb_end_write(mnt->mnt_sb); in mnt_drop_write()
1025 mnt->mnt.mnt_sb = fc->root->d_sb; in vfs_create_mount()
1030 fs_userns = mnt->mnt.mnt_sb->s_user_ns; in vfs_create_mount()
1035 list_add_tail(&mnt->mnt_instance, &mnt->mnt.mnt_sb->s_mounts); in vfs_create_mount()
1100 struct super_block *sb = old->mnt.mnt_sb; in clone_mnt()
1126 mnt->mnt.mnt_sb = sb; in clone_mnt()
[all …]
Danon_inodes.c66 inode = alloc_anon_inode(anon_inode_mnt->mnt_sb); in anon_inode_make_secure_inode()
263 anon_inode_inode = alloc_anon_inode(anon_inode_mnt->mnt_sb); in anon_inode_init()
Dfs_pin.c25 hlist_add_head(&pin->s_list, &m->mnt_sb->s_pins); in pin_insert()
Dfile_table.c265 path.dentry = d_alloc_pseudo(mnt->mnt_sb, &this); in alloc_file_pseudo()
268 if (!mnt->mnt_sb->s_d_op) in alloc_file_pseudo()
Dproc_namespace.c139 struct super_block *sb = mnt->mnt_sb; in show_mountinfo()
/Linux-v6.1/fs/devpts/
Dinode.c142 sb = path->mnt->mnt_sb; in devpts_ptmx_path()
184 if ((path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) || in devpts_mntget()
185 (DEVPTS_SB(path.mnt->mnt_sb) != fsi)) in devpts_mntget()
189 if (DEVPTS_SB(path.mnt->mnt_sb) == fsi) in devpts_mntget()
209 if (path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) { in devpts_acquire()
222 sb = path.mnt->mnt_sb; in devpts_acquire()
/Linux-v6.1/fs/btrfs/tests/
Dbtrfs-tests.c57 inode = new_inode(test_mnt->mnt_sb); in btrfs_new_test_inode()
147 test_mnt->mnt_sb->s_fs_info = fs_info; in btrfs_alloc_dummy_fs_info()
165 test_mnt->mnt_sb->s_fs_info = NULL; in btrfs_free_dummy_fs_info()
/Linux-v6.1/fs/cachefiles/
Dcache.c351 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
352 ret = sync_filesystem(cache->mnt->mnt_sb); in cachefiles_sync_cache()
353 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
/Linux-v6.1/fs/notify/
Dfsnotify.h37 return fsnotify_conn_mount(conn)->mnt.mnt_sb; in fsnotify_connector_sb()
/Linux-v6.1/include/linux/
Dmount.h71 struct super_block *mnt_sb; /* pointer to superblock */ member
/Linux-v6.1/fs/overlayfs/
Dsuper.c294 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_sync_fs()
402 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_remount()
940 *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); in ovl_lower_dir()
1252 if (upper_mnt->mnt_sb->s_flags & SB_NOSEC) in ovl_get_upper()
1648 struct super_block *sb = path->mnt->mnt_sb; in ovl_get_fsid()
1720 ofs->fs[0].sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_get_layers()
2080 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_fill_super()
/Linux-v6.1/fs/nfs/
Dnfs4file.c332 server = NFS_SB(ss_mnt->mnt_sb); in __nfs42_ssc_open()
355 r_ino = nfs_fhget(ss_mnt->mnt_sb, src_fh, fattr); in __nfs42_ssc_open()
Dnamespace.c161 fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry); in nfs_d_automount()
/Linux-v6.1/mm/
Dsecretmem.c199 inode = alloc_anon_inode(secretmem_mnt->mnt_sb); in secretmem_file_create()
/Linux-v6.1/fs/erofs/
Dfscache.c574 inode = new_inode(erofs_pseudo_mnt->mnt_sb); in erofs_fscache_domain_init_cookie()
597 struct super_block *psb = erofs_pseudo_mnt->mnt_sb; in erofs_domain_register_cookie()
/Linux-v6.1/fs/nfsd/
Dblocklayout.c331 struct block_device *bdev = ls->ls_file->nf_file->f_path.mnt->mnt_sb->s_bdev; in nfsd4_scsi_fence_client()
Dnfs4layouts.c130 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type()
630 argv[2] = ls->ls_file->nf_file->f_path.mnt->mnt_sb->s_id; in nfsd4_cb_layout_fail()
/Linux-v6.1/fs/btrfs/
Dsuper.c1676 ret = get_default_subvol_objectid(btrfs_sb(mnt->mnt_sb), in mount_subvol()
1684 btrfs_sb(mnt->mnt_sb), subvol_objectid); in mount_subvol()
1903 down_write(&mnt_root->mnt_sb->s_umount); in btrfs_mount()
1904 error = btrfs_remount(mnt_root->mnt_sb, &flags, NULL); in btrfs_mount()
1905 up_write(&mnt_root->mnt_sb->s_umount); in btrfs_mount()
/Linux-v6.1/fs/notify/fanotify/
Dfanotify_user.c1574 path->mnt->mnt_sb->s_type->fs_flags & FS_DISALLOW_NOTIFY_PERM) in fanotify_events_supported()
1793 ret = fanotify_add_sb_mark(group, mnt->mnt_sb, mask, in do_fanotify_mark()
1804 ret = fanotify_remove_sb_mark(group, mnt->mnt_sb, mask, in do_fanotify_mark()
/Linux-v6.1/drivers/base/
Ddevtmpfs.c67 struct super_block *s = mnt->mnt_sb; in public_dev_mount()
/Linux-v6.1/drivers/dax/
Dsuper.c542 dax_superblock = dax_mnt->mnt_sb; in dax_fs_init()
/Linux-v6.1/drivers/misc/cxl/
Dapi.c77 inode = alloc_anon_inode(cxl_vfs_mount->mnt_sb); in cxl_getfile()

123