Home
last modified time | relevance | path

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

12

/Linux-v6.1/fs/
Dsuper.c113 up_read(&sb->s_umount); in super_cache_scan()
179 up_write(&s->s_umount); in destroy_unused_super()
211 init_rwsem(&s->s_umount); in alloc_super()
212 lockdep_set_class(&s->s_umount, &type->s_umount_key); in alloc_super()
228 down_write_nested(&s->s_umount, SINGLE_DEPTH_NESTING); in alloc_super()
345 up_write(&s->s_umount); in deactivate_locked_super()
362 down_write(&s->s_umount); in deactivate_super()
386 down_write(&s->s_umount); in grab_super()
391 up_write(&s->s_umount); in grab_super()
415 if (down_read_trylock(&sb->s_umount)) { in trylock_super()
[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.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()
Dfs-writeback.c1950 up_read(&sb->s_umount); in __writeback_inodes_wb()
2532 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in wait_sb_inodes()
2625 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in __writeback_inodes_sb_nr()
2673 if (!down_read_trylock(&sb->s_umount)) in try_to_writeback_inodes_sb()
2677 up_read(&sb->s_umount); in try_to_writeback_inodes_sb()
2709 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in sync_inodes_sb()
Dnamespace.c1045 up_write(&fc->root->d_sb->s_umount); in fc_mount()
1609 down_write(&sb->s_umount); in do_umount_root()
1624 up_write(&sb->s_umount); in do_umount_root()
2657 down_read(&sb->s_umount); in do_reconfigure_mnt()
2663 up_read(&sb->s_umount); in do_reconfigure_mnt()
2699 down_write(&sb->s_umount); in do_remount()
2709 up_write(&sb->s_umount); in do_remount()
2975 up_write(&sb->s_umount); in do_new_mount_fc()
3562 down_write(&s->s_umount); in mount_subtree()
/Linux-v6.1/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.1/fs/quota/
Dquota.c895 up_write(&sb->s_umount); in quotactl_block()
897 up_read(&sb->s_umount); in quotactl_block()
997 down_write(&sb->s_umount); in SYSCALL_DEFINE4()
999 down_read(&sb->s_umount); in SYSCALL_DEFINE4()
1004 up_write(&sb->s_umount); in SYSCALL_DEFINE4()
1006 up_read(&sb->s_umount); in SYSCALL_DEFINE4()
Ddquot.c596 WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)); in dquot_scan_active()
640 WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount)); in dquot_writeback_dquots()
2211 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_disable()
2212 up_read(&sb->s_umount); in dquot_disable()
2363 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_load_quota_sb()
2364 up_read(&sb->s_umount); in dquot_load_quota_sb()
2458 if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount))) in dquot_resume()
2459 up_read(&sb->s_umount); in dquot_resume()
/Linux-v6.1/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.1/fs/nfs/
Dnamespace.c193 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount()
/Linux-v6.1/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()
Dsuper.c1179 lockdep_is_held(&sb->s_umount)); in get_qf_name()
2500 lockdep_is_held(&sb->s_umount)); in ext4_apply_quota_options()
3758 if (down_read_trylock(&elr->lr_super->s_umount)) { in ext4_lazyinit_thread()
3772 up_read((&elr->lr_super->s_umount)); in ext4_lazyinit_thread()
/Linux-v6.1/fs/crypto/
Dkeyring.c964 down_read(&sb->s_umount); in try_to_lock_encrypted_files()
966 up_read(&sb->s_umount); in try_to_lock_encrypted_files()
/Linux-v6.1/fs/overlayfs/
Dsuper.c296 down_read(&upper_sb->s_umount); in ovl_sync_fs()
298 up_read(&upper_sb->s_umount); in ovl_sync_fs()
404 down_read(&upper_sb->s_umount); in ovl_remount()
406 up_read(&upper_sb->s_umount); in ovl_remount()
/Linux-v6.1/drivers/base/
Ddevtmpfs.c71 down_write(&s->s_umount); in public_dev_mount()
/Linux-v6.1/lib/
Dtest_lockup.c554 lock_rwsem_ptr = (unsigned long)&test_inode->i_sb->s_umount; in test_lockup_init()
/Linux-v6.1/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.1/Documentation/filesystems/
Dlocking.rst178 ops s_umount note
199 ->statfs() has s_umount (shared) when called by ustat(2) (native or
200 compat), but that's an accident of bad API; s_umount is used to pin
/Linux-v6.1/fs/f2fs/
Dsysfs.c666 if (!down_read_trylock(&sbi->sb->s_umount)) in f2fs_sbi_store()
671 up_read(&sbi->sb->s_umount); in f2fs_sbi_store()
Dcheckpoint.c1229 locked = down_read_trylock(&sbi->sb->s_umount); in block_operations()
1232 up_read(&sbi->sb->s_umount); in block_operations()
/Linux-v6.1/fs/xfs/
Dxfs_super.c599 if (down_read_trylock(&sb->s_umount)) { in xfs_flush_inodes_worker()
601 up_read(&sb->s_umount); in xfs_flush_inodes_worker()
/Linux-v6.1/fs/btrfs/
Dsuper.c1903 down_write(&mnt_root->mnt_sb->s_umount); in btrfs_mount()
1905 up_write(&mnt_root->mnt_sb->s_umount); in btrfs_mount()
/Linux-v6.1/fs/reiserfs/
Dsuper.c97 if (!down_read_trylock(&s->s_umount)) { in flush_old_commits()
112 up_read(&s->s_umount); in flush_old_commits()

12