Return-Path: Received: from out5-smtp.messagingengine.com ([66.111.4.29]:36269 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755240AbeBOKHw (ORCPT ); Thu, 15 Feb 2018 05:07:52 -0500 Date: Thu, 15 Feb 2018 11:07:54 +0100 From: Greg KH To: Nikolay Borisov Cc: stable@vger.kernel.org Subject: Re: [PATCH] btrfs: Handle btrfs_set_extent_delalloc failure in fixup worker Message-ID: <20180215100754.GB29232@kroah.com> References: <1518686380-18159-1-git-send-email-nborisov@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518686380-18159-1-git-send-email-nborisov@suse.com> Sender: stable-owner@vger.kernel.org List-ID: On Thu, Feb 15, 2018 at 11:19:40AM +0200, Nikolay Borisov wrote: > This function was introduced by 247e743cbe6e ("Btrfs: Use async helpers > to deal with pages that have been improperly dirtied") and it didn't do > any error handling then. This function might very well fail in ENOMEM > situation, yet it's not handled, this could lead to inconsistent state. > So let's handle the failure by setting the mapping error bit. > > Signed-off-by: Nikolay Borisov > --- > > Here is the 4.4 backport for upstream commit > f3038ee3a3f1017a1cbe9907e31fa12d366c5dcb Thanks for all 3 of these, now queued up. greg k-h