diff options
author | Mike Christie <mchristi@redhat.com> | 2016-06-05 15:31:43 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-07 15:41:38 -0400 |
commit | 2a222ca992c35aee1e83af428f3dd26a3f5d5d94 (patch) | |
tree | a5ff0a4f59f8fc44a276dd054ea04314eec1a043 /fs/nilfs2/btree.c | |
parent | f21508211d2b16e65821abd171378fa6ece126fe (diff) |
fs: have submit_bh users pass in op and flags separately
This has submit_bh users pass in the operation and flags separately,
so submit_bh_wbc 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/nilfs2/btree.c')
-rw-r--r-- | fs/nilfs2/btree.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nilfs2/btree.c b/fs/nilfs2/btree.c index eccb1c89ccbb..982d1e3df3a5 100644 --- a/fs/nilfs2/btree.c +++ b/fs/nilfs2/btree.c | |||
@@ -476,7 +476,8 @@ static int __nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, | |||
476 | sector_t submit_ptr = 0; | 476 | sector_t submit_ptr = 0; |
477 | int ret; | 477 | int ret; |
478 | 478 | ||
479 | ret = nilfs_btnode_submit_block(btnc, ptr, 0, READ, &bh, &submit_ptr); | 479 | ret = nilfs_btnode_submit_block(btnc, ptr, 0, REQ_OP_READ, 0, &bh, |
480 | &submit_ptr); | ||
480 | if (ret) { | 481 | if (ret) { |
481 | if (ret != -EEXIST) | 482 | if (ret != -EEXIST) |
482 | return ret; | 483 | return ret; |
@@ -492,7 +493,8 @@ static int __nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, | |||
492 | n > 0 && i < ra->ncmax; n--, i++) { | 493 | n > 0 && i < ra->ncmax; n--, i++) { |
493 | ptr2 = nilfs_btree_node_get_ptr(ra->node, i, ra->ncmax); | 494 | ptr2 = nilfs_btree_node_get_ptr(ra->node, i, ra->ncmax); |
494 | 495 | ||
495 | ret = nilfs_btnode_submit_block(btnc, ptr2, 0, READA, | 496 | ret = nilfs_btnode_submit_block(btnc, ptr2, 0, |
497 | REQ_OP_READ, REQ_RAHEAD, | ||
496 | &ra_bh, &submit_ptr); | 498 | &ra_bh, &submit_ptr); |
497 | if (likely(!ret || ret == -EEXIST)) | 499 | if (likely(!ret || ret == -EEXIST)) |
498 | brelse(ra_bh); | 500 | brelse(ra_bh); |