Home
last modified time | relevance | path

Searched refs:s_umount (Results 1 – 25 of 38) sorted by relevance

12

/openbmc/linux/fs/jfs/
H A Djfs_discard.c86 down_read(&sb->s_umount); in jfs_ioc_trim()
92 up_read(&sb->s_umount); in jfs_ioc_trim()
109 up_read(&sb->s_umount); in jfs_ioc_trim()
/openbmc/linux/fs/
H A Dsuper.c56 down_write(&sb->s_umount); in __super_lock()
58 down_read(&sb->s_umount); in __super_lock()
64 up_write(&sb->s_umount); in super_unlock()
66 up_read(&sb->s_umount); in super_unlock()
114 lockdep_assert_not_held(&sb->s_umount); in super_lock()
335 init_rwsem(&s->s_umount); in alloc_super()
336 lockdep_set_class(&s->s_umount, &type->s_umount_key); in alloc_super()
352 down_write_nested(&s->s_umount, SINGLE_DEPTH_NESTING); in alloc_super()
439 lockdep_assert_not_held(&sb->s_umount); in kill_super_notify()
579 lockdep_assert_held(&sb->s_umount); in grab_super_dead()
[all …]
H A Dsync.c38 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in sync_filesystem()
159 down_read(&sb->s_umount); in SYSCALL_DEFINE1()
161 up_read(&sb->s_umount); in SYSCALL_DEFINE1()
H A Dfsopen.c245 up_write(&sb->s_umount); in vfs_cmd_create()
266 down_write(&sb->s_umount); in vfs_cmd_reconfigure()
268 up_write(&sb->s_umount); in vfs_cmd_reconfigure()
H A Dfs-writeback.c1988 up_read(&sb->s_umount); in __writeback_inodes_wb()
2579 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in wait_sb_inodes()
2672 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in __writeback_inodes_sb_nr()
2720 if (!down_read_trylock(&sb->s_umount)) in try_to_writeback_inodes_sb()
2724 up_read(&sb->s_umount); in try_to_writeback_inodes_sb()
2756 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in sync_inodes_sb()
H A Dnamespace.c1114 up_write(&fc->root->d_sb->s_umount); in fc_mount()
1688 down_write(&sb->s_umount); in do_umount_root()
1703 up_write(&sb->s_umount); in do_umount_root()
2845 down_read(&sb->s_umount); in do_reconfigure_mnt()
2851 up_read(&sb->s_umount); in do_reconfigure_mnt()
2892 down_write(&sb->s_umount); in do_remount()
2902 up_write(&sb->s_umount); in do_remount()
3283 up_write(&sb->s_umount); in do_new_mount_fc()
3874 down_write(&s->s_umount); in mount_subtree()
/openbmc/linux/fs/quota/
H A Dquota.c895 up_write(&sb->s_umount); in quotactl_block()
897 up_read(&sb->s_umount); in quotactl_block()
998 down_write(&sb->s_umount); in SYSCALL_DEFINE4()
1000 down_read(&sb->s_umount); in SYSCALL_DEFINE4()
1005 up_write(&sb->s_umount); in SYSCALL_DEFINE4()
1007 up_read(&sb->s_umount); in SYSCALL_DEFINE4()
H A Ddquot.c635 WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)); in dquot_scan_active()
691 WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)); in dquot_writeback_dquots()
2257 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_disable()
2258 up_read(&sb->s_umount); in dquot_disable()
2422 lockdep_assert_held_write(&sb->s_umount); in dquot_load_quota_sb()
2520 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_resume()
2521 up_read(&sb->s_umount); in dquot_resume()
/openbmc/linux/fs/cachefiles/
H A Dcache.c395 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
397 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
/openbmc/linux/fs/ubifs/
H A Dbudget.c53 down_read(&c->vfs_sb->s_umount); in shrink_liability()
55 up_read(&c->vfs_sb->s_umount); in shrink_liability()
/openbmc/u-boot/fs/ubifs/
H A Dbudget.c58 down_read(&c->vfs_sb->s_umount); in shrink_liability()
60 up_read(&c->vfs_sb->s_umount); in shrink_liability()
/openbmc/linux/fs/gfs2/
H A Dglops.c584 if (down_read_trylock(&sb->s_umount)) { in freeze_go_callback()
586 up_read(&sb->s_umount); in freeze_go_callback()
/openbmc/linux/fs/overlayfs/
H A Dparams.c657 down_read(&upper_sb->s_umount); in ovl_reconfigure()
659 up_read(&upper_sb->s_umount); in ovl_reconfigure()
H A Dsuper.c231 down_read(&upper_sb->s_umount); in ovl_sync_fs()
233 up_read(&upper_sb->s_umount); in ovl_sync_fs()
/openbmc/linux/fs/nfs/
H A Dnamespace.c193 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount()
/openbmc/linux/fs/ext4/
H A Dblock_validity.c288 lockdep_is_held(&sb->s_umount)); in ext4_release_system_zone()
/openbmc/linux/fs/xfs/
H A Dxfs_super.c443 up_write(&sb->s_umount); in xfs_open_devices()
491 down_write(&sb->s_umount); in xfs_open_devices()
616 if (down_read_trylock(&sb->s_umount)) { in xfs_flush_inodes_worker()
618 up_read(&sb->s_umount); in xfs_flush_inodes_worker()
/openbmc/linux/fs/crypto/
H A Dkeyring.c953 down_read(&sb->s_umount); in try_to_lock_encrypted_files()
955 up_read(&sb->s_umount); in try_to_lock_encrypted_files()
/openbmc/linux/Documentation/filesystems/
H A Dporting.rst966 Since opening block devices cannot happen under s_umount because of lock
967 ordering requirements s_umount is now dropped while opening block devices and
972 would hold s_umount they would wait until the superblock became either born or
975 Since the new logic drops s_umount concurrent mounters could grab s_umount and
977 mechanism without having to hold s_umount.
H A Dlocking.rst185 ops s_umount note
206 ->statfs() has s_umount (shared) when called by ustat(2) (native or
207 compat), but that's an accident of bad API; s_umount is used to pin
/openbmc/linux/drivers/base/
H A Ddevtmpfs.c73 down_write(&s->s_umount); in public_dev_mount()
/openbmc/linux/lib/
H A Dtest_lockup.c554 lock_rwsem_ptr = (unsigned long)&test_inode->i_sb->s_umount; in test_lockup_init()
/openbmc/linux/fs/ocfs2/
H A Dquota_global.c648 if (down_read_trylock(&sb->s_umount)) { in qsync_work_fn()
650 up_read(&sb->s_umount); in qsync_work_fn()
H A Dquota_local.c600 down_read(&sb->s_umount); in ocfs2_finish_quota_recovery()
677 up_read(&sb->s_umount); in ocfs2_finish_quota_recovery()
/openbmc/linux/fs/nilfs2/
H A Dsuper.c1323 up_write(&s->s_umount); in nilfs_mount()
1325 down_write(&s->s_umount); in nilfs_mount()

12