lkml.org 
[lkml]   [2022]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 13/21] block, blksnap: functions and structures for performing block I/O operations
> +	bio = bio_alloc_bioset(diff_region->bdev, nr_iovecs, opf, gfp_mask,
> + &diff_io_bioset);
> + if (unlikely(!bio)) {
> + if (is_nowait)
> + ret = -EAGAIN;
> + else
> + ret = -ENOMEM;
> + goto fail;

bio_alloc_bioset can't fail for the !is_nowait case.

\
 
 \ /
  Last update: 2022-12-15 11:07    [W:0.245 / U:3.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site