| /linux-6.15/fs/jfs/ |
| H A D | jfs_discard.c | 86 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()
|
| /linux-6.15/fs/ |
| H A D | sync.c | 38 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 D | super.c | 56 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() 111 lockdep_assert_not_held(&sb->s_umount); in super_lock() 327 init_rwsem(&s->s_umount); in alloc_super() 431 lockdep_assert_not_held(&sb->s_umount); in kill_super_notify() 562 if (down_read_trylock(&sb->s_umount)) { in super_trylock_shared() 1380 lockdep_assert_not_held(&sb->s_umount); in bdev_super_lock() 1894 up_write(&sb->s_umount); in wait_for_partially_frozen() [all …]
|
| H A D | fsopen.c | 240 up_write(&sb->s_umount); in vfs_cmd_create() 261 down_write(&sb->s_umount); in vfs_cmd_reconfigure() 263 up_write(&sb->s_umount); in vfs_cmd_reconfigure()
|
| H A D | fs-writeback.c | 2048 up_read(&sb->s_umount); in __writeback_inodes_wb() 2651 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in wait_sb_inodes() 2744 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in __writeback_inodes_sb_nr() 2792 if (!down_read_trylock(&sb->s_umount)) in try_to_writeback_inodes_sb() 2796 up_read(&sb->s_umount); in try_to_writeback_inodes_sb() 2828 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in sync_inodes_sb()
|
| H A D | namespace.c | 1291 up_write(&fc->root->d_sb->s_umount); in fc_mount() 1946 down_write(&sb->s_umount); in do_umount_root() 1961 up_write(&sb->s_umount); in do_umount_root() 3315 down_read(&sb->s_umount); in do_reconfigure_mnt() 3321 up_read(&sb->s_umount); in do_reconfigure_mnt() 3362 down_write(&sb->s_umount); in do_remount() 3372 up_write(&sb->s_umount); in do_remount() 3810 up_write(&sb->s_umount); in do_new_mount_fc() 4403 down_write(&s->s_umount); in mount_subtree()
|
| /linux-6.15/fs/quota/ |
| H A D | quota.c | 895 up_write(&sb->s_umount); in quotactl_block() 897 up_read(&sb->s_umount); in quotactl_block() 996 down_write(&sb->s_umount); in SYSCALL_DEFINE4() 998 down_read(&sb->s_umount); in SYSCALL_DEFINE4() 1003 up_write(&sb->s_umount); in SYSCALL_DEFINE4() 1005 up_read(&sb->s_umount); in SYSCALL_DEFINE4()
|
| H A D | dquot.c | 633 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() 2247 rwsem_assert_held_write(&sb->s_umount); in dquot_disable() 2411 lockdep_assert_held_write(&sb->s_umount); in dquot_load_quota_sb() 2510 rwsem_assert_held_write(&sb->s_umount); in dquot_resume()
|
| /linux-6.15/fs/cachefiles/ |
| H A D | cache.c | 395 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()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | fs-ioctl.c | 231 down_read(&c->vfs_sb->s_umount); in bch2_ioctl_subvolume_create() 233 up_read(&c->vfs_sb->s_umount); in bch2_ioctl_subvolume_create()
|
| H A D | super.c | 2090 down_read(&sb->s_umount); in bch2_fs_bdev_mark_dead() 2115 up_read(&sb->s_umount); in bch2_fs_bdev_mark_dead() 2133 down_read(&sb->s_umount); in bch2_fs_bdev_sync() 2135 up_read(&sb->s_umount); in bch2_fs_bdev_sync()
|
| /linux-6.15/fs/ubifs/ |
| H A D | budget.c | 53 down_read(&c->vfs_sb->s_umount); in shrink_liability() 55 up_read(&c->vfs_sb->s_umount); in shrink_liability()
|
| /linux-6.15/fs/gfs2/ |
| H A D | glops.c | 581 if (down_read_trylock(&sb->s_umount)) { in freeze_go_callback() 583 up_read(&sb->s_umount); in freeze_go_callback()
|
| /linux-6.15/Documentation/filesystems/ |
| H A D | porting.rst | 966 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. 1053 Lock ordering has been changed so that s_umount ranks above open_mutex again. 1054 All places where s_umount was taken under open_mutex have been fixed up.
|
| H A D | locking.rst | 190 ops s_umount note 211 ->statfs() has s_umount (shared) when called by ustat(2) (native or 212 compat), but that's an accident of bad API; s_umount is used to pin
|
| /linux-6.15/fs/nfs/ |
| H A D | namespace.c | 193 up_write(&fc->root->d_sb->s_umount); in nfs_d_automount()
|
| /linux-6.15/fs/ext4/ |
| H A D | block_validity.c | 288 lockdep_is_held(&sb->s_umount)); in ext4_release_system_zone()
|
| H A D | orphan.c | 318 lockdep_is_held(&sb->s_umount)), in ext4_quota_on_mount()
|
| /linux-6.15/fs/overlayfs/ |
| H A D | params.c | 744 down_read(&upper_sb->s_umount); in ovl_reconfigure() 746 up_read(&upper_sb->s_umount); in ovl_reconfigure()
|
| H A D | super.c | 243 down_read(&upper_sb->s_umount); in ovl_sync_fs() 245 up_read(&upper_sb->s_umount); in ovl_sync_fs()
|
| /linux-6.15/fs/crypto/ |
| H A D | keyring.c | 977 down_read(&sb->s_umount); in try_to_lock_encrypted_files() 979 up_read(&sb->s_umount); in try_to_lock_encrypted_files()
|
| /linux-6.15/drivers/base/ |
| H A D | devtmpfs.c | 82 down_write(&sb->s_umount); in devtmpfs_get_tree()
|
| /linux-6.15/lib/ |
| H A D | test_lockup.c | 554 lock_rwsem_ptr = (unsigned long)&test_inode->i_sb->s_umount; in test_lockup_init()
|
| /linux-6.15/fs/ocfs2/ |
| H A D | quota_global.c | 657 if (down_read_trylock(&sb->s_umount)) { in qsync_work_fn() 659 up_read(&sb->s_umount); in qsync_work_fn()
|
| /linux-6.15/fs/f2fs/ |
| H A D | sysfs.c | 834 if (!down_read_trylock(&sbi->sb->s_umount)) in f2fs_sbi_store() 839 up_read(&sbi->sb->s_umount); in f2fs_sbi_store()
|