Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp642630ybz; Wed, 22 Apr 2020 05:21:08 -0700 (PDT) X-Google-Smtp-Source: APiQypIzymuVqgUM2A3tRyohYVJvzg3hVuCPHiCynx8F/2R8+rkUHQcEwhgj6qxwgz+OB1Ig9qz0 X-Received: by 2002:aa7:c2ce:: with SMTP id m14mr24291109edp.305.1587558068132; Wed, 22 Apr 2020 05:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587558068; cv=none; d=google.com; s=arc-20160816; b=aeR/in+12RHFBs4sP5xO6abzcxwPxqObdowROZVQui3BwxFOZJKfQYzzASwHCwQ1AQ DYCW/f9o6q+ZCfqckcjIcM5vJp7rDGqT8qWNA3BTNRlsz+zIGRd0rlGg1qorj2oQuzs9 U/OiC/9KWAKMdGQKL5zWKKVJfvvt5XG3IuspYWpdjLKWq4uJi6P/j9a/cj4vBjFTk9Ub VK8zPWw0uVO1E0JElqfGILqkTmwenE18EemC3ZJBjV8D1wN9RX5j093gSxDNSOmvb/F7 exjkMwLa+2kHdGpulQY7v7K7Mb/tz/EMEQr5gxl/+stbB9oF67h5WGC7Ok/YzvygPJAn LHmQ== 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=Sp8GojkK/S+A5tE7tXrPbGX7pZMFqPW8bu2zPgrLTHk=; b=GZZWIW7mWY73P4rNEePhGEGTKDZiywjD6GmAw395O0Xd+OZ77X0vN7sto5jwM3Qy6G VnhgKpVO5dCJS1Pv4H7+ml3UKolhLP+kp1XNBSbsnFqiZfoZjNyL2PG+IHTlKUuL5D43 /MUvlxu/C9jbWm+f/Eg3srWMxJ/zrriGoVsZcs6wTTNPoEfHp8JbEHUll+7qwx/MGIUC nXEDqwfiWijrUx4Ol+JgrY+oZzW9asbUZCkP1cOvQYlTaZfF5EB7ZaizlJU4440EEBHY 7qx01gNwGB3dH3DQOkpwd4UrmhxxNbjUYpMSdT3aEBEMJNegeuaYpVldrCQse8XwS906 nY5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e8hta4oa; 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 u18si3564755ejx.502.2020.04.22.05.20.43; Wed, 22 Apr 2020 05:21:08 -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=e8hta4oa; 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 S1729727AbgDVKPf (ORCPT + 99 others); Wed, 22 Apr 2020 06:15:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:50680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729627AbgDVKPZ (ORCPT ); Wed, 22 Apr 2020 06:15:25 -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 B1CA120575; Wed, 22 Apr 2020 10:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587550524; bh=SQIfffQX5o8Mt9NxkBRbUKPPSH7GU2Dpva5qCWMzl8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e8hta4oayfluRV0c37Rh1usC3M4t7+aiQsHksczHTX9UmKQrl7w9edu+tvjECc5Gt Y8P0yRXINlztzY14fKuWhtqb58LFd8bMT+l7Bh5GKiBtylTmGTP/ii7Mxq93qk2iy9 0ILKCqX6F8C8Ubvafh86QVeRx9gYcfjtWDvZwwAk= 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 4.19 50/64] ext2: fix debug reference to ext2_xattr_cache Date: Wed, 22 Apr 2020 11:57:34 +0200 Message-Id: <20200422095021.834590396@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200422095008.799686511@linuxfoundation.org> References: <20200422095008.799686511@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 4439bfaf1c57f..bd1d68ff3a9f8 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c @@ -839,8 +839,7 @@ ext2_xattr_cache_insert(struct mb_cache *cache, struct buffer_head *bh) error = mb_cache_entry_create(cache, GFP_NOFS, hash, bh->b_blocknr, 1); 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