diff options
author | Christoph Hellwig <hch@lst.de> | 2022-09-21 21:05:00 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-27 04:17:28 +0300 |
commit | de185b56e8a62822d4e1cdb3e068b38ca709aa47 (patch) | |
tree | 1968673ce080f6be094d1110bc38f325e5934da1 /mm/swapfile.c | |
parent | 00ad6991bbae116b7c83f68754edd6f4d5e65e01 (diff) | |
download | linux-de185b56e8a62822d4e1cdb3e068b38ca709aa47.tar.xz |
blk-cgroup: pass a gendisk to blkcg_schedule_throttle
Pass the gendisk to blkcg_schedule_throttle as part of moving the
blk-cgroup infrastructure to be gendisk based. Remove the unused
!BLK_CGROUP stub while we're at it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Herrmann <aherrmann@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220921180501.1539876-17-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r-- | mm/swapfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 1fdccd2f1422..82e62007881d 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -3655,7 +3655,7 @@ void __cgroup_throttle_swaprate(struct page *page, gfp_t gfp_mask) plist_for_each_entry_safe(si, next, &swap_avail_heads[nid], avail_lists[nid]) { if (si->bdev) { - blkcg_schedule_throttle(bdev_get_queue(si->bdev), true); + blkcg_schedule_throttle(si->bdev->bd_disk, true); break; } } |