diff options
author | Christoph Hellwig <hch@lst.de> | 2023-08-01 19:21:56 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-08-02 09:13:09 -0600 |
commit | 4a8b719f95c0dcd15fb7a04b806ad8139fa7c850 (patch) | |
tree | fc3f13d3b4081bcbc17b96d64c6f656853244d39 /fs/super.c | |
parent | d276bb291017e564b9f7c21e63fbe41a9fe0c764 (diff) | |
download | linux-4a8b719f95c0dcd15fb7a04b806ad8139fa7c850.tar.gz linux-4a8b719f95c0dcd15fb7a04b806ad8139fa7c850.tar.bz2 linux-4a8b719f95c0dcd15fb7a04b806ad8139fa7c850.zip |
fs: remove emergency_thaw_bdev
Fold emergency_thaw_bdev into it's only caller, to prepare for buffer.c
to be built only when buffer_head support is enabled.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20230801172201.1923299-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/super.c b/fs/super.c index e781226e2880..bc666e7ee1a9 100644 --- a/fs/super.c +++ b/fs/super.c @@ -1029,7 +1029,9 @@ static void do_thaw_all_callback(struct super_block *sb) { down_write(&sb->s_umount); if (sb->s_root && sb->s_flags & SB_BORN) { - emergency_thaw_bdev(sb); + if (IS_ENABLED(CONFIG_BLOCK)) + while (sb->s_bdev && !thaw_bdev(sb->s_bdev)) + pr_warn("Emergency Thaw on %pg\n", sb->s_bdev); thaw_super_locked(sb); } else { up_write(&sb->s_umount); |