Re: [PATCH 4/5] btrfs: add nowait parameter to btrfs_encoded_read

Jens Axboe
2024-10-14T22:12:30Z

On 10/14/24 11:18 AM, Mark Harmstone wrote:
> Adds a nowait parameter to btrfs_encoded_read, which if it is true
> causes the function to return -EAGAIN rather than sleeping.

Can't we just rely on kiocb->ki_flags & IOCB_NOWAIT for this?
Doesn't really change the patch much, but you do avoid that extra
parameter.

--
Jens Axboe