summaryrefslogtreecommitdiffstats
path: root/fs/jbd2
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2016-06-05 15:31:44 -0400
committerJens Axboe <axboe@fb.com>2016-06-07 15:41:38 -0400
commitdfec8a14fc9043039e3c04807caf39dc71102816 (patch)
tree306adbd461707daf2ba64766964c534ff7ce4a8c /fs/jbd2
parent2a222ca992c35aee1e83af428f3dd26a3f5d5d94 (diff)
fs: have ll_rw_block users pass in op and flags separately
This has ll_rw_block users pass in the operation and flags separately, so ll_rw_block can setup the bio op and bi_rw flags on the bio that is submitted. Signed-off-by: Mike Christie <mchristi@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/jbd2')
-rw-r--r--fs/jbd2/journal.c2
-rw-r--r--fs/jbd2/recovery.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 2606de4fa661..34bc99637d5a 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -1498,7 +1498,7 @@ static int journal_get_superblock(journal_t *journal)
1498 1498
1499 J_ASSERT(bh != NULL); 1499 J_ASSERT(bh != NULL);
1500 if (!buffer_uptodate(bh)) { 1500 if (!buffer_uptodate(bh)) {
1501 ll_rw_block(READ, 1, &bh); 1501 ll_rw_block(REQ_OP_READ, 0, 1, &bh);
1502 wait_on_buffer(bh); 1502 wait_on_buffer(bh);
1503 if (!buffer_uptodate(bh)) { 1503 if (!buffer_uptodate(bh)) {
1504 printk(KERN_ERR 1504 printk(KERN_ERR
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c
index 805bc6bcd8ab..02dd3360cb20 100644
--- a/fs/jbd2/recovery.c
+++ b/fs/jbd2/recovery.c
@@ -104,7 +104,7 @@ static int do_readahead(journal_t *journal, unsigned int start)
104 if (!buffer_uptodate(bh) && !buffer_locked(bh)) { 104 if (!buffer_uptodate(bh) && !buffer_locked(bh)) {
105 bufs[nbufs++] = bh; 105 bufs[nbufs++] = bh;
106 if (nbufs == MAXBUF) { 106 if (nbufs == MAXBUF) {
107 ll_rw_block(READ, nbufs, bufs); 107 ll_rw_block(REQ_OP_READ, 0, nbufs, bufs);
108 journal_brelse_array(bufs, nbufs); 108 journal_brelse_array(bufs, nbufs);
109 nbufs = 0; 109 nbufs = 0;
110 } 110 }
@@ -113,7 +113,7 @@ static int do_readahead(journal_t *journal, unsigned int start)
113 } 113 }
114 114
115 if (nbufs) 115 if (nbufs)
116 ll_rw_block(READ, nbufs, bufs); 116 ll_rw_block(REQ_OP_READ, 0, nbufs, bufs);
117 err = 0; 117 err = 0;
118 118
119failed: 119failed: