]> Git Repo - linux.git/commitdiff
ext2: fix debug reference to ext2_xattr_cache
authorJan Kara <[email protected]>
Tue, 17 Mar 2020 11:40:02 +0000 (12:40 +0100)
committerJan Kara <[email protected]>
Tue, 17 Mar 2020 11:40:02 +0000 (12:40 +0100)
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 <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
fs/ext2/xattr.c

index 9ad07c7ef0b3fa31ea1a3552375b6638aee4c4d7..6d9731b0371502f1bba495bedb74e1ce8a59fd17 100644 (file)
@@ -872,8 +872,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
This page took 0.057383 seconds and 4 git commands to generate.