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>
This commit is contained in:

committed by
Jens Axboe

parent
2a222ca992
commit
dfec8a14fc
@@ -870,7 +870,7 @@ loop_next:
|
||||
*/
|
||||
if (buffer_dirty(bh) && unlikely(bh->b_page->mapping == NULL)) {
|
||||
spin_unlock(lock);
|
||||
ll_rw_block(WRITE, 1, &bh);
|
||||
ll_rw_block(REQ_OP_WRITE, 0, 1, &bh);
|
||||
spin_lock(lock);
|
||||
}
|
||||
put_bh(bh);
|
||||
@@ -1057,7 +1057,7 @@ static int flush_commit_list(struct super_block *s,
|
||||
if (tbh) {
|
||||
if (buffer_dirty(tbh)) {
|
||||
depth = reiserfs_write_unlock_nested(s);
|
||||
ll_rw_block(WRITE, 1, &tbh);
|
||||
ll_rw_block(REQ_OP_WRITE, 0, 1, &tbh);
|
||||
reiserfs_write_lock_nested(s, depth);
|
||||
}
|
||||
put_bh(tbh) ;
|
||||
@@ -2244,7 +2244,7 @@ abort_replay:
|
||||
}
|
||||
}
|
||||
/* read in the log blocks, memcpy to the corresponding real block */
|
||||
ll_rw_block(READ, get_desc_trans_len(desc), log_blocks);
|
||||
ll_rw_block(REQ_OP_READ, 0, get_desc_trans_len(desc), log_blocks);
|
||||
for (i = 0; i < get_desc_trans_len(desc); i++) {
|
||||
|
||||
wait_on_buffer(log_blocks[i]);
|
||||
@@ -2346,7 +2346,7 @@ static struct buffer_head *reiserfs_breada(struct block_device *dev,
|
||||
} else
|
||||
bhlist[j++] = bh;
|
||||
}
|
||||
ll_rw_block(READ, j, bhlist);
|
||||
ll_rw_block(REQ_OP_READ, 0, j, bhlist);
|
||||
for (i = 1; i < j; i++)
|
||||
brelse(bhlist[i]);
|
||||
bh = bhlist[0];
|
||||
|
Reference in New Issue
Block a user