From 9c17dc9faeb573ffffcc3f5063105aa927b91bf2 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 28 Jul 2009 10:15:30 +0200 Subject: [PATCH] --- yaml --- r: 161205 b: refs/heads/master c: e7e503aedb1f4d165081cb8d47a58c38f80f0cb4 h: refs/heads/master i: 161203: 42a7f02edd16909e0c7c07b2af16138591abcabd v: v3 --- [refs] | 2 +- trunk/include/linux/bio.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 1ec8a74cf97d..d0a14bd1a0e6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e3264a4d7de147677f1995f119eba05c9abe9c1c +refs/heads/master: e7e503aedb1f4d165081cb8d47a58c38f80f0cb4 diff --git a/trunk/include/linux/bio.h b/trunk/include/linux/bio.h index a299ed38fcd7..4f8fd0221cd2 100644 --- a/trunk/include/linux/bio.h +++ b/trunk/include/linux/bio.h @@ -177,7 +177,10 @@ enum bio_rw_flags { BIO_RW_NOIDLE, }; -#define bio_rw_flagged(bio, flag) ((bio)->bi_rw & (1 << (flag))) +static inline bool bio_rw_flagged(struct bio *bio, enum bio_rw_flags flag) +{ + return (bio->bi_rw & (1 << flag)) != 0; +} /* * Old defines, these should eventually be replaced by direct usage of