Home
last modified time | relevance | path

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

12

/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()
439 lockdep_assert_not_held(&sb->s_umount); in kill_super_notify()
579 lockdep_assert_held(&sb->s_umount); in grab_super_dead()
583 lockdep_assert_not_held(&sb->s_umount); in grab_super_dead()
1885 up_write(&sb->s_umount); in wait_for_partially_frozen()
[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()
2576 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in wait_sb_inodes()
2669 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in __writeback_inodes_sb_nr()
2717 if (!down_read_trylock(&sb->s_umount)) in try_to_writeback_inodes_sb()
2721 up_read(&sb->s_umount); in try_to_writeback_inodes_sb()
2753 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()
2837 down_read(&sb->s_umount); in do_reconfigure_mnt()
2843 up_read(&sb->s_umount); in do_reconfigure_mnt()
2884 down_write(&sb->s_umount); in do_remount()
2894 up_write(&sb->s_umount); in do_remount()
3275 up_write(&sb->s_umount); in do_new_mount_fc()
3866 down_write(&s->s_umount); in mount_subtree()
/openbmc/linux/fs/cachefiles/
H A Dcache.c353 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
355 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
/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()
2256 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_disable()
2257 up_read(&sb->s_umount); in dquot_disable()
2421 lockdep_assert_held_write(&sb->s_umount); in dquot_load_quota_sb()
2519 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_resume()
2520 up_read(&sb->s_umount); in dquot_resume()
/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/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/linux/fs/gfs2/
H A Dglops.c581 if (down_read_trylock(&sb->s_umount)) { in freeze_go_callback()
583 up_read(&sb->s_umount); in freeze_go_callback()
/openbmc/linux/fs/ext4/
H A Dblock_validity.c288 lockdep_is_held(&sb->s_umount)); in ext4_release_system_zone()
H A Dorphan.c318 lockdep_is_held(&sb->s_umount)), in ext4_quota_on_mount()
/openbmc/linux/fs/nfs/
H A Dnamespace.c193 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount()
/openbmc/linux/fs/overlayfs/
H A Dparams.c684 down_read(&upper_sb->s_umount); in ovl_reconfigure()
686 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/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/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/drivers/base/
H A Ddevtmpfs.c73 down_write(&s->s_umount); in public_dev_mount()
/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/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