block: Define and use STAT_READ and STAT_WRITE
authorMichael Callahan <michaelcallahan@fb.com>
Wed, 18 Jul 2018 11:47:38 +0000 (04:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Jul 2018 14:44:18 +0000 (08:44 -0600)
commitdbae2c551377b6533a00c11fc7ede370100ab404
treebbbfb46c0d4c3ff3b9250f70453b259c58e89539
parent59767fbd49d794b4499d30b314df6c0d4aca584b
block: Define and use STAT_READ and STAT_WRITE

Add defines for STAT_READ and STAT_WRITE for indexing the partition
stat entries. This clarifies some fs/ code which has hardcoded 1 for
STAT_WRITE and will make it easier to extend the stats with additional
fields.

tj: Refreshed on top of v4.17.

Signed-off-by: Michael Callahan <michaelcallahan@fb.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
block/partition-generic.c
fs/ext4/super.c
fs/ext4/sysfs.c
fs/f2fs/f2fs.h
fs/f2fs/super.c
include/linux/blk_types.h
include/linux/genhd.h