Skip to content

Commit c45fefe

Browse files
author
Andreas Gruenbacher
committed
gfs2: Fix gfs2_log_get_bio argument type
Fix the type of gfs2_log_get_bio()'s op argument: callers pass in a blk_opf_t value and the function passes that value on as a blk_opf_t value, so the current argument type makes no sense. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 08ca56f commit c45fefe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/gfs2/lops.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno,
277277
* @sdp: The super block
278278
* @blkno: The device block number we want to write to
279279
* @biop: The bio to get or allocate
280-
* @op: REQ_OP
280+
* @opf: REQ_OP | op_flags
281281
* @end_io: The bi_end_io callback
282282
* @flush: Always flush the current bio and allocate a new one?
283283
*
@@ -290,7 +290,7 @@ static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno,
290290
*/
291291

292292
static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno,
293-
struct bio **biop, enum req_op op,
293+
struct bio **biop, blk_opf_t opf,
294294
bio_end_io_t *end_io, bool flush)
295295
{
296296
struct bio *bio = *biop;
@@ -305,7 +305,7 @@ static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno,
305305
gfs2_log_submit_write(biop);
306306
}
307307

308-
*biop = gfs2_log_alloc_bio(sdp, blkno, end_io, op);
308+
*biop = gfs2_log_alloc_bio(sdp, blkno, end_io, opf);
309309
return *biop;
310310
}
311311

0 commit comments

Comments
 (0)