block: add bio_rw_flagged() for testing bio->bi_rw
authorJens Axboe <jens.axboe@oracle.com>
Tue, 6 Jan 2009 08:21:49 +0000 (09:21 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 30 Jan 2009 11:34:37 +0000 (12:34 +0100)
commit1dfa17f4ab8543d82caf4d36636b93916a18f456
treebce24202f9f4d9b0d82cd5303dcfa5ccf4dc6886
parent213d9417fec62ef4c3675621b9364a667954d4dd
block: add bio_rw_flagged() for testing bio->bi_rw

The existing functions for checking bio->bi_rw are badly named. So lets
mirror what we do for bio->bi_flags testing, use a properly named
function so that it's immediately obvious what is being tested.

Maintain compatability names for the old macros, eventually we'll get
rid of these.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/bio.h