Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp610657pxb; Tue, 9 Feb 2021 08:18:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKP8m5Sb04gPbt5Gt6CpurGoNQbmtGfuo7rc12OPsgMVH8NwFr0shqzngr5KtQQ+WPmhGe X-Received: by 2002:aa7:de82:: with SMTP id j2mr23899780edv.313.1612887493233; Tue, 09 Feb 2021 08:18:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612887493; cv=none; d=google.com; s=arc-20160816; b=VpdgjKlDKZtduItTdYs9OSgNtwVXcoKReEnqKjqYT++MZxGG2TfBsPxLhvq9dJ5V68 mllu4a0iRhCyE+xpNgjukZXLisJVv42bjg92bP7BUqqrXiqSil0xbXqd1V/SgLnk68Qs hDsyIQqFEBCy2BU/XLaCzQW4KQSqpLPQrEBnA/+kuiMW5oVm3mfCL1p4ZjvM2KIm63EI PGythzxld7fLDJMnY0ss43APz1mi96GfhUDdhTzze0tFfJbfoP7esnQytmRhKBTexjRs bewAVNdb6pvikj5oytKmS6lPsffxp7bSWW7/rCSL1qvoJ5s/qMlMfmf9ZeNqdruWacxG mAeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date; bh=1Hdf1OPYCmkg30/1rnRkRK+QHqSyC4AK2FkoG/SLmWw=; b=DxAWPzizP85QPX/GHOqknF9jObCxERnRoLmr8JWXf/WX4Qv8U0C+r4louywcoAUUxG ZRZaWwAExVsOJ1qwfffAaYHAcRr0wKj+6uMp3B4ARX6pcaNaPwNR9hgN0i4Ti8wnyLuw NoBqrqFMh9UVasCx8HGJ9lWrK7/OlaLAhFsIGuH1ZJAC/ANObl+RpNzDGojY8iTZ2ZBG x9TxXOTJ9yCnuAJeLJeW4hod0UTUSAFbPpJ5Sl0Ty1ByKSDtBEzIcRVEOBY6XSmKJJrt eEH/MXSJ1GdXyNZnevvSyfI0g7Gz1hTa55w/iKKVEyo241RVGtFEtLvhYzkt/24f9H4N YF4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si4145963ejy.305.2021.02.09.08.17.40; Tue, 09 Feb 2021 08:18:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232425AbhBIQP2 (ORCPT + 99 others); Tue, 9 Feb 2021 11:15:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:49338 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbhBIQPQ (ORCPT ); Tue, 9 Feb 2021 11:15:16 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5A610AD2E; Tue, 9 Feb 2021 16:14:34 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 2F430DA7C8; Tue, 9 Feb 2021 17:12:41 +0100 (CET) Date: Tue, 9 Feb 2021 17:12:41 +0100 From: David Sterba To: Pan Bian Cc: David Sterba , Fabian Frederick , Al Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs/affs: release old buffer head on error path Message-ID: <20210209161240.GV1993@suse.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Pan Bian , David Sterba , Fabian Frederick , Al Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210120085113.118984-1-bianpan2016@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210120085113.118984-1-bianpan2016@163.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 12:51:13AM -0800, Pan Bian wrote: > The reference count of the old buffer head should be decremented on path > that fails to get the new buffer head. > > Fixes: 6b4657667ba0 ("fs/affs: add rename exchange") > Signed-off-by: Pan Bian Thanks, added to affs branch. The fix is not that urgent for 5.11 so I'll send it for the 5.12 merge window. I've added the stable tag so it'll propagate to 4.14+.