summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-11-01 09:40:10 -0400
committerJens Axboe <axboe@fb.com>2016-11-01 11:43:26 -0400
commit70fd76140a6cb63262bd47b68d57b42e889c10ee (patch)
tree0590b2ef1b89b6af6abb8da9d23d5d87991d74c8 /drivers/md/raid5.c
parenta2b809672ee6fcb4d5756ea815725b3dbaea654e (diff)
block,fs: use REQ_* flags directly
Remove the WRITE_* and READ_SYNC wrappers, and just use the flags directly. Where applicable this also drops usage of the bio_set_op_attrs wrapper. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 92ac251e91e6..70acdd379e44 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -913,7 +913,7 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
913 if (test_and_clear_bit(R5_Wantwrite, &sh->dev[i].flags)) { 913 if (test_and_clear_bit(R5_Wantwrite, &sh->dev[i].flags)) {
914 op = REQ_OP_WRITE; 914 op = REQ_OP_WRITE;
915 if (test_and_clear_bit(R5_WantFUA, &sh->dev[i].flags)) 915 if (test_and_clear_bit(R5_WantFUA, &sh->dev[i].flags))
916 op_flags = WRITE_FUA; 916 op_flags = REQ_FUA;
917 if (test_bit(R5_Discard, &sh->dev[i].flags)) 917 if (test_bit(R5_Discard, &sh->dev[i].flags))
918 op = REQ_OP_DISCARD; 918 op = REQ_OP_DISCARD;
919 } else if (test_and_clear_bit(R5_Wantread, &sh->dev[i].flags)) 919 } else if (test_and_clear_bit(R5_Wantread, &sh->dev[i].flags))