blkcg: implement blk-iocost
[linux-block.git] / include / linux / blk_types.h
index 1b1fa1557e68aefe5cf5df252485d398b8a38e35..d688b96d1d633186fdbadaeaff7484b4c173c54f 100644 (file)
@@ -169,6 +169,9 @@ struct bio {
         */
        struct blkcg_gq         *bi_blkg;
        struct bio_issue        bi_issue;
+#ifdef CONFIG_BLK_CGROUP_IOCOST
+       u64                     bi_iocost_cost;
+#endif
 #endif
        union {
 #if defined(CONFIG_BLK_DEV_INTEGRITY)
@@ -209,6 +212,7 @@ enum {
        BIO_BOUNCED,            /* bio is a bounce bio */
        BIO_USER_MAPPED,        /* contains user pages */
        BIO_NULL_MAPPED,        /* contains invalid user pages */
+       BIO_WORKINGSET,         /* contains userspace workingset pages */
        BIO_QUIET,              /* Make BIO Quiet */
        BIO_CHAIN,              /* chained bio, ->bi_remaining in effect */
        BIO_REFFED,             /* bio has elevated ->bi_cnt */
@@ -282,6 +286,8 @@ enum req_opf {
        REQ_OP_ZONE_RESET       = 6,
        /* write the same sector many times */
        REQ_OP_WRITE_SAME       = 7,
+       /* reset all the zone present on the device */
+       REQ_OP_ZONE_RESET_ALL   = 8,
        /* write the zero filled sector many times */
        REQ_OP_WRITE_ZEROES     = 9,