Re: [PATCH] btrfs: use btrfsic_submit_bio instead of submit_bio in write_dev_flush

2017-08-18 Thread David Sterba
On Fri, Aug 18, 2017 at 04:38:07PM +0800, Lu Fengqi wrote: > Although this bio has no data attached, it will reach this condition > (bio->bi_opf & REQ_PREFLUSH) and then update the flush_gen of dev_state > in __btrfsic_submit_bio. So we should still submit it through integrity > checker.

[PATCH] btrfs: use btrfsic_submit_bio instead of submit_bio in write_dev_flush

2017-08-18 Thread Lu Fengqi
Although this bio has no data attached, it will reach this condition (bio->bi_opf & REQ_PREFLUSH) and then update the flush_gen of dev_state in __btrfsic_submit_bio. So we should still submit it through integrity checker. Otherwise, the integrity checker will throw the following warning when I