block: stop passing 'cpu' to all percpu stats methods
authorMike Snitzer <snitzer@redhat.com>
Thu, 6 Dec 2018 16:41:18 +0000 (11:41 -0500)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Dec 2018 15:30:37 +0000 (08:30 -0700)
commit112f158f66cbe25fd561a5dfe9c3826e06abf757
tree192a838ddd4e61581e6be953dc843d84730de6e8
parentdbd3bbd291a03f1383de6242e7999e8487cb869b
block: stop passing 'cpu' to all percpu stats methods

All of part_stat_* and related methods are used with preempt disabled,
so there is no need to pass cpu around to allow of them.  Just call
smp_processor_id() as needed.

Suggested-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-core.c
block/blk-merge.c
block/genhd.c
block/partition-generic.c
drivers/md/md.c
include/linux/genhd.h