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