Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp643405ybz; Wed, 22 Apr 2020 05:22:01 -0700 (PDT) X-Google-Smtp-Source: APiQypKo3obtU65RifDy5UvQMynfoY/stGWyaqQmpPcasId6EOxQpgWvNyH/vTOZshqwH4L2QBya X-Received: by 2002:a05:6402:1a2f:: with SMTP id be15mr13557666edb.385.1587558121097; Wed, 22 Apr 2020 05:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587558121; cv=none; d=google.com; s=arc-20160816; b=eV8wYl8UP8zfRFCIv3Qc0yG8zEPK7Ym3MfzcnFauLyAI4x5vYc4Ll5Enjjo5/88UBa Hzuzv3rxOEu4azavsq6fHYwNjLYUX+MUEDffiZv4Yg5pdl8j2UgOHY0tBPZ/BfXi91ye uQ5763Ur3213z8oGez4sTuOp/Vel67UsV9bkH5h21Hez5Pq6NV0G3m4ftl9Bylft0g89 WJw38MDrdweRVBUwDE4Xpy2I2LT+mAf0bm9xEh57gIGDXiNyGwTzVEGX9Rt9eEI8TwvI QS42XTCtmBGlywIFhvTC6N6tz20Hcfu+4qLO8y4BpU5MUdyGPVQuoNcgaA/vqF18r6rS xuWg== 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=/9QtYLbYNPdQN+dKpe5D+GnhLwioevTKkyTFuifnXvo=; b=UYmCN93SG2p0VYiLVMR+L454rAcf7sVT1Gw+WZ5T5uy9ySCW5+72nizoqa5Dyx/GPB ToLIm0HR3dQgwJ4wwmF/yv2u6mZnXWDheU6Z3BQKHYgN1hPKPqF1J8xaEU9+tyWzi+Bn NgqcA5coMlKxCSVwFZ2dRTs8G9HrGnbXNpqQYtrbUOrXPVfPdEtGRejkmDRXTRh9OuHJ i7mcmgmAcW/tmaLLwnBV+NZahl5AwPT+2o711XBJgri+E+BKFlGiB4w7tGbcBBL5KnSN 0cmJ50HmIBEHBoQYSxoD1xS9rG8i/8FAYUz0L2aYBt2rLegCQmBkJol8wV7CBwIQonSw paQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="cXTE01N/"; 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 cw2si3376226ejb.322.2020.04.22.05.21.38; Wed, 22 Apr 2020 05:22:01 -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="cXTE01N/"; 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 S1730548AbgDVK0a (ORCPT + 99 others); Wed, 22 Apr 2020 06:26:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:35354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730552AbgDVK02 (ORCPT ); Wed, 22 Apr 2020 06:26:28 -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 35EC32071E; Wed, 22 Apr 2020 10:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587551187; bh=5Ci5tuTv9+UalY7YeLpOUErdM7aSS+N8D1vX52ppM9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cXTE01N/SH2u7BORnPqqYBCXzhZQVfV+hdrHh6ILaVRqbDJTKxQaIilYzyK0EY4fM AxRQSGXt9Zjs2Qw/+W+bBGKIt/o+gXBfOZTBqPEh+rWYn1B958a0JgW+7ps6B0m021 yMM3vnSP0yLQ5auo6/uhdJIIHDx1JOp+cfHgLLHk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Jan Kara , Sasha Levin Subject: [PATCH 5.6 136/166] ext2: fix debug reference to ext2_xattr_cache Date: Wed, 22 Apr 2020 11:57:43 +0200 Message-Id: <20200422095103.180768662@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200422095047.669225321@linuxfoundation.org> References: <20200422095047.669225321@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: Jan Kara [ Upstream commit 32302085a8d90859c40cf1a5e8313f575d06ec75 ] Fix a debug-only build error in ext2/xattr.c: When building without extra debugging, (and with another patch that uses no_printk() instead of for the ext2-xattr debug-print macros, this build error happens: ../fs/ext2/xattr.c: In function ‘ext2_xattr_cache_insert’: ../fs/ext2/xattr.c:869:18: error: ‘ext2_xattr_cache’ undeclared (first use in this function); did you mean ‘ext2_xattr_list’? atomic_read(&ext2_xattr_cache->c_entry_count)); Fix the problem by removing cached entry count from the debug message since otherwise we'd have to export the mbcache structure just for that. Fixes: be0726d33cb8 ("ext2: convert to mbcache2") Reported-by: Randy Dunlap Signed-off-by: Jan Kara Signed-off-by: Sasha Levin --- fs/ext2/xattr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index b91f99d9482e9..62acbe27d8bf4 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c @@ -865,8 +865,7 @@ ext2_xattr_cache_insert(struct mb_cache *cache, struct buffer_head *bh) true); if (error) { if (error == -EBUSY) { - ea_bdebug(bh, "already in cache (%d cache entries)", - atomic_read(&ext2_xattr_cache->c_entry_count)); + ea_bdebug(bh, "already in cache"); error = 0; } } else -- 2.20.1