mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
2a222ca992
commit
dfec8a14fc
21 changed files with 40 additions and 38 deletions
|
|
@ -1498,7 +1498,7 @@ static int journal_get_superblock(journal_t *journal)
|
|||
|
||||
J_ASSERT(bh != NULL);
|
||||
if (!buffer_uptodate(bh)) {
|
||||
ll_rw_block(READ, 1, &bh);
|
||||
ll_rw_block(REQ_OP_READ, 0, 1, &bh);
|
||||
wait_on_buffer(bh);
|
||||
if (!buffer_uptodate(bh)) {
|
||||
printk(KERN_ERR
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ static int do_readahead(journal_t *journal, unsigned int start)
|
|||
if (!buffer_uptodate(bh) && !buffer_locked(bh)) {
|
||||
bufs[nbufs++] = bh;
|
||||
if (nbufs == MAXBUF) {
|
||||
ll_rw_block(READ, nbufs, bufs);
|
||||
ll_rw_block(REQ_OP_READ, 0, nbufs, bufs);
|
||||
journal_brelse_array(bufs, nbufs);
|
||||
nbufs = 0;
|
||||
}
|
||||
|
|
@ -113,7 +113,7 @@ static int do_readahead(journal_t *journal, unsigned int start)
|
|||
}
|
||||
|
||||
if (nbufs)
|
||||
ll_rw_block(READ, nbufs, bufs);
|
||||
ll_rw_block(REQ_OP_READ, 0, nbufs, bufs);
|
||||
err = 0;
|
||||
|
||||
failed:
|
||||
|
|
|
|||
Loading…
Reference in a new issue