| /linux-6.15/security/loadpin/ |
| H A D | loadpin.c | 83 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.15/fs/exportfs/ |
| H A D | expfs.c | 129 if (mnt->mnt_sb->s_export_op->get_parent) in reconnect_one() 130 parent = mnt->mnt_sb->s_export_op->get_parent(dentry); in reconnect_one() 217 BUG_ON(dentry == mnt->mnt_sb->s_root); in reconnect_path() 442 const struct export_operations *nop = mnt->mnt_sb->s_export_op; in exportfs_decode_fh_raw() 455 result = nop->fh_to_dentry(mnt->mnt_sb, fid, fh_len, fileid_type); in exportfs_decode_fh_raw() 521 target_dir = nop->fh_to_parent(mnt->mnt_sb, fid, in exportfs_decode_fh_raw()
|
| /linux-6.15/fs/devpts/ |
| H A D | inode.c | 124 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.15/fs/ |
| H A D | namespace.c | 556 sb_start_write(m->mnt_sb); in mnt_want_write() 559 sb_end_write(m->mnt_sb); in mnt_want_write() 635 sb_end_write(mnt->mnt_sb); in mnt_drop_write() 1275 mnt->mnt.mnt_sb = fc->root->d_sb; in vfs_create_mount() 1371 mnt->mnt.mnt_sb = sb; in clone_mnt() 1431 deactivate_super(mnt->mnt.mnt_sb); in cleanup_mnt() 3423 if (from->mnt.mnt_sb != to->mnt.mnt_sb) in do_set_group() 3777 if (path->mnt->mnt_sb == newmnt->mnt.mnt_sb && path_mounted(path)) in do_add_mount() 3907 if (m->mnt_sb == path->mnt->mnt_sb && in finish_automount() 4399 s = path.mnt->mnt_sb; in mount_subtree() [all …]
|
| H A D | anon_inodes.c | 65 inode = alloc_anon_inode(anon_inode_mnt->mnt_sb); in anon_inode_make_secure_inode() 313 anon_inode_inode = alloc_anon_inode(anon_inode_mnt->mnt_sb); in anon_inode_init()
|
| H A D | fhandle.c | 303 if (ns_capable(root->mnt->mnt_sb->s_user_ns, CAP_SYS_ADMIN)) in may_decode_fh() 334 eops = ctx.root.mnt->mnt_sb->s_export_op; in handle_to_path() 411 eops = path.mnt->mnt_sb->s_export_op; in do_handle_open()
|
| H A D | fs_pin.c | 25 hlist_add_head(&pin->s_list, &m->mnt_sb->s_pins); in pin_insert()
|
| H A D | nsfs.c | 376 return (ns->inum == ino) && (nsfs_mnt->mnt_sb->s_dev == dev); in ns_match() 440 nsfs_mnt->mnt_sb->s_flags &= ~SB_NOUSER; in nsfs_init()
|
| /linux-6.15/fs/btrfs/tests/ |
| H A D | btrfs-tests.c | 61 inode = new_inode(test_mnt->mnt_sb); in btrfs_new_test_inode() 153 test_mnt->mnt_sb->s_fs_info = fs_info; in btrfs_alloc_dummy_fs_info() 170 test_mnt->mnt_sb->s_fs_info = NULL; in btrfs_free_dummy_fs_info()
|
| /linux-6.15/fs/cachefiles/ |
| H A D | cache.c | 395 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache() 396 ret = sync_filesystem(cache->mnt->mnt_sb); in cachefiles_sync_cache() 397 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
|
| /linux-6.15/fs/notify/ |
| H A D | fsnotify.h | 49 return ((struct vfsmount *)obj)->mnt_sb; in fsnotify_object_sb()
|
| /linux-6.15/fs/overlayfs/ |
| H A D | super.c | 241 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_sync_fs() 408 *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); in ovl_lower_dir() 537 if (upper_mnt->mnt_sb->s_flags & SB_NOSEC) in ovl_get_upper() 941 struct super_block *sb = path->mnt->mnt_sb; in ovl_get_fsid() 1025 ofs->fs[0].sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_get_layers() 1396 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_fill_super()
|
| H A D | util.c | 31 sb_start_write(ovl_upper_mnt(ofs)->mnt_sb); in ovl_start_write() 49 sb_end_write(ovl_upper_mnt(ofs)->mnt_sb); in ovl_end_write() 1506 return errseq_check(&mnt->mnt_sb->s_wb_err, ofs->errseq); in ovl_sync_status()
|
| /linux-6.15/include/linux/ |
| H A D | mount.h | 70 struct super_block *mnt_sb; /* pointer to superblock */ member
|
| /linux-6.15/drivers/base/ |
| H A D | devtmpfs.c | 79 struct super_block *sb = mnt->mnt_sb; in devtmpfs_get_tree() 457 fc = fs_context_for_reconfigure(mnt->mnt_root, mnt->mnt_sb->s_flags, in devtmpfs_configure_context()
|
| /linux-6.15/fs/nfs/ |
| H A D | nfs4file.c | 329 server = NFS_SB(ss_mnt->mnt_sb); in __nfs42_ssc_open() 352 r_ino = nfs_fhget(ss_mnt->mnt_sb, src_fh, fattr); in __nfs42_ssc_open()
|
| H A D | namespace.c | 161 fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry); in nfs_d_automount()
|
| /linux-6.15/security/ipe/ |
| H A D | hooks.c | 194 ipe_sb(current->fs->root.mnt->mnt_sb)->initramfs = true; in ipe_unpack_initramfs()
|
| H A D | eval.c | 26 #define FILE_SUPERBLOCK(f) ((f)->f_path.mnt->mnt_sb)
|
| /linux-6.15/mm/ |
| H A D | secretmem.c | 200 inode = alloc_anon_inode(secretmem_mnt->mnt_sb); in secretmem_file_create()
|
| /linux-6.15/fs/smb/client/ |
| H A D | namespace.c | 222 fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, mntpt); in cifs_do_automount()
|
| /linux-6.15/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 1763 if (!(path->mnt->mnt_sb->s_iflags & SB_I_ALLOW_HSM)) in fanotify_events_supported() 1778 path->mnt->mnt_sb->s_type->fs_flags & FS_DISALLOW_NOTIFY_PERM) in fanotify_events_supported() 1792 path->mnt->mnt_sb->s_flags & SB_NOUSER) in fanotify_events_supported() 1998 obj = path.mnt->mnt_sb; in do_fanotify_mark()
|
| /linux-6.15/fs/nfsd/ |
| H A D | blocklayout.c | 332 struct block_device *bdev = file->nf_file->f_path.mnt->mnt_sb->s_bdev; in nfsd4_scsi_fence_client()
|
| H A D | nfs4layouts.c | 130 struct super_block *sb = exp->ex_path.mnt->mnt_sb; in nfsd4_setup_layout_type() 645 argv[2] = file->nf_file->f_path.mnt->mnt_sb->s_id; in nfsd4_cb_layout_fail()
|
| /linux-6.15/fs/btrfs/ |
| H A D | super.c | 1170 ret = get_default_subvol_objectid(btrfs_sb(mnt->mnt_sb), in mount_subvol() 1178 btrfs_sb(mnt->mnt_sb), subvol_objectid); in mount_subvol() 1998 down_write(&mnt->mnt_sb->s_umount); in btrfs_reconfigure_for_mount() 1999 if (!(fc->sb_flags & SB_RDONLY) && (mnt->mnt_sb->s_flags & SB_RDONLY)) in btrfs_reconfigure_for_mount() 2001 up_write(&mnt->mnt_sb->s_umount); in btrfs_reconfigure_for_mount()
|