Re: [PATCH v2] btrfs: clean up btrfs_dev_stat_inc() usage

2017-10-30 Thread David Sterba
On Sat, Oct 21, 2017 at 01:45:33AM +0800, Anand Jain wrote: > btrfs_end_bio() is using btrfs_dev_stat_inc() and then > btrfs_dev_stat_print_on_error() separately instead use > btrfs_dev_stat_inc_and_print() directly. > > As of now there isn't any bio in btrfs which is - a non-empty write and > als

[PATCH v2] btrfs: clean up btrfs_dev_stat_inc() usage

2017-10-20 Thread Anand Jain
btrfs_end_bio() is using btrfs_dev_stat_inc() and then btrfs_dev_stat_print_on_error() separately instead use btrfs_dev_stat_inc_and_print() directly. As of now there isn't any bio in btrfs which is - a non-empty write and also the REQ_PREFLUSH flag is set. So in actual the condition if (bio->b