On 24.08.2017 17:43, Nikolay Borisov wrote:
>
>
> On 22.08.2017 23:00, josef@xxxxxxxxxxxxxx wrote:
>> From: Josef Bacik <jbacik@xxxxxx>
>>
>> Nikolay reported that generic/273 was failing currently with ENOSPC.
>> Turns out this is because we get to the point where the outstanding
>> reservations are greater than the pinned space on the fs. This is a
>> mistake, previously we used the current reservation amount in
>> may_commit_transaction, not the entire outstanding reservation amount.
>> Fix this to find the minimum byte size needed to make progress in
>> flushing, and pass that into may_commit_transaction. From there we can
>> make a smarter decision on whether to commit the transaction or not.
>> This fixes the failure in generic/273.
>>
>> Reported-by: Nikolay Borisov <nborisov@xxxxxxxx>
>> Signed-off-by: Josef Bacik <jbacik@xxxxxx>
>
> Reviewed-and-tested-by: Nikolay Borisov <nborisov@xxxxxxxx>
For this commit we might also add:
Fixes: 957780eb2788 ("Btrfs: introduce ticketed enospc infrastructure")
Cc: stable@xxxxxxxxxxxxxxx # 4.8
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html