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>
Showing
- block/genhd.c 8 additions, 8 deletionsblock/genhd.c
- block/partition-generic.c 8 additions, 8 deletionsblock/partition-generic.c
- fs/ext4/super.c 3 additions, 2 deletionsfs/ext4/super.c
- fs/ext4/sysfs.c 4 additions, 2 deletionsfs/ext4/sysfs.c
- fs/f2fs/f2fs.h 1 addition, 1 deletionfs/f2fs/f2fs.h
- fs/f2fs/super.c 2 additions, 1 deletionfs/f2fs/super.c
- include/linux/blk_types.h 7 additions, 0 deletionsinclude/linux/blk_types.h
- include/linux/genhd.h 7 additions, 6 deletionsinclude/linux/genhd.h
Loading
Please register or sign in to comment