Lines Matching refs:sb
42 static int thaw_super_locked(struct super_block *sb, enum freeze_holder who);
53 static inline void __super_lock(struct super_block *sb, bool excl) in __super_lock() argument
56 down_write(&sb->s_umount); in __super_lock()
58 down_read(&sb->s_umount); in __super_lock()
61 static inline void super_unlock(struct super_block *sb, bool excl) in super_unlock() argument
64 up_write(&sb->s_umount); in super_unlock()
66 up_read(&sb->s_umount); in super_unlock()
69 static inline void __super_lock_excl(struct super_block *sb) in __super_lock_excl() argument
71 __super_lock(sb, true); in __super_lock_excl()
74 static inline void super_unlock_excl(struct super_block *sb) in super_unlock_excl() argument
76 super_unlock(sb, true); in super_unlock_excl()
79 static inline void super_unlock_shared(struct super_block *sb) in super_unlock_shared() argument
81 super_unlock(sb, false); in super_unlock_shared()
84 static inline bool wait_born(struct super_block *sb) in wait_born() argument
92 flags = smp_load_acquire(&sb->s_flags); in wait_born()
111 static __must_check bool super_lock(struct super_block *sb, bool excl) in super_lock() argument
114 lockdep_assert_not_held(&sb->s_umount); in super_lock()
117 __super_lock(sb, excl); in super_lock()
124 if (sb->s_flags & SB_DYING) in super_lock()
128 if (sb->s_flags & SB_BORN) in super_lock()
131 super_unlock(sb, excl); in super_lock()
134 wait_var_event(&sb->s_flags, wait_born(sb)); in super_lock()
144 static inline bool super_lock_shared(struct super_block *sb) in super_lock_shared() argument
146 return super_lock(sb, false); in super_lock_shared()
150 static inline bool super_lock_excl(struct super_block *sb) in super_lock_excl() argument
152 return super_lock(sb, true); in super_lock_excl()
157 static void super_wake(struct super_block *sb, unsigned int flag) in super_wake() argument
167 smp_store_release(&sb->s_flags, sb->s_flags | flag); in super_wake()
174 wake_up_var(&sb->s_flags); in super_wake()
187 struct super_block *sb; in super_cache_scan() local
194 sb = container_of(shrink, struct super_block, s_shrink); in super_cache_scan()
203 if (!super_trylock_shared(sb)) in super_cache_scan()
206 if (sb->s_op->nr_cached_objects) in super_cache_scan()
207 fs_objects = sb->s_op->nr_cached_objects(sb, sc); in super_cache_scan()
209 inodes = list_lru_shrink_count(&sb->s_inode_lru, sc); in super_cache_scan()
210 dentries = list_lru_shrink_count(&sb->s_dentry_lru, sc); in super_cache_scan()
228 freed = prune_dcache_sb(sb, sc); in super_cache_scan()
230 freed += prune_icache_sb(sb, sc); in super_cache_scan()
234 freed += sb->s_op->free_cached_objects(sb, sc); in super_cache_scan()
237 super_unlock_shared(sb); in super_cache_scan()
244 struct super_block *sb; in super_cache_count() local
247 sb = container_of(shrink, struct super_block, s_shrink); in super_cache_count()
263 if (!(sb->s_flags & SB_BORN)) in super_cache_count()
267 if (sb->s_op && sb->s_op->nr_cached_objects) in super_cache_count()
268 total_objects = sb->s_op->nr_cached_objects(sb, sc); in super_cache_count()
270 total_objects += list_lru_shrink_count(&sb->s_dentry_lru, sc); in super_cache_count()
271 total_objects += list_lru_shrink_count(&sb->s_inode_lru, sc); in super_cache_count()
430 void put_super(struct super_block *sb) in put_super() argument
433 __put_super(sb); in put_super()
437 static void kill_super_notify(struct super_block *sb) in kill_super_notify() argument
439 lockdep_assert_not_held(&sb->s_umount); in kill_super_notify()
442 if (sb->s_flags & SB_DEAD) in kill_super_notify()
453 hlist_del_init(&sb->s_instances); in kill_super_notify()
462 super_wake(sb, SB_DEAD); in kill_super_notify()
549 static inline bool wait_dead(struct super_block *sb) in wait_dead() argument
557 flags = smp_load_acquire(&sb->s_flags); in wait_dead()
573 static bool grab_super_dead(struct super_block *sb) in grab_super_dead() argument
576 sb->s_count++; in grab_super_dead()
577 if (grab_super(sb)) { in grab_super_dead()
578 put_super(sb); in grab_super_dead()
579 lockdep_assert_held(&sb->s_umount); in grab_super_dead()
582 wait_var_event(&sb->s_flags, wait_dead(sb)); in grab_super_dead()
583 lockdep_assert_not_held(&sb->s_umount); in grab_super_dead()
584 put_super(sb); in grab_super_dead()
605 bool super_trylock_shared(struct super_block *sb) in super_trylock_shared() argument
607 if (down_read_trylock(&sb->s_umount)) { in super_trylock_shared()
608 if (!(sb->s_flags & SB_DYING) && sb->s_root && in super_trylock_shared()
609 (sb->s_flags & SB_BORN)) in super_trylock_shared()
611 super_unlock_shared(sb); in super_trylock_shared()
633 void retire_super(struct super_block *sb) in retire_super() argument
635 WARN_ON(!sb->s_bdev); in retire_super()
636 __super_lock_excl(sb); in retire_super()
637 if (sb->s_iflags & SB_I_PERSB_BDI) { in retire_super()
638 bdi_unregister(sb->s_bdi); in retire_super()
639 sb->s_iflags &= ~SB_I_PERSB_BDI; in retire_super()
641 sb->s_iflags |= SB_I_RETIRED; in retire_super()
642 super_unlock_excl(sb); in retire_super()
660 void generic_shutdown_super(struct super_block *sb) in generic_shutdown_super() argument
662 const struct super_operations *sop = sb->s_op; in generic_shutdown_super()
664 if (sb->s_root) { in generic_shutdown_super()
665 shrink_dcache_for_umount(sb); in generic_shutdown_super()
666 sync_filesystem(sb); in generic_shutdown_super()
667 sb->s_flags &= ~SB_ACTIVE; in generic_shutdown_super()
672 evict_inodes(sb); in generic_shutdown_super()
678 fsnotify_sb_delete(sb); in generic_shutdown_super()
679 security_sb_delete(sb); in generic_shutdown_super()
685 fscrypt_destroy_keyring(sb); in generic_shutdown_super()
687 if (sb->s_dio_done_wq) { in generic_shutdown_super()
688 destroy_workqueue(sb->s_dio_done_wq); in generic_shutdown_super()
689 sb->s_dio_done_wq = NULL; in generic_shutdown_super()
693 sop->put_super(sb); in generic_shutdown_super()
695 if (CHECK_DATA_CORRUPTION(!list_empty(&sb->s_inodes), in generic_shutdown_super()
697 sb->s_id, sb->s_type->name)) { in generic_shutdown_super()
705 spin_lock(&sb->s_inode_list_lock); in generic_shutdown_super()
706 list_for_each_entry(inode, &sb->s_inodes, i_sb_list) { in generic_shutdown_super()
711 spin_unlock(&sb->s_inode_list_lock); in generic_shutdown_super()
723 super_wake(sb, SB_DYING); in generic_shutdown_super()
724 super_unlock_excl(sb); in generic_shutdown_super()
725 if (sb->s_bdi != &noop_backing_dev_info) { in generic_shutdown_super()
726 if (sb->s_iflags & SB_I_PERSB_BDI) in generic_shutdown_super()
727 bdi_unregister(sb->s_bdi); in generic_shutdown_super()
728 bdi_put(sb->s_bdi); in generic_shutdown_super()
729 sb->s_bdi = &noop_backing_dev_info; in generic_shutdown_super()
909 void drop_super(struct super_block *sb) in drop_super() argument
911 super_unlock_shared(sb); in drop_super()
912 put_super(sb); in drop_super()
917 void drop_super_exclusive(struct super_block *sb) in drop_super_exclusive() argument
919 super_unlock_excl(sb); in drop_super_exclusive()
920 put_super(sb); in drop_super_exclusive()
926 struct super_block *sb, *p = NULL; in __iterate_supers() local
929 list_for_each_entry(sb, &super_blocks, s_list) { in __iterate_supers()
931 if (smp_load_acquire(&sb->s_flags) & SB_DYING) in __iterate_supers()
933 sb->s_count++; in __iterate_supers()
936 f(sb); in __iterate_supers()
941 p = sb; in __iterate_supers()
957 struct super_block *sb, *p = NULL; in iterate_supers() local
960 list_for_each_entry(sb, &super_blocks, s_list) { in iterate_supers()
963 sb->s_count++; in iterate_supers()
966 born = super_lock_shared(sb); in iterate_supers()
967 if (born && sb->s_root) in iterate_supers()
968 f(sb, arg); in iterate_supers()
969 super_unlock_shared(sb); in iterate_supers()
974 p = sb; in iterate_supers()
993 struct super_block *sb, *p = NULL; in iterate_supers_type() local
996 hlist_for_each_entry(sb, &type->fs_supers, s_instances) { in iterate_supers_type()
999 sb->s_count++; in iterate_supers_type()
1002 born = super_lock_shared(sb); in iterate_supers_type()
1003 if (born && sb->s_root) in iterate_supers_type()
1004 f(sb, arg); in iterate_supers_type()
1005 super_unlock_shared(sb); in iterate_supers_type()
1010 p = sb; in iterate_supers_type()
1029 struct super_block *sb; in get_active_super() local
1035 list_for_each_entry(sb, &super_blocks, s_list) { in get_active_super()
1036 if (sb->s_bdev == bdev) { in get_active_super()
1037 if (!grab_super(sb)) in get_active_super()
1039 super_unlock_excl(sb); in get_active_super()
1040 return sb; in get_active_super()
1049 struct super_block *sb; in user_get_super() local
1052 list_for_each_entry(sb, &super_blocks, s_list) { in user_get_super()
1053 if (sb->s_dev == dev) { in user_get_super()
1056 sb->s_count++; in user_get_super()
1059 born = super_lock(sb, excl); in user_get_super()
1060 if (born && sb->s_root) in user_get_super()
1061 return sb; in user_get_super()
1062 super_unlock(sb, excl); in user_get_super()
1065 __put_super(sb); in user_get_super()
1081 struct super_block *sb = fc->root->d_sb; in reconfigure_super() local
1089 if (sb->s_writers.frozen != SB_UNFROZEN) in reconfigure_super()
1092 retval = security_sb_remount(sb, fc->security); in reconfigure_super()
1098 if (!(fc->sb_flags & SB_RDONLY) && sb->s_bdev && in reconfigure_super()
1099 bdev_read_only(sb->s_bdev)) in reconfigure_super()
1102 remount_rw = !(fc->sb_flags & SB_RDONLY) && sb_rdonly(sb); in reconfigure_super()
1103 remount_ro = (fc->sb_flags & SB_RDONLY) && !sb_rdonly(sb); in reconfigure_super()
1107 if (!hlist_empty(&sb->s_pins)) { in reconfigure_super()
1108 super_unlock_excl(sb); in reconfigure_super()
1109 group_pin_kill(&sb->s_pins); in reconfigure_super()
1110 __super_lock_excl(sb); in reconfigure_super()
1111 if (!sb->s_root) in reconfigure_super()
1113 if (sb->s_writers.frozen != SB_UNFROZEN) in reconfigure_super()
1115 remount_ro = !sb_rdonly(sb); in reconfigure_super()
1118 shrink_dcache_sb(sb); in reconfigure_super()
1125 sb_start_ro_state_change(sb); in reconfigure_super()
1127 retval = sb_prepare_remount_readonly(sb); in reconfigure_super()
1136 sb_start_ro_state_change(sb); in reconfigure_super()
1146 sb->s_type->name, retval); in reconfigure_super()
1150 WRITE_ONCE(sb->s_flags, ((sb->s_flags & ~fc->sb_flags_mask) | in reconfigure_super()
1152 sb_end_ro_state_change(sb); in reconfigure_super()
1162 if (remount_ro && sb->s_bdev) in reconfigure_super()
1163 invalidate_bdev(sb->s_bdev); in reconfigure_super()
1167 sb_end_ro_state_change(sb); in reconfigure_super()
1171 static void do_emergency_remount_callback(struct super_block *sb) in do_emergency_remount_callback() argument
1173 bool born = super_lock_excl(sb); in do_emergency_remount_callback()
1175 if (born && sb->s_root && sb->s_bdev && !sb_rdonly(sb)) { in do_emergency_remount_callback()
1178 fc = fs_context_for_reconfigure(sb->s_root, in do_emergency_remount_callback()
1186 super_unlock_excl(sb); in do_emergency_remount_callback()
1207 static void do_thaw_all_callback(struct super_block *sb) in do_thaw_all_callback() argument
1209 bool born = super_lock_excl(sb); in do_thaw_all_callback()
1211 if (born && sb->s_root) { in do_thaw_all_callback()
1213 while (sb->s_bdev && !thaw_bdev(sb->s_bdev)) in do_thaw_all_callback()
1214 pr_warn("Emergency Thaw on %pg\n", sb->s_bdev); in do_thaw_all_callback()
1215 thaw_super_locked(sb, FREEZE_HOLDER_USERSPACE); in do_thaw_all_callback()
1217 super_unlock_excl(sb); in do_thaw_all_callback()
1289 void kill_anon_super(struct super_block *sb) in kill_anon_super() argument
1291 dev_t dev = sb->s_dev; in kill_anon_super()
1292 generic_shutdown_super(sb); in kill_anon_super()
1293 kill_super_notify(sb); in kill_anon_super()
1298 void kill_litter_super(struct super_block *sb) in kill_litter_super() argument
1300 if (sb->s_root) in kill_litter_super()
1301 d_genocide(sb->s_root); in kill_litter_super()
1302 kill_anon_super(sb); in kill_litter_super()
1306 int set_anon_super_fc(struct super_block *sb, struct fs_context *fc) in set_anon_super_fc() argument
1308 return set_anon_super(sb, NULL); in set_anon_super_fc()
1312 static int test_keyed_super(struct super_block *sb, struct fs_context *fc) in test_keyed_super() argument
1314 return sb->s_fs_info == fc->s_fs_info; in test_keyed_super()
1324 int (*fill_super)(struct super_block *sb, in vfs_get_super() argument
1327 struct super_block *sb; in vfs_get_super() local
1330 sb = sget_fc(fc, test, set_anon_super_fc); in vfs_get_super()
1331 if (IS_ERR(sb)) in vfs_get_super()
1332 return PTR_ERR(sb); in vfs_get_super()
1334 if (!sb->s_root) { in vfs_get_super()
1335 err = fill_super(sb, fc); in vfs_get_super()
1339 sb->s_flags |= SB_ACTIVE; in vfs_get_super()
1342 fc->root = dget(sb->s_root); in vfs_get_super()
1346 deactivate_locked_super(sb); in vfs_get_super()
1351 int (*fill_super)(struct super_block *sb, in get_tree_nodev() argument
1359 int (*fill_super)(struct super_block *sb, in get_tree_single() argument
1367 int (*fill_super)(struct super_block *sb, in get_tree_keyed() argument
1429 static bool super_lock_shared_active(struct super_block *sb) in super_lock_shared_active() argument
1431 bool born = super_lock_shared(sb); in super_lock_shared_active()
1433 if (!born || !sb->s_root || !(sb->s_flags & SB_ACTIVE)) { in super_lock_shared_active()
1434 super_unlock_shared(sb); in super_lock_shared_active()
1442 struct super_block *sb = bdev->bd_holder; in fs_bdev_mark_dead() local
1447 if (!super_lock_shared_active(sb)) in fs_bdev_mark_dead()
1451 sync_filesystem(sb); in fs_bdev_mark_dead()
1452 shrink_dcache_sb(sb); in fs_bdev_mark_dead()
1453 invalidate_inodes(sb); in fs_bdev_mark_dead()
1454 if (sb->s_op->shutdown) in fs_bdev_mark_dead()
1455 sb->s_op->shutdown(sb); in fs_bdev_mark_dead()
1457 super_unlock_shared(sb); in fs_bdev_mark_dead()
1462 struct super_block *sb = bdev->bd_holder; in fs_bdev_sync() local
1466 if (!super_lock_shared_active(sb)) in fs_bdev_sync()
1468 sync_filesystem(sb); in fs_bdev_sync()
1469 super_unlock_shared(sb); in fs_bdev_sync()
1478 int setup_bdev_super(struct super_block *sb, int sb_flags, in setup_bdev_super() argument
1484 bdev = blkdev_get_by_dev(sb->s_dev, mode, sb, &fs_holder_ops); in setup_bdev_super()
1497 blkdev_put(bdev, sb); in setup_bdev_super()
1513 blkdev_put(bdev, sb); in setup_bdev_super()
1517 sb->s_bdev = bdev; in setup_bdev_super()
1518 sb->s_bdi = bdi_get(bdev->bd_disk->bdi); in setup_bdev_super()
1520 sb->s_iflags |= SB_I_STABLE_WRITES; in setup_bdev_super()
1524 snprintf(sb->s_id, sizeof(sb->s_id), "%pg", bdev); in setup_bdev_super()
1525 shrinker_debugfs_rename(&sb->s_shrink, "sb-%s:%s", sb->s_type->name, in setup_bdev_super()
1526 sb->s_id); in setup_bdev_super()
1527 sb_set_blocksize(sb, block_size(bdev)); in setup_bdev_super()
1642 void kill_block_super(struct super_block *sb) in kill_block_super() argument
1644 struct block_device *bdev = sb->s_bdev; in kill_block_super()
1646 generic_shutdown_super(sb); in kill_block_super()
1649 blkdev_put(bdev, sb); in kill_block_super()
1741 struct super_block *sb; in vfs_get_tree() local
1763 sb = fc->root->d_sb; in vfs_get_tree()
1764 WARN_ON(!sb->s_bdi); in vfs_get_tree()
1773 super_wake(sb, SB_BORN); in vfs_get_tree()
1775 error = security_sb_set_mnt_opts(sb, fc->security, 0, NULL); in vfs_get_tree()
1787 WARN((sb->s_maxbytes < 0), "%s set sb->s_maxbytes to " in vfs_get_tree()
1788 "negative value (%lld)\n", fc->fs_type->name, sb->s_maxbytes); in vfs_get_tree()
1798 int super_setup_bdi_name(struct super_block *sb, char *fmt, ...) in super_setup_bdi_name() argument
1815 WARN_ON(sb->s_bdi != &noop_backing_dev_info); in super_setup_bdi_name()
1816 sb->s_bdi = bdi; in super_setup_bdi_name()
1817 sb->s_iflags |= SB_I_PERSB_BDI; in super_setup_bdi_name()
1827 int super_setup_bdi(struct super_block *sb) in super_setup_bdi() argument
1831 return super_setup_bdi_name(sb, "%.28s-%ld", sb->s_type->name, in super_setup_bdi()
1844 static void sb_wait_write(struct super_block *sb, int level) in sb_wait_write() argument
1846 percpu_down_write(sb->s_writers.rw_sem + level-1); in sb_wait_write()
1853 static void lockdep_sb_freeze_release(struct super_block *sb) in lockdep_sb_freeze_release() argument
1858 percpu_rwsem_release(sb->s_writers.rw_sem + level, 0, _THIS_IP_); in lockdep_sb_freeze_release()
1864 static void lockdep_sb_freeze_acquire(struct super_block *sb) in lockdep_sb_freeze_acquire() argument
1869 percpu_rwsem_acquire(sb->s_writers.rw_sem + level, 0, _THIS_IP_); in lockdep_sb_freeze_acquire()
1872 static void sb_freeze_unlock(struct super_block *sb, int level) in sb_freeze_unlock() argument
1875 percpu_up_write(sb->s_writers.rw_sem + level); in sb_freeze_unlock()
1878 static int wait_for_partially_frozen(struct super_block *sb) in wait_for_partially_frozen() argument
1883 unsigned short old = sb->s_writers.frozen; in wait_for_partially_frozen()
1885 up_write(&sb->s_umount); in wait_for_partially_frozen()
1886 ret = wait_var_event_killable(&sb->s_writers.frozen, in wait_for_partially_frozen()
1887 sb->s_writers.frozen != old); in wait_for_partially_frozen()
1888 down_write(&sb->s_umount); in wait_for_partially_frozen()
1890 sb->s_writers.frozen != SB_UNFROZEN && in wait_for_partially_frozen()
1891 sb->s_writers.frozen != SB_FREEZE_COMPLETE); in wait_for_partially_frozen()
1940 int freeze_super(struct super_block *sb, enum freeze_holder who) in freeze_super() argument
1944 atomic_inc(&sb->s_active); in freeze_super()
1945 if (!super_lock_excl(sb)) in freeze_super()
1949 if (sb->s_writers.frozen == SB_FREEZE_COMPLETE) { in freeze_super()
1950 if (sb->s_writers.freeze_holders & who) { in freeze_super()
1951 deactivate_locked_super(sb); in freeze_super()
1955 WARN_ON(sb->s_writers.freeze_holders == 0); in freeze_super()
1961 sb->s_writers.freeze_holders |= who; in freeze_super()
1962 super_unlock_excl(sb); in freeze_super()
1966 if (sb->s_writers.frozen != SB_UNFROZEN) { in freeze_super()
1967 ret = wait_for_partially_frozen(sb); in freeze_super()
1969 deactivate_locked_super(sb); in freeze_super()
1976 if (!(sb->s_flags & SB_BORN)) { in freeze_super()
1977 super_unlock_excl(sb); in freeze_super()
1981 if (sb_rdonly(sb)) { in freeze_super()
1983 sb->s_writers.freeze_holders |= who; in freeze_super()
1984 sb->s_writers.frozen = SB_FREEZE_COMPLETE; in freeze_super()
1985 wake_up_var(&sb->s_writers.frozen); in freeze_super()
1986 super_unlock_excl(sb); in freeze_super()
1990 sb->s_writers.frozen = SB_FREEZE_WRITE; in freeze_super()
1992 super_unlock_excl(sb); in freeze_super()
1993 sb_wait_write(sb, SB_FREEZE_WRITE); in freeze_super()
1994 if (!super_lock_excl(sb)) in freeze_super()
1998 sb->s_writers.frozen = SB_FREEZE_PAGEFAULT; in freeze_super()
1999 sb_wait_write(sb, SB_FREEZE_PAGEFAULT); in freeze_super()
2002 ret = sync_filesystem(sb); in freeze_super()
2004 sb->s_writers.frozen = SB_UNFROZEN; in freeze_super()
2005 sb_freeze_unlock(sb, SB_FREEZE_PAGEFAULT); in freeze_super()
2006 wake_up_var(&sb->s_writers.frozen); in freeze_super()
2007 deactivate_locked_super(sb); in freeze_super()
2012 sb->s_writers.frozen = SB_FREEZE_FS; in freeze_super()
2013 sb_wait_write(sb, SB_FREEZE_FS); in freeze_super()
2015 if (sb->s_op->freeze_fs) { in freeze_super()
2016 ret = sb->s_op->freeze_fs(sb); in freeze_super()
2020 sb->s_writers.frozen = SB_UNFROZEN; in freeze_super()
2021 sb_freeze_unlock(sb, SB_FREEZE_FS); in freeze_super()
2022 wake_up_var(&sb->s_writers.frozen); in freeze_super()
2023 deactivate_locked_super(sb); in freeze_super()
2031 sb->s_writers.freeze_holders |= who; in freeze_super()
2032 sb->s_writers.frozen = SB_FREEZE_COMPLETE; in freeze_super()
2033 wake_up_var(&sb->s_writers.frozen); in freeze_super()
2034 lockdep_sb_freeze_release(sb); in freeze_super()
2035 super_unlock_excl(sb); in freeze_super()
2046 static int thaw_super_locked(struct super_block *sb, enum freeze_holder who) in thaw_super_locked() argument
2050 if (sb->s_writers.frozen == SB_FREEZE_COMPLETE) { in thaw_super_locked()
2051 if (!(sb->s_writers.freeze_holders & who)) { in thaw_super_locked()
2052 super_unlock_excl(sb); in thaw_super_locked()
2061 if (sb->s_writers.freeze_holders & ~who) { in thaw_super_locked()
2062 sb->s_writers.freeze_holders &= ~who; in thaw_super_locked()
2063 deactivate_locked_super(sb); in thaw_super_locked()
2067 super_unlock_excl(sb); in thaw_super_locked()
2071 if (sb_rdonly(sb)) { in thaw_super_locked()
2072 sb->s_writers.freeze_holders &= ~who; in thaw_super_locked()
2073 sb->s_writers.frozen = SB_UNFROZEN; in thaw_super_locked()
2074 wake_up_var(&sb->s_writers.frozen); in thaw_super_locked()
2078 lockdep_sb_freeze_acquire(sb); in thaw_super_locked()
2080 if (sb->s_op->unfreeze_fs) { in thaw_super_locked()
2081 error = sb->s_op->unfreeze_fs(sb); in thaw_super_locked()
2084 lockdep_sb_freeze_release(sb); in thaw_super_locked()
2085 super_unlock_excl(sb); in thaw_super_locked()
2090 sb->s_writers.freeze_holders &= ~who; in thaw_super_locked()
2091 sb->s_writers.frozen = SB_UNFROZEN; in thaw_super_locked()
2092 wake_up_var(&sb->s_writers.frozen); in thaw_super_locked()
2093 sb_freeze_unlock(sb, SB_FREEZE_FS); in thaw_super_locked()
2095 deactivate_locked_super(sb); in thaw_super_locked()
2111 int thaw_super(struct super_block *sb, enum freeze_holder who) in thaw_super() argument
2113 if (!super_lock_excl(sb)) in thaw_super()
2115 return thaw_super_locked(sb, who); in thaw_super()
2125 int sb_init_dio_done_wq(struct super_block *sb) in sb_init_dio_done_wq() argument
2130 sb->s_id); in sb_init_dio_done_wq()
2136 old = cmpxchg(&sb->s_dio_done_wq, NULL, wq); in sb_init_dio_done_wq()