diff options
author | Mike Christie <mchristi@redhat.com> | 2016-06-05 15:31:56 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-07 15:41:38 -0400 |
commit | e1b1afa6f80172f8b5e9a629cbd16392ac66645e (patch) | |
tree | 145dc97c00a92b1867decacd612be9036e8fe00f /fs/gfs2/log.c | |
parent | 04d328defd06257bf386d58f359013e0ef329226 (diff) |
gfs2: 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>
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r-- | fs/gfs2/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c index 0ff028c15199..e58ccef09c91 100644 --- a/fs/gfs2/log.c +++ b/fs/gfs2/log.c | |||
@@ -657,7 +657,7 @@ static void log_write_header(struct gfs2_sbd *sdp, u32 flags) | |||
657 | struct gfs2_log_header *lh; | 657 | struct gfs2_log_header *lh; |
658 | unsigned int tail; | 658 | unsigned int tail; |
659 | u32 hash; | 659 | u32 hash; |
660 | int rw = WRITE_FLUSH_FUA | REQ_META; | 660 | int op_flags = WRITE_FLUSH_FUA | REQ_META; |
661 | struct page *page = mempool_alloc(gfs2_page_pool, GFP_NOIO); | 661 | struct page *page = mempool_alloc(gfs2_page_pool, GFP_NOIO); |
662 | enum gfs2_freeze_state state = atomic_read(&sdp->sd_freeze_state); | 662 | enum gfs2_freeze_state state = atomic_read(&sdp->sd_freeze_state); |
663 | lh = page_address(page); | 663 | lh = page_address(page); |
@@ -682,12 +682,12 @@ static void log_write_header(struct gfs2_sbd *sdp, u32 flags) | |||
682 | if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags)) { | 682 | if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags)) { |
683 | gfs2_ordered_wait(sdp); | 683 | gfs2_ordered_wait(sdp); |
684 | log_flush_wait(sdp); | 684 | log_flush_wait(sdp); |
685 | rw = WRITE_SYNC | REQ_META | REQ_PRIO; | 685 | op_flags = WRITE_SYNC | REQ_META | REQ_PRIO; |
686 | } | 686 | } |
687 | 687 | ||
688 | sdp->sd_log_idle = (tail == sdp->sd_log_flush_head); | 688 | sdp->sd_log_idle = (tail == sdp->sd_log_flush_head); |
689 | gfs2_log_write_page(sdp, page); | 689 | gfs2_log_write_page(sdp, page); |
690 | gfs2_log_flush_bio(sdp, rw); | 690 | gfs2_log_flush_bio(sdp, REQ_OP_WRITE, op_flags); |
691 | log_flush_wait(sdp); | 691 | log_flush_wait(sdp); |
692 | 692 | ||
693 | if (sdp->sd_log_tail != tail) | 693 | if (sdp->sd_log_tail != tail) |
@@ -738,7 +738,7 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, | |||
738 | 738 | ||
739 | gfs2_ordered_write(sdp); | 739 | gfs2_ordered_write(sdp); |
740 | lops_before_commit(sdp, tr); | 740 | lops_before_commit(sdp, tr); |
741 | gfs2_log_flush_bio(sdp, WRITE); | 741 | gfs2_log_flush_bio(sdp, REQ_OP_WRITE, 0); |
742 | 742 | ||
743 | if (sdp->sd_log_head != sdp->sd_log_flush_head) { | 743 | if (sdp->sd_log_head != sdp->sd_log_flush_head) { |
744 | log_flush_wait(sdp); | 744 | log_flush_wait(sdp); |