hfsplus: use bio op accessors
Separate the op from the rq_flag_bits and have gfs2 set/get the bio using bio_set_op_attrs/bio_op. 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
50bfcd0cbf
commit
67ed25961c
@@ -112,7 +112,8 @@ static int hfs_parse_new_pmap(struct super_block *sb, void *buf,
|
||||
if ((u8 *)pm - (u8 *)buf >= buf_size) {
|
||||
res = hfsplus_submit_bio(sb,
|
||||
*part_start + HFS_PMAP_BLK + i,
|
||||
buf, (void **)&pm, READ);
|
||||
buf, (void **)&pm, REQ_OP_READ,
|
||||
0);
|
||||
if (res)
|
||||
return res;
|
||||
}
|
||||
@@ -136,7 +137,7 @@ int hfs_part_find(struct super_block *sb,
|
||||
return -ENOMEM;
|
||||
|
||||
res = hfsplus_submit_bio(sb, *part_start + HFS_PMAP_BLK,
|
||||
buf, &data, READ);
|
||||
buf, &data, REQ_OP_READ, 0);
|
||||
if (res)
|
||||
goto out;
|
||||
|
||||
|
Reference in New Issue
Block a user