diff options
author | Theodore Ts'o <tytso@mit.edu> | 2013-04-20 19:58:37 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-04-20 19:58:37 -0400 |
commit | 877f962c5edacfef60ab21cfed6d8d54ce25b8a6 (patch) | |
tree | 298d7667d0d66b06a4314a9df1c67fd188d66dba /fs/buffer.c | |
parent | 9f203507ed277ee86e3f76a15e09db1c92e40b94 (diff) |
buffer: add BH_Prio and BH_Meta flags
Add buffer_head flags so that buffer cache writebacks can be marked
with the the appropriate request flags, so that metadata blocks can be
marked appropriately in blktrace.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index b4dcb34c9635..a15575c0b9ee 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -2988,6 +2988,11 @@ int submit_bh(int rw, struct buffer_head * bh) | |||
2988 | /* Take care of bh's that straddle the end of the device */ | 2988 | /* Take care of bh's that straddle the end of the device */ |
2989 | guard_bh_eod(rw, bio, bh); | 2989 | guard_bh_eod(rw, bio, bh); |
2990 | 2990 | ||
2991 | if (buffer_meta(bh)) | ||
2992 | rw |= REQ_META; | ||
2993 | if (buffer_prio(bh)) | ||
2994 | rw |= REQ_PRIO; | ||
2995 | |||
2991 | bio_get(bio); | 2996 | bio_get(bio); |
2992 | submit_bio(rw, bio); | 2997 | submit_bio(rw, bio); |
2993 | 2998 | ||