Re: [PATCH v2 13/21] block, blksnap: functions and structures for performing block I/O operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +	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.



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux