OSDN Git Service

swap,blkcg: issue swap io with the appropriate context
authorTejun Heo <tj@kernel.org>
Tue, 3 Jul 2018 15:14:54 +0000 (11:14 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:54 +0000 (09:07 -0600)
commit0d3bd88d54f513723602b361dccfc71639f50779
tree349c7095f6e4faad0eadd64b516e80e1a0d3ef8d
parent0d1e0c7cd5909d6c6aa0957179318e13fcca971a
swap,blkcg: issue swap io with the appropriate context

For backcharging we need to know who the page belongs to when swapping
it out.  We don't worry about things that do ->rw_page (zram etc) at the
moment, we're only worried about pages that actually go to a block
device.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h
mm/page_io.c