Home
last modified time | relevance | path

Searched refs:s_umount (Results 1 - 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/fs/
H A Dsuper.c114 up_read(&sb->s_umount); in super_cache_scan()
180 up_write(&s->s_umount); in destroy_unused_super()
212 init_rwsem(&s->s_umount); in alloc_super()
213 lockdep_set_class(&s->s_umount, &type->s_umount_key); in alloc_super()
215 * sget() can have s_umount recursion. in alloc_super()
221 * In case that succeeds, it will acquire the s_umount in alloc_super()
229 down_write_nested(&s->s_umount, SINGLE_DEPTH_NESTING); in alloc_super()
348 up_write(&s->s_umount); in deactivate_locked_super()
365 down_write(&s->s_umount); in deactivate_super()
389 down_write(&s->s_umount); in __releases()
[all...]
H A Dsync.c37 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in sync_filesystem()
173 down_read(&sb->s_umount); in SYSCALL_DEFINE1()
175 up_read(&sb->s_umount); in SYSCALL_DEFINE1()
H A Dfsopen.c241 up_write(&sb->s_umount); in vfs_fsconfig_locked()
253 down_write(&sb->s_umount); in vfs_fsconfig_locked()
255 up_write(&sb->s_umount); in vfs_fsconfig_locked()
H A Dfs-writeback.c1115 * Caller need not hold sb s_umount semaphore.
1798 * s_umount being grabbed by someone else. Don't use in __writeback_inodes_wb()
1805 up_read(&sb->s_umount); in __writeback_inodes_wb()
2362 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in wait_sb_inodes()
2455 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in __writeback_inodes_sb_nr()
2503 if (!down_read_trylock(&sb->s_umount)) in try_to_writeback_inodes_sb()
2507 up_read(&sb->s_umount); in try_to_writeback_inodes_sb()
2539 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in sync_inodes_sb()
H A Dnamespace.c981 up_write(&fc->root->d_sb->s_umount); in fc_mount()
1541 down_write(&sb->s_umount); in do_umount_root()
1556 up_write(&sb->s_umount); in do_umount_root()
2541 * sb->s_umount for writing.
2594 down_write(&sb->s_umount); in do_reconfigure_mnt()
2598 up_write(&sb->s_umount); in do_reconfigure_mnt()
2639 down_write(&sb->s_umount); in do_remount()
2646 up_write(&sb->s_umount); in do_remount()
2840 up_write(&sb->s_umount); in do_new_mount_fc()
3433 down_write(&s->s_umount); in mount_subtree()
[all...]
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dserver_writeback.c27 !down_read_trylock(&lower_sb->s_umount)) in hmdfs_srv_wb_handler()
32 up_read(&lower_sb->s_umount); in hmdfs_srv_wb_handler()
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dserver_writeback.c27 !down_read_trylock(&lower_sb->s_umount)) in hmdfs_srv_wb_handler()
32 up_read(&lower_sb->s_umount); in hmdfs_srv_wb_handler()
/kernel/linux/linux-6.6/fs/
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 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()
109 * set. The function acquires s_umount and returns with it held.
114 lockdep_assert_not_held(&sb->s_umount); in super_lock()
138 * Just reacquire @sb->s_umount for the caller. in super_lock()
143 /* wait and acquire read-side of @sb->s_umount */
149 /* wait and acquire write-side of @sb->s_umount */
335 init_rwsem(&s->s_umount); in alloc_super()
[all...]
H A Dfsopen.c244 /* vfs_get_tree() callchains will have grabbed @s_umount */ in vfs_cmd_create()
245 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.c1242 * Caller need not hold sb s_umount semaphore.
1981 * s_umount being grabbed by someone else. Don't use in __writeback_inodes_wb()
1988 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()
2835 * changing it, so only take down_read(&sb->s_umount). in do_reconfigure_mnt()
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()
[all...]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/fs/quota/
H A Dquota.c895 up_write(&sb->s_umount); in quotactl_block()
897 up_read(&sb->s_umount); in quotactl_block()
944 * because that gets s_umount sem which is also possibly needed by path in SYSCALL_DEFINE4()
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.c126 * s_umount > i_mutex > journal_lock > dquot->dq_lock > dqio_sem
635 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()
1031 /* This routine is guarded by s_umount semaphore */
2255 /* s_umount should be held in exclusive mode */ in dquot_disable()
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()
2518 /* s_umount should be held in exclusive mode */ in dquot_resume()
2519 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_resume()
[all...]
/kernel/linux/linux-5.10/fs/cachefiles/
H A Dinterface.c389 down_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
391 up_read(&cache->mnt->mnt_sb->s_umount); in cachefiles_sync_cache()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/fs/quota/
H A Ddquot.c126 * s_umount > i_mutex > journal_lock > dquot->dq_lock > dqio_sem
637 WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)); in dquot_scan_active()
693 WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)); in dquot_writeback_dquots()
1033 /* This routine is guarded by s_umount semaphore */
2291 /* s_umount should be held in exclusive mode */ in dquot_disable()
2292 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_disable()
2293 up_read(&sb->s_umount); in dquot_disable()
2459 /* s_umount should be held in exclusive mode */ in dquot_load_quota_sb()
2460 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_load_quota_sb()
2461 up_read(&sb->s_umount); in dquot_load_quota_sb()
[all...]
/kernel/linux/linux-6.6/fs/gfs2/
H A Dglops.c578 * the only place where a write lock on s_umount is taken, and we can in freeze_go_callback()
581 if (down_read_trylock(&sb->s_umount)) { in freeze_go_callback()
583 up_read(&sb->s_umount); in freeze_go_callback()
/kernel/linux/linux-5.10/fs/nfs/
H A Dnamespace.c193 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount()
/kernel/linux/linux-5.10/fs/ext4/
H A Dblock_validity.c206 * sb->s_umount semaphore. However we have to be careful as we can be
278 * sb->s_umount semaphore. However we have to be careful as we can be
288 lockdep_is_held(&sb->s_umount)); in ext4_release_system_zone()
/kernel/linux/linux-6.6/fs/ext4/
H A Dblock_validity.c206 * sb->s_umount semaphore. However we have to be careful as we can be
278 * sb->s_umount semaphore. However we have to be careful as we can be
288 lockdep_is_held(&sb->s_umount)); in ext4_release_system_zone()
/kernel/linux/linux-6.6/fs/nfs/
H A Dnamespace.c193 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount()
/kernel/linux/linux-5.10/fs/crypto/
H A Dkeyring.c921 down_read(&sb->s_umount); in try_to_lock_encrypted_files()
923 up_read(&sb->s_umount); in try_to_lock_encrypted_files()

Completed in 35 milliseconds

123