]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
f2fs: drop bio->bi_rw manual assignment
authorJens Axboe <axboe@fb.com>
Wed, 27 Jul 2016 18:52:21 +0000 (12:52 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 4 Aug 2016 20:19:16 +0000 (14:19 -0600)
Merge 4fc29c1aa375 included this extra line, but it's not needed (or
useful) since we'll bio_set_op_attrs() right after to properly set
the op and flags for the bio.

Signed-off-by: Jens Axboe <axboe@fb.com>
fs/f2fs/data.c

index e2624275d828c5d65885948e6426e8906e305a90..d64d2a515cb2ce1d162b8fd9c0c0e0e5e68a7fbb 100644 (file)
@@ -245,7 +245,6 @@ int f2fs_submit_page_bio(struct f2fs_io_info *fio)
                bio_put(bio);
                return -EFAULT;
        }
-       bio->bi_rw = fio->op_flags;
        bio_set_op_attrs(bio, fio->op, fio->op_flags);
 
        __submit_bio(fio->sbi, bio, fio->type);