]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not reset bio->bi_ops while writing bio
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 23 Aug 2017 18:15:09 +0000 (12:15 -0600)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Sep 2017 12:48:30 +0000 (14:48 +0200)
commit00f2f56dfe00260489a963cd71bbad2af1bb6c47
tree5cb4506a16f0faa6e97f62f6ee5e890f9eee8a78
parente0260b60d9536deec42b76f254172d74fba7a20c
Btrfs: do not reset bio->bi_ops while writing bio

flush_epd_write_bio() sets bio->bi_opf by itself to honor REQ_SYNC,
but it's not needed at all since bio->bi_opf has set up properly in
both __extent_writepage() and write_one_eb(), and in the case of
write_one_eb(), it also sets REQ_META, which we will lose in
flush_epd_write_bio().

This remove this unnecessary bio->bi_opf setting.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c