summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.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 /fs/f2fs/segment.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 'fs/f2fs/segment.c')
-rw-r--r--fs/f2fs/segment.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index fc886f008449..f1b4a1775ebe 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -259,7 +259,7 @@ static int __commit_inmem_pages(struct inode *inode,
259 .sbi = sbi, 259 .sbi = sbi,
260 .type = DATA, 260 .type = DATA,
261 .op = REQ_OP_WRITE, 261 .op = REQ_OP_WRITE,
262 .op_flags = WRITE_SYNC | REQ_PRIO, 262 .op_flags = REQ_SYNC | REQ_PRIO,
263 .encrypted_page = NULL, 263 .encrypted_page = NULL,
264 }; 264 };
265 bool submit_bio = false; 265 bool submit_bio = false;
@@ -420,7 +420,7 @@ repeat:
420 fcc->dispatch_list = llist_reverse_order(fcc->dispatch_list); 420 fcc->dispatch_list = llist_reverse_order(fcc->dispatch_list);
421 421
422 bio->bi_bdev = sbi->sb->s_bdev; 422 bio->bi_bdev = sbi->sb->s_bdev;
423 bio_set_op_attrs(bio, REQ_OP_WRITE, WRITE_FLUSH); 423 bio->bi_opf = REQ_OP_WRITE | REQ_PREFLUSH;
424 ret = submit_bio_wait(bio); 424 ret = submit_bio_wait(bio);
425 425
426 llist_for_each_entry_safe(cmd, next, 426 llist_for_each_entry_safe(cmd, next,
@@ -454,7 +454,7 @@ int f2fs_issue_flush(struct f2fs_sb_info *sbi)
454 454
455 atomic_inc(&fcc->submit_flush); 455 atomic_inc(&fcc->submit_flush);
456 bio->bi_bdev = sbi->sb->s_bdev; 456 bio->bi_bdev = sbi->sb->s_bdev;
457 bio_set_op_attrs(bio, REQ_OP_WRITE, WRITE_FLUSH); 457 bio->bi_opf = REQ_OP_WRITE | REQ_PREFLUSH;
458 ret = submit_bio_wait(bio); 458 ret = submit_bio_wait(bio);
459 atomic_dec(&fcc->submit_flush); 459 atomic_dec(&fcc->submit_flush);
460 bio_put(bio); 460 bio_put(bio);
@@ -1515,7 +1515,7 @@ void write_meta_page(struct f2fs_sb_info *sbi, struct page *page)
1515 .sbi = sbi, 1515 .sbi = sbi,
1516 .type = META, 1516 .type = META,
1517 .op = REQ_OP_WRITE, 1517 .op = REQ_OP_WRITE,
1518 .op_flags = WRITE_SYNC | REQ_META | REQ_PRIO, 1518 .op_flags = REQ_SYNC | REQ_META | REQ_PRIO,
1519 .old_blkaddr = page->index, 1519 .old_blkaddr = page->index,
1520 .new_blkaddr = page->index, 1520 .new_blkaddr = page->index,
1521 .page = page, 1521 .page = page,