]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/buffer.c
buffer: add BH_Prio and BH_Meta flags
[karo-tx-linux.git] / fs / buffer.c
index b4dcb34c9635ae61b747bb9d4816477a49a8d90a..a15575c0b9eeab681c008bd85d9ab023a81b36ce 100644 (file)
@@ -2988,6 +2988,11 @@ int submit_bh(int rw, struct buffer_head * bh)
        /* Take care of bh's that straddle the end of the device */
        guard_bh_eod(rw, bio, bh);
 
+       if (buffer_meta(bh))
+               rw |= REQ_META;
+       if (buffer_prio(bh))
+               rw |= REQ_PRIO;
+
        bio_get(bio);
        submit_bio(rw, bio);