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

/linux-4.1.27/fs/
H A Dsuper.c108 up_read(&sb->s_umount); super_cache_scan()
200 init_rwsem(&s->s_umount); alloc_super()
201 lockdep_set_class(&s->s_umount, &type->s_umount_key); alloc_super()
203 * sget() can have s_umount recursion. alloc_super()
209 * In case that succeeds, it will acquire the s_umount alloc_super()
217 down_write_nested(&s->s_umount, SINGLE_DEPTH_NESTING); alloc_super()
299 up_write(&s->s_umount); deactivate_locked_super()
316 down_write(&s->s_umount); deactivate_super()
340 down_write(&s->s_umount); __releases()
345 up_write(&s->s_umount); __releases()
351 * trylock_super - try to grab ->s_umount shared
357 * false if we cannot acquire s_umount or if we lose the race and
358 * filesystem already got into shutdown, and returns true with the s_umount
360 * the caller must drop the s_umount lock when done.
369 if (down_read_trylock(&sb->s_umount)) { trylock_super()
373 up_read(&sb->s_umount); trylock_super()
424 up_write(&sb->s_umount); generic_shutdown_super()
456 up_write(&s->s_umount); sget()
474 up_write(&s->s_umount); sget()
492 up_read(&sb->s_umount); drop_super()
517 down_read(&sb->s_umount); iterate_supers()
520 up_read(&sb->s_umount); iterate_supers()
551 down_read(&sb->s_umount); iterate_supers_type()
554 up_read(&sb->s_umount); iterate_supers_type()
591 down_read(&sb->s_umount); get_super()
595 up_read(&sb->s_umount); get_super()
623 up_read(&s->s_umount); get_super_thawed()
654 up_write(&sb->s_umount); get_active_super()
674 down_read(&sb->s_umount); user_get_super()
678 up_read(&sb->s_umount); user_get_super()
715 up_write(&sb->s_umount); do_remount_sb()
717 down_write(&sb->s_umount); do_remount_sb()
782 down_write(&sb->s_umount); do_emergency_remount()
790 up_write(&sb->s_umount); do_emergency_remount()
966 * once the super is inserted into the list by sget, s_umount mount_bdev()
990 * s_umount nests inside bd_mutex during mount_bdev()
992 * bd_mutex and can't be called under s_umount. Drop mount_bdev()
993 * s_umount temporarily. This is safe as we're mount_bdev()
996 up_write(&s->s_umount); mount_bdev()
998 down_write(&s->s_umount); mount_bdev()
1131 up_write(&sb->s_umount); mount_fs()
1288 * sb->s_writers.frozen is protected by sb->s_umount.
1295 down_write(&sb->s_umount); freeze_super()
1302 up_write(&sb->s_umount); freeze_super()
1309 up_write(&sb->s_umount); freeze_super()
1317 /* Release s_umount to preserve sb_start_write -> s_umount ordering */ freeze_super()
1318 up_write(&sb->s_umount); freeze_super()
1323 down_write(&sb->s_umount); freeze_super()
1354 up_write(&sb->s_umount); freeze_super()
1369 down_write(&sb->s_umount); thaw_super()
1371 up_write(&sb->s_umount); thaw_super()
1383 up_write(&sb->s_umount); thaw_super()
H A Dsync.c55 WARN_ON(!rwsem_is_locked(&sb->s_umount)); sync_filesystem()
159 down_read(&sb->s_umount); SYSCALL_DEFINE1()
161 up_read(&sb->s_umount); SYSCALL_DEFINE1()
H A Dfs-writeback.c171 * completion. Caller need not hold sb s_umount semaphore.
188 * Caller need not hold sb s_umount semaphore.
793 * s_umount being grabbed by someone else. Don't use __writeback_inodes_wb()
800 up_read(&sb->s_umount); __writeback_inodes_wb()
1369 WARN_ON(!rwsem_is_locked(&sb->s_umount)); wait_sb_inodes()
1440 WARN_ON(!rwsem_is_locked(&sb->s_umount)); writeback_inodes_sb_nr()
1477 if (!down_read_trylock(&sb->s_umount)) try_to_writeback_inodes_sb_nr()
1481 up_read(&sb->s_umount); try_to_writeback_inodes_sb_nr()
1523 WARN_ON(!rwsem_is_locked(&sb->s_umount)); sync_inodes_sb()
H A Dnamespace.c1504 down_write(&sb->s_umount); do_umount()
1507 up_write(&sb->s_umount); do_umount()
2194 down_write(&sb->s_umount); do_remount()
2208 up_write(&sb->s_umount); do_remount()
2878 down_write(&s->s_umount); mount_subtree()
H A Dblock_dev.c199 * If a superblock is found on this device, we take the s_umount semaphore
242 return sb; /* thaw_bdev releases s->s_umount */ freeze_bdev()
H A Ddcache.c1444 WARN(down_read_trylock(&sb->s_umount), "s_umount should've been locked"); shrink_dcache_for_umount()
/linux-4.1.27/fs/gfs2/
H A Dops_fstype.c1266 * once the super is inserted into the list by sget, s_umount gfs2_mount()
1284 * s_umount nests inside bd_mutex during gfs2_mount()
1286 * bd_mutex and can't be called under s_umount. Drop gfs2_mount()
1287 * s_umount temporarily. This is safe as we're gfs2_mount()
1290 up_write(&s->s_umount); gfs2_mount()
1292 down_write(&s->s_umount); gfs2_mount()
/linux-4.1.27/fs/cachefiles/
H A Dinterface.c374 down_read(&cache->mnt->mnt_sb->s_umount); cachefiles_sync_cache()
376 up_read(&cache->mnt->mnt_sb->s_umount); cachefiles_sync_cache()
/linux-4.1.27/fs/ubifs/
H A Dbudget.c65 down_read(&c->vfs_sb->s_umount); shrink_liability()
67 up_read(&c->vfs_sb->s_umount); shrink_liability()
/linux-4.1.27/fs/quota/
H A Dquota.c784 * because that gets s_umount sem which is also possibly needed by path SYSCALL_DEFINE4()
/linux-4.1.27/fs/xfs/
H A Dxfs_super.c899 if (down_read_trylock(&sb->s_umount)) { xfs_flush_inodes()
901 up_read(&sb->s_umount); xfs_flush_inodes()
/linux-4.1.27/fs/nilfs2/
H A Dsuper.c1297 * once the super is inserted into the list by sget, s_umount nilfs_mount()
/linux-4.1.27/fs/btrfs/
H A Dctree.h1456 * extent. The write side(mount/remount) is under ->s_umount lock,
1461 * Protected by ->chunk_mutex and sb->s_umount.
1465 * are under sb->s_umount, but the read side (chunk allocation) can not
1466 * acquire sb->s_umount or the deadlock would happen. So we use two
H A Dvolumes.c2119 down_write(&sb->s_umount); btrfs_init_new_device()
2266 up_write(&sb->s_umount);
2299 up_write(&sb->s_umount);
H A Dextent-tree.c4309 if (down_read_trylock(&sb->s_umount)) { btrfs_writeback_inodes_sb_nr()
4311 up_read(&sb->s_umount); btrfs_writeback_inodes_sb_nr()
4315 * we don't acquire ->s_umount mutex, because the filesystem btrfs_writeback_inodes_sb_nr()
/linux-4.1.27/include/linux/
H A Dfs.h1291 struct rw_semaphore s_umount; member in struct:super_block
1434 * -> s_umount (freeze_super, thaw_super)
/linux-4.1.27/fs/ext4/
H A Dsuper.c5400 * Caller already holds s_umount sem */ ext4_quota_off()

Completed in 1174 milliseconds