aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/bio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index a299ed38fcd7..4f8fd0221cd2 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -177,7 +177,10 @@ enum bio_rw_flags {
177 BIO_RW_NOIDLE, 177 BIO_RW_NOIDLE,
178}; 178};
179 179
180#define bio_rw_flagged(bio, flag) ((bio)->bi_rw & (1 << (flag))) 180static inline bool bio_rw_flagged(struct bio *bio, enum bio_rw_flags flag)
181{
182 return (bio->bi_rw & (1 << flag)) != 0;
183}
181 184
182/* 185/*
183 * Old defines, these should eventually be replaced by direct usage of 186 * Old defines, these should eventually be replaced by direct usage of