]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ext2: fix debug reference to ext2_xattr_cache
authorJan Kara <jack@suse.cz>
Tue, 17 Mar 2020 11:40:02 +0000 (12:40 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 14 May 2020 08:54:02 +0000 (10:54 +0200)
commite3b1cb6f6849d34f9c1805e0d99b0a84519a72c0
treee22cf31c1603b84070ad265835a9bebed8a1d4e8
parentf88763342a423992686a5f07afa8593df42d7e25
ext2: fix debug reference to ext2_xattr_cache

BugLink: https://bugs.launchpad.net/bugs/1875506
[ 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 <empty> 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 <rdunlap@infradead.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/ext2/xattr.c