]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/buffer.c
[CIFS] cifs: Rename cERROR and cFYI to cifs_dbg
[karo-tx-linux.git] / fs / buffer.c
index 71578d69b82dbc6b2d84b53a8bcfc757db234a16..bc1fe14aaa3e4583aa351298fc9faa4f42d2d6a9 100644 (file)
@@ -865,8 +865,6 @@ try_again:
 
                /* Link the buffer to its page */
                set_bh_page(bh, page, offset);
-
-               init_buffer(bh, NULL, NULL);
        }
        return head;
 /*
@@ -2989,6 +2987,11 @@ int _submit_bh(int rw, struct buffer_head *bh, unsigned long bio_flags)
        /* 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);