]> git.baikalelectronics.ru Git - kernel.git/commitdiff
writeback: cleanup bdi_sched_wait()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Wed, 13 Jul 2022 12:53:14 +0000 (20:53 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:48 +0000 (17:14 -0700)
bdi_sched_wait() is no longer used since commit 24c4842b1bb7 ("writeback:
replace custom worker pool implementation with unbound workqueue"), so
remove it.

Link: https://lkml.kernel.org/r/20220713125314.171345-1-xiujianfeng@huawei.com
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/backing-dev.h

index d452071db572e1f402f9d751458b2c7a21c84fdd..e84b745a68119d8d984baa32aa0570012cec1028 100644 (file)
@@ -140,12 +140,6 @@ static inline bool mapping_can_writeback(struct address_space *mapping)
        return inode_to_bdi(mapping->host)->capabilities & BDI_CAP_WRITEBACK;
 }
 
-static inline int bdi_sched_wait(void *word)
-{
-       schedule();
-       return 0;
-}
-
 #ifdef CONFIG_CGROUP_WRITEBACK
 
 struct bdi_writeback *wb_get_lookup(struct backing_dev_info *bdi,