Home
last modified time | relevance | path

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

123

/linux-6.6.21/security/loadpin/
Dloadpin.c83 static void report_writable(struct super_block *mnt_sb, bool writable) in report_writable() argument
85 if (mnt_sb->s_bdev) { in report_writable()
86 pr_info("%pg (%u:%u): %s\n", mnt_sb->s_bdev, in report_writable()
87 MAJOR(mnt_sb->s_bdev->bd_dev), in report_writable()
88 MINOR(mnt_sb->s_bdev->bd_dev), in report_writable()
101 static bool sb_is_writable(struct super_block *mnt_sb) in sb_is_writable() argument
105 if (mnt_sb->s_bdev) in sb_is_writable()
106 writable = !bdev_read_only(mnt_sb->s_bdev); in sb_is_writable()
111 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()
[all …]
/linux-6.6.21/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()
451 const struct export_operations *nop = mnt->mnt_sb->s_export_op; in exportfs_decode_fh_raw()
461 result = nop->fh_to_dentry(mnt->mnt_sb, fid, fh_len, fileid_type); in exportfs_decode_fh_raw()
522 target_dir = nop->fh_to_parent(mnt->mnt_sb, fid, in exportfs_decode_fh_raw()
/linux-6.6.21/fs/
Dnsfs.c81 inode = new_inode_pseudo(mnt->mnt_sb); in __ns_get_path()
93 dentry = d_alloc_anon(mnt->mnt_sb); in __ns_get_path()
248 return (ns->inum == ino) && (nsfs_mnt->mnt_sb->s_dev == dev); in ns_match()
288 nsfs_mnt->mnt_sb->s_flags &= ~SB_NOUSER; in nsfs_init()
Dnamespace.c272 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); in __mnt_is_readonly()
312 if (READ_ONCE(mnt->mnt_sb->s_readonly_remount)) in mnt_is_readonly()
403 sb_start_write(m->mnt_sb); in mnt_want_write()
406 sb_end_write(m->mnt_sb); in mnt_want_write()
481 sb_end_write(mnt->mnt_sb); in mnt_drop_write()
1098 mnt->mnt.mnt_sb = fc->root->d_sb; in vfs_create_mount()
1104 list_add_tail(&mnt->mnt_instance, &mnt->mnt.mnt_sb->s_mounts); in vfs_create_mount()
1169 struct super_block *sb = old->mnt.mnt_sb; in clone_mnt()
1194 mnt->mnt.mnt_sb = sb; in clone_mnt()
1254 deactivate_super(mnt->mnt.mnt_sb); in cleanup_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.c329 path.dentry = d_alloc_pseudo(mnt->mnt_sb, &this); in alloc_file_pseudo()
332 if (!mnt->mnt_sb->s_d_op) in alloc_file_pseudo()
Dproc_namespace.c139 struct super_block *sb = mnt->mnt_sb; in show_mountinfo()
Dstatfs.c52 flags_by_sb(mnt->mnt_sb->s_flags); in calculate_f_flags()
/linux-6.6.21/fs/devpts/
Dinode.c124 sb = path->mnt->mnt_sb; in devpts_ptmx_path()
166 if ((path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) || in devpts_mntget()
167 (DEVPTS_SB(path.mnt->mnt_sb) != fsi)) in devpts_mntget()
171 if (DEVPTS_SB(path.mnt->mnt_sb) == fsi) in devpts_mntget()
191 if (path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) { in devpts_acquire()
204 sb = path.mnt->mnt_sb; in devpts_acquire()
/linux-6.6.21/fs/btrfs/tests/
Dbtrfs-tests.c58 inode = new_inode(test_mnt->mnt_sb); in btrfs_new_test_inode()
148 test_mnt->mnt_sb->s_fs_info = fs_info; in btrfs_alloc_dummy_fs_info()
166 test_mnt->mnt_sb->s_fs_info = NULL; in btrfs_free_dummy_fs_info()
/linux-6.6.21/fs/cachefiles/
Dcache.c353 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
354 ret = sync_filesystem(cache->mnt->mnt_sb); in cachefiles_sync_cache()
355 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
/linux-6.6.21/fs/notify/
Dfsnotify.h37 return fsnotify_conn_mount(conn)->mnt.mnt_sb; in fsnotify_connector_sb()
/linux-6.6.21/include/linux/
Dmount.h72 struct super_block *mnt_sb; /* pointer to superblock */ member
/linux-6.6.21/fs/overlayfs/
Dsuper.c229 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_sync_fs()
395 *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); in ovl_lower_dir()
584 if (upper_mnt->mnt_sb->s_flags & SB_NOSEC) in ovl_get_upper()
983 struct super_block *sb = path->mnt->mnt_sb; in ovl_get_fsid()
1067 ofs->fs[0].sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_get_layers()
1409 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_fill_super()
/linux-6.6.21/fs/nfs/
Dnfs4file.c328 server = NFS_SB(ss_mnt->mnt_sb); in __nfs42_ssc_open()
351 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-6.6.21/fs/smb/client/
Dnamespace.c205 fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, mntpt); in cifs_do_automount()
/linux-6.6.21/mm/
Dsecretmem.c201 inode = alloc_anon_inode(secretmem_mnt->mnt_sb); in secretmem_file_create()
/linux-6.6.21/fs/notify/fanotify/
Dfanotify_user.c1631 path->mnt->mnt_sb->s_type->fs_flags & FS_DISALLOW_NOTIFY_PERM) in fanotify_events_supported()
1645 path->mnt->mnt_sb->s_flags & SB_NOUSER) in fanotify_events_supported()
1864 ret = fanotify_add_sb_mark(group, mnt->mnt_sb, mask, in do_fanotify_mark()
1875 ret = fanotify_remove_sb_mark(group, mnt->mnt_sb, mask, in do_fanotify_mark()
/linux-6.6.21/fs/btrfs/
Dsuper.c1380 ret = get_default_subvol_objectid(btrfs_sb(mnt->mnt_sb), in mount_subvol()
1388 btrfs_sb(mnt->mnt_sb), subvol_objectid); in mount_subvol()
1602 down_write(&mnt_root->mnt_sb->s_umount); in btrfs_mount()
1603 error = btrfs_remount(mnt_root->mnt_sb, &flags, NULL); in btrfs_mount()
1604 up_write(&mnt_root->mnt_sb->s_umount); in btrfs_mount()
/linux-6.6.21/fs/nfsd/
Dblocklayout.c333 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-6.6.21/drivers/base/
Ddevtmpfs.c69 struct super_block *s = mnt->mnt_sb; in public_dev_mount()
/linux-6.6.21/drivers/misc/cxl/
Dapi.c77 inode = alloc_anon_inode(cxl_vfs_mount->mnt_sb); in cxl_getfile()

123