]> git.baikalelectronics.ru Git - kernel.git/commit
blk-stat: delete useless code
authorShaohua Li <shli@fb.com>
Sat, 7 Oct 2017 00:55:59 +0000 (17:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Oct 2017 19:48:14 +0000 (13:48 -0600)
commitefc32820217bfdfb58cdf821001e066beed82074
tree6a042bf2b35595851ca83b9e77eec8ca05f1e38a
parenteee2be38f5edda486805a87c564797c57bce49ec
blk-stat: delete useless code

Fix two issues:
- the per-cpu stat flush is unnecessary, nobody uses per-cpu stat except
  sum it to global stat. We can do the calculation there. The flush just
  wastes cpu time.
- some fields are signed int/s64. I don't see the point.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-stat.c
include/linux/blk_types.h