void blk_fill_rwbs_rq(char *rwbs, struct request *rq) { int rw = rq->cmd_flags & 0x03; int bytes; if (rq->cmd_flags & REQ_DISCARD) rw |= REQ_DISCARD; bytes = blk_rq_bytes(rq); blk_fill_rwbs(rwbs, rw, bytes); }
void blk_fill_rwbs_rq(char *rwbs, struct request *rq) { int rw = rq->cmd_flags & 0x03; int bytes; if (blk_discard_rq(rq)) rw |= (1 << BIO_RW_DISCARD); bytes = blk_rq_bytes(rq); blk_fill_rwbs(rwbs, rw, bytes); }
void blk_fill_rwbs_rq(char *rwbs, struct request *rq) { int rw = rq->cmd_flags & 0x03; int bytes; if (rq->cmd_flags & REQ_SYNC) rw |= (1 << BIO_RW_SYNCIO); if (rq->cmd_flags & REQ_META) rw |= (1 << BIO_RW_META); if (rq->cmd_flags & REQ_DISCARD) rw |= BIO_DISCARD; if (rq->cmd_flags & REQ_FLUSH) rw |= BIO_FLUSH; if (rq->cmd_flags & REQ_FUA) rw |= BIO_FUA; bytes = blk_rq_bytes(rq); blk_fill_rwbs(rwbs, rw, bytes); }