Skip to content

Commit 3230208

Browse files
committed
ext2: fix debug reference to ext2_xattr_cache
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: be0726d ("ext2: convert to mbcache2") Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent 3fc1316 commit 3230208

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/ext2/xattr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,7 @@ ext2_xattr_cache_insert(struct mb_cache *cache, struct buffer_head *bh)
872872
true);
873873
if (error) {
874874
if (error == -EBUSY) {
875-
ea_bdebug(bh, "already in cache (%d cache entries)",
876-
atomic_read(&ext2_xattr_cache->c_entry_count));
875+
ea_bdebug(bh, "already in cache");
877876
error = 0;
878877
}
879878
} else

0 commit comments

Comments
 (0)