From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josef Bacik Subject: Re: block_rsv_check EAGAIN vs ENOSPC... Date: Tue, 24 Apr 2012 11:54:02 -0400 Message-ID: <20120424155402.GF3326@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Josef Bacik , Chris Mason , Linux BTRFS To: Daniel J Blueman Return-path: In-Reply-To: List-ID: On Tue, Apr 24, 2012 at 11:50:24PM +0800, Daniel J Blueman wrote: > With 3.4-rc4 under certain workloads, I see btrfs_block_rsv_check > return -ENOSPC. > > Since btrfs_block_rsv_check can only return -ENOSPC or 0, > relocation.c:3816 checks for -EAGAIN, which is either redundant or > should be -ENOSPC, which I initially suspected. > > Let me know which the behaviour should be and I'll get a patch tested and sent. > Yup you are right, thanks, Josef