Re: [PATCH v3] btrfs: not a disk error if the bio_add_page fails

2018-02-06 Thread David Sterba
On Fri, Jan 05, 2018 at 10:47:07AM +0800, Anand Jain wrote: > bio_add_page() can fail for logical reasons as from the bio_add_page() > comments:- 'This will only fail if either > bio->bi_vcnt == bio->bi_max_vecs or it's a cloned bio.' > Here as we have just allocated the bio, so both of those failu

[PATCH v3] btrfs: not a disk error if the bio_add_page fails

2018-01-04 Thread Anand Jain
bio_add_page() can fail for logical reasons as from the bio_add_page() comments:- 'This will only fail if either bio->bi_vcnt == bio->bi_max_vecs or it's a cloned bio.' Here as we have just allocated the bio, so both of those failures can't occur. So drop the check for fail. Which would also drop w