Skip to contentSkip to conversation

btrfs: remove overly verbose messages

PATCH In review Nikolay Borisov 3 participants 4 messages Jun 23, 2022 – Jun 24, 2022 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: remove overly verbose messages

The message "flagging fs with big metadata" doesn't really convey any useful information to users. Simply remove it.

---
 fs/btrfs/disk-io.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
fs/btrfs/disk-io.c +1 -5
index c3d92aadc820..8c34d08e3c64 100644
@@ -3508,12 +3508,8 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
 	 * Flag our filesystem as having big metadata blocks if they are bigger
 	 * than the page size.
 	 */
-	if (btrfs_super_nodesize(disk_super) > PAGE_SIZE) {
-		if (!(features & BTRFS_FEATURE_INCOMPAT_BIG_METADATA))
-			btrfs_info(fs_info,
-				"flagging fs with big metadata feature");
+	if (btrfs_super_nodesize(disk_super) > PAGE_SIZE)
 		features |= BTRFS_FEATURE_INCOMPAT_BIG_METADATA;
-	}
 
 	/*
 	 * mixed block groups end up with duplicate but slightly offset
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Nikolay Borisov

The message "flagging fs with big metadata" doesn't really convey any useful information to users. Simply remove it.

Disregard this, I see you've sent a patch changing it to debug level.

Reviewed-by on v1 1/1
#2 lore raw
In reply to Nikolay Borisov
Quoted 4 lines · Nikolay Borisov

The message "flagging fs with big metadata" doesn't really convey any useful information to users. Simply remove it.

THanks,
Qu

Quoted 22 lines
---
  fs/btrfs/disk-io.c | 6 +-----
  1 file changed, 1 insertion(+), 5 deletions(-)
fs/btrfs/disk-io.c +1 -5
index c3d92aadc820..8c34d08e3c64 100644
@@ -3508,12 +3508,8 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
  	 * Flag our filesystem as having big metadata blocks if they are bigger
  	 * than the page size.
  	 */
-	if (btrfs_super_nodesize(disk_super) > PAGE_SIZE) {
-		if (!(features & BTRFS_FEATURE_INCOMPAT_BIG_METADATA))
-			btrfs_info(fs_info,
-				"flagging fs with big metadata feature");
+	if (btrfs_super_nodesize(disk_super) > PAGE_SIZE)
  		features |= BTRFS_FEATURE_INCOMPAT_BIG_METADATA;
-	}
 
  	/*
  	 * mixed block groups end up with duplicate but slightly offset