Home
last modified time | relevance | path

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

12

/linux/security/loadpin/
H A Dloadpin.c81 static void report_writable(struct super_block *mnt_sb, bool writable) in report_writable() argument
83 if (mnt_sb->s_bdev) { in report_writable()
84 pr_info("%pg (%u:%u): %s\n", mnt_sb->s_bdev, in report_writable()
85 MAJOR(mnt_sb->s_bdev->bd_dev), in report_writable()
86 MINOR(mnt_sb->s_bdev->bd_dev), in report_writable()
99 static bool sb_is_writable(struct super_block *mnt_sb) in sb_is_writable() argument
103 if (mnt_sb->s_bdev) in sb_is_writable()
104 writable = !bdev_read_only(mnt_sb->s_bdev); in sb_is_writable()
109 static void loadpin_sb_free_security(struct super_block *mnt_sb) in loadpin_sb_free_security() argument
117 if (!IS_ERR_OR_NULL(pinned_root) && mnt_sb == pinned_root) { in loadpin_sb_free_security()
[all …]
/linux/fs/devpts/
H A 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/fs/cachefiles/
H A Dcache.c395 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/fs/
H A Dfhandle.c333 if (ns_capable(root->mnt->mnt_sb->s_user_ns, CAP_SYS_ADMIN)) in may_decode_fh()
374 eops = ctx.root.mnt->mnt_sb->s_export_op; in handle_to_path()
420 eops = path->mnt->mnt_sb->s_export_op; in file_open_handle()
H A Dnamespace.c362 return (mnt->mnt_flags & MNT_READONLY) || sb_rdonly(mnt->mnt_sb); in __mnt_is_readonly()
402 if (READ_ONCE(mnt->mnt_sb->s_readonly_remount)) in mnt_is_readonly()
494 sb_start_write(m->mnt_sb); in mnt_want_write()
497 sb_end_write(m->mnt_sb); in mnt_want_write()
573 sb_end_write(mnt->mnt_sb); in mnt_drop_write()
1102 if ((mnt->mnt.mnt_sb->s_type->fs_flags & FS_USERNS_MOUNT_RESTRICTED) && in mnt_add_to_ns()
1103 mnt->mnt.mnt_root == mnt->mnt.mnt_sb->s_root)
1158 m->mnt.mnt_sb = s; in setup_mnt()
1317 deactivate_super(mnt->mnt.mnt_sb); in __cleanup_mnt()
1872 struct super_block *sb = mnt->mnt.mnt_sb; in do_umount()
[all...]
H A Dfs_pin.c25 hlist_add_head(&pin->s_list, &m->mnt_sb->s_pins); in pin_insert()
H A Dnsfs.c400 return (ns->inum == ino) && (nsfs_mnt->mnt_sb->s_dev == dev); in ns_match()
686 nsfs_mnt->mnt_sb->s_flags &= ~SB_NOUSER; in nsfs_init()
/linux/fs/erofs/
H A Dishare.c54 si = iget5_locked(erofs_ishare_mnt->mnt_sb, in erofs_ishare_fill_inode()
211 ret = super_setup_bdi(mnt->mnt_sb); in erofs_init_ishare()
H A Dfscache.c
/linux/fs/overlayfs/
H A Dsuper.c259 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_sync_fs()
421 *stack_depth = max(*stack_depth, path->mnt->mnt_sb->s_stack_depth); in ovl_lower_dir()
545 if (upper_mnt->mnt_sb->s_flags & SB_NOSEC) in ovl_get_upper()
950 struct super_block *sb = path->mnt->mnt_sb; in ovl_get_fsid()
1053 ofs->fs[0].sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_get_layers()
1128 if (!sb_same_encoding(sb, mnt->mnt_sb)) { in ovl_get_layers()
1439 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_fill_super_creds()
H A Dutil.c32 sb_start_write(ovl_upper_mnt(ofs)->mnt_sb); in ovl_start_write()
50 sb_end_write(ovl_upper_mnt(ofs)->mnt_sb); in ovl_end_write()
1481 return errseq_check(&mnt->mnt_sb->s_wb_err, ofs->errseq); in ovl_sync_status()
H A Dparams.c771 upper_sb = ovl_upper_mnt(ofs)->mnt_sb; in ovl_reconfigure()
H A Doverlayfs.h287 WARN_ON(path->dentry->d_sb != path->mnt->mnt_sb); in ovl_do_getxattr()
/linux/include/linux/
H A Dmount.h60 struct super_block *mnt_sb; /* pointer to superblock */ member
/linux/fs/nfs/
H A Dnfs4file.c317 server = NFS_SB(ss_mnt->mnt_sb); in __nfs42_ssc_open()
340 r_ino = nfs_fhget(ss_mnt->mnt_sb, src_fh, fattr); in __nfs42_ssc_open()
H A Dnamespace.c162 fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, path->dentry); in nfs_d_automount()
/linux/security/ipe/
H A Dhooks.c222 ipe_sb(current->fs->root.mnt->mnt_sb)->initramfs = true; in ipe_unpack_initramfs()
H A Deval.c26 #define FILE_SUPERBLOCK(f) ((f)->f_path.mnt->mnt_sb)
/linux/fs/smb/client/
H A Dnamespace.c225 fc = fs_context_for_submount(path->mnt->mnt_sb->s_type, mntpt); in cifs_do_automount()
/linux/drivers/gpu/drm/
H A Ddrm_drv.c647 inode = alloc_anon_inode(drm_fs_mnt->mnt_sb); in drm_fs_inode_new()
/linux/virt/kvm/
H A Dguest_memfd.c584 inode = anon_inode_make_secure_inode(kvm_gmem_mnt->mnt_sb, name, NULL); in __kvm_gmem_create()
/linux/security/
H A Dcommoncap.c782 if (!current_in_userns(file->f_path.mnt->mnt_sb->s_user_ns)) in get_file_caps()
/linux/drivers/dma-buf/
H A Ddma-buf.c630 struct inode *inode = alloc_anon_inode(dma_buf_mnt->mnt_sb); in dma_buf_getfile()
/linux/fs/hugetlbfs/
H A Dinode.c1528 inode = hugetlbfs_get_inode(mnt->mnt_sb, &nop_mnt_idmap, NULL, in hugetlb_file_setup()
/linux/ipc/
H A Dmqueue.c1640 ns->mq_mnt->mnt_sb->s_fs_info = NULL; in mq_clear_sbinfo()

12