Re: [PATCH] btrfs: Return EAGAIN if we can't start no snpashot write in check_can_nocow

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

 



On Tue, May 07, 2019 at 10:23:46AM +0300, Nikolay Borisov wrote:
> The first thing code does in check_can_nocow is trying to block
> concurrent snapshots. If this fails (due to snpashot already being in
> progress) the function returns ENOSPC which makes no sense. Instead
> return EAGAIN. Despite this return value not being propagated to callers
> it's good practice to return the closest in terms of semantics error
> code. No functional changes.
> 
> Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx>

Added to 5.3 queue, thanks.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux