Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161205
b: refs/heads/master
c: e7e503a
h: refs/heads/master
i:
  161203: 42a7f02
v: v3
  • Loading branch information
Jens Axboe committed Sep 11, 2009
1 parent 1b88dc8 commit 9c17dc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3264a4d7de147677f1995f119eba05c9abe9c1c
refs/heads/master: e7e503aedb1f4d165081cb8d47a58c38f80f0cb4
5 changes: 4 additions & 1 deletion trunk/include/linux/bio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c17dc9

Please sign in to comment.