Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp667200ybg; Mon, 1 Jun 2020 11:11:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfJx74v8Tz44VhHmpEGpHqRKHwk5PMC+m4PO7CGfsFL19ygsKoQHwHVn1toZEOykJEfEYl X-Received: by 2002:a50:9b0f:: with SMTP id o15mr23530770edi.325.1591035081170; Mon, 01 Jun 2020 11:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591035081; cv=none; d=google.com; s=arc-20160816; b=j3lWjUatMa2UjS8GszEaUIvzNYH6ZUQWtcIsUvT/T+PBQ2yWhZNxeZAfAnEYJhs50S 7+SBca9REFJiZVkqVgcAGofR7SEiJL5xA/CT71vPR/U5OMaEq0KzVXl4vu7tyGdJnS10 iG1JHyHE3JyGpg3xzLXbdr6YikGslSmbE2B7GWkOotF6XzbNC2dguA/DLU+mXb/RhLX0 uTVW+E6OUnlCbOIDCYqCIO6kEKvfz+g62Z13QhF3U6oyDHdKQZ8OkLtmOfcXNsKxCWva aQ1vbk9uMgr82vgkLvEmWBrX7AN7Sac5QDTuLdVH0ldtyGlPV50kzE1JSGeTfAi3eT6H giLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dul+lLbn7pbCAGL1AzcByphnP+6pe9G+x8NbUWUvims=; b=ED70mH/3sB8HgVS2OmNxL2K2zlrO6V507MS9ZsvcCK/yLU6+ZuWawI+QkcXS2Xv6IK Z5ZoH+PMajF3+VZ0JAO9G3mbiiR1kfeErTgcWnlMBR47e8h3ICQvMcu1s+DtnzUVcmtm +lIeNnAk0n5jGidx4qNEyqMN4y/TItVXN+0QL8ZWcF+hkupPObkrmw2yKl09Xe2HmKbp hZv+fTeBomCtiRcvk7sL/Nnt8DReGxtzhFLJWemjfNv9zZXkT/IV+LKIzZishW63I0TB tpOBZPfn0y2Jt9SzaZfJwoCJv74h270ifvUynaPxgqPHDfd2NPjWbEnKwRiZ8DmRjrL6 GmSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="trKx6/5x"; 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 bc12si68871edb.348.2020.06.01.11.10.56; Mon, 01 Jun 2020 11:11:21 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="trKx6/5x"; 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 S1730657AbgFASIB (ORCPT + 99 others); Mon, 1 Jun 2020 14:08:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:53478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730505AbgFASHe (ORCPT ); Mon, 1 Jun 2020 14:07:34 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CC49520872; Mon, 1 Jun 2020 18:07:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591034854; bh=UhDtEsXZBfYTv8NOSw/TS1Z9nSFflnCIyoBgaZZekUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=trKx6/5xoBeQPMDoAie3gwPlS9lDmvDDt4TbHE5/cEShAx9noYvmfMgtpygmxOU02 eCjv3diNk0C/EEvj5DzbGB+gT3idFUe68zDoyHBPvwRaJF9nXqBPu69RI+IWhzKgX8 i6eCeA5MIOjXlntmW+bXkx6yhiqlHI428+Y2kurs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bob Peterson , Andreas Gruenbacher , Sasha Levin Subject: [PATCH 5.4 042/142] gfs2: dont call quota_unhold if quotas are not locked Date: Mon, 1 Jun 2020 19:53:20 +0200 Message-Id: <20200601174042.295739367@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174037.904070960@linuxfoundation.org> References: <20200601174037.904070960@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bob Peterson [ Upstream commit c9cb9e381985bbbe8acd2695bbe6bd24bf06b81c ] Before this patch, function gfs2_quota_unlock checked if quotas are turned off, and if so, it branched to label out, which called gfs2_quota_unhold. With the new system of gfs2_qa_get and put, we no longer want to call gfs2_quota_unhold or we won't balance our gets and puts. Signed-off-by: Bob Peterson Signed-off-by: Andreas Gruenbacher Signed-off-by: Sasha Levin --- fs/gfs2/quota.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index cbee745169b8..91ca4920bf03 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -1113,7 +1113,7 @@ void gfs2_quota_unlock(struct gfs2_inode *ip) int found; if (!test_and_clear_bit(GIF_QD_LOCKED, &ip->i_flags)) - goto out; + return; for (x = 0; x < ip->i_qadata->qa_qd_num; x++) { struct gfs2_quota_data *qd; @@ -1150,7 +1150,6 @@ void gfs2_quota_unlock(struct gfs2_inode *ip) qd_unlock(qda[x]); } -out: gfs2_quota_unhold(ip); } -- 2.25.1