summaryrefslogtreecommitdiff
path: root/block/blk-stat.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-05-07 19:03:23 +0300
committerJens Axboe <axboe@kernel.dk>2018-05-09 00:11:02 +0300
commit782f569774d7000e54ae9d680b0e4cd29b1c7ca3 (patch)
tree137bb8ebd2903af1d82fb9159ccc5a06b9005335 /block/blk-stat.h
parent8bea60901974ad44b06b08d52e1dd421ea8c6e9c (diff)
downloadlinux-782f569774d7000e54ae9d680b0e4cd29b1c7ca3.tar.xz
blk-wbt: throttle discards like background writes
Throttle discards like we would any background write. Discards should be background activity, so if they are impacting foreground IO, then we will throttle them down. Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-stat.h')
-rw-r--r--block/blk-stat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-stat.h b/block/blk-stat.h
index 2dd36347252a..c22049a8125e 100644
--- a/block/blk-stat.h
+++ b/block/blk-stat.h
@@ -10,11 +10,11 @@
/*
* from upper:
- * 3 bits: reserved for other usage
+ * 4 bits: reserved for other usage
* 12 bits: size
- * 49 bits: time
+ * 48 bits: time
*/
-#define BLK_STAT_RES_BITS 3
+#define BLK_STAT_RES_BITS 4
#define BLK_STAT_SIZE_BITS 12
#define BLK_STAT_RES_SHIFT (64 - BLK_STAT_RES_BITS)
#define BLK_STAT_SIZE_SHIFT (BLK_STAT_RES_SHIFT - BLK_STAT_SIZE_BITS)