Home
last modified time | relevance | path

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

12

/Linux-v6.6/fs/
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 …]
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()
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()
Dfs-writeback.c1971 up_read(&sb->s_umount); in __writeback_inodes_wb()
2559 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in wait_sb_inodes()
2652 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in __writeback_inodes_sb_nr()
2700 if (!down_read_trylock(&sb->s_umount)) in try_to_writeback_inodes_sb()
2704 up_read(&sb->s_umount); in try_to_writeback_inodes_sb()
2736 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in sync_inodes_sb()
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()
2879 down_write(&sb->s_umount); in do_remount()
2889 up_write(&sb->s_umount); in do_remount()
3270 up_write(&sb->s_umount); in do_new_mount_fc()
3855 down_write(&s->s_umount); in mount_subtree()
/Linux-v6.6/fs/cachefiles/
Dcache.c351 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
353 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
/Linux-v6.6/fs/quota/
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()
Ddquot.c633 WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)); in dquot_scan_active()
689 WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)); in dquot_writeback_dquots()
2229 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_disable()
2230 up_read(&sb->s_umount); in dquot_disable()
2380 lockdep_assert_held_write(&sb->s_umount); in dquot_load_quota_sb()
2478 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_resume()
2479 up_read(&sb->s_umount); in dquot_resume()
/Linux-v6.6/fs/ubifs/
Dbudget.c53 down_read(&c->vfs_sb->s_umount); in shrink_liability()
55 up_read(&c->vfs_sb->s_umount); in shrink_liability()
/Linux-v6.6/fs/gfs2/
Dglops.c581 if (down_read_trylock(&sb->s_umount)) { in freeze_go_callback()
583 up_read(&sb->s_umount); in freeze_go_callback()
/Linux-v6.6/fs/overlayfs/
Dparams.c658 down_read(&upper_sb->s_umount); in ovl_reconfigure()
660 up_read(&upper_sb->s_umount); in ovl_reconfigure()
Dsuper.c231 down_read(&upper_sb->s_umount); in ovl_sync_fs()
233 up_read(&upper_sb->s_umount); in ovl_sync_fs()
/Linux-v6.6/fs/nfs/
Dnamespace.c193 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount()
/Linux-v6.6/fs/ext4/
Dblock_validity.c288 lockdep_is_held(&sb->s_umount)); in ext4_release_system_zone()
Dorphan.c318 lockdep_is_held(&sb->s_umount)), in ext4_quota_on_mount()
/Linux-v6.6/fs/crypto/
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()
/Linux-v6.6/fs/xfs/
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()
/Linux-v6.6/drivers/base/
Ddevtmpfs.c73 down_write(&s->s_umount); in public_dev_mount()
/Linux-v6.6/Documentation/filesystems/
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.
Dlocking.rst182 ops s_umount note
203 ->statfs() has s_umount (shared) when called by ustat(2) (native or
204 compat), but that's an accident of bad API; s_umount is used to pin
/Linux-v6.6/lib/
Dtest_lockup.c554 lock_rwsem_ptr = (unsigned long)&test_inode->i_sb->s_umount; in test_lockup_init()
/Linux-v6.6/fs/ocfs2/
Dquota_global.c648 if (down_read_trylock(&sb->s_umount)) { in qsync_work_fn()
650 up_read(&sb->s_umount); in qsync_work_fn()
Dquota_local.c600 down_read(&sb->s_umount); in ocfs2_finish_quota_recovery()
677 up_read(&sb->s_umount); in ocfs2_finish_quota_recovery()
/Linux-v6.6/fs/nilfs2/
Dsuper.c1323 up_write(&s->s_umount); in nilfs_mount()
1325 down_write(&s->s_umount); in nilfs_mount()
/Linux-v6.6/fs/f2fs/
Dsysfs.c751 if (!down_read_trylock(&sbi->sb->s_umount)) in f2fs_sbi_store()
756 up_read(&sbi->sb->s_umount); in f2fs_sbi_store()

12