Skip to contentSkip to conversation

btrfs: make orphan cleanup less verbose

PATCH New David Sterba 1 participant 1 message Mar 20, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: make orphan cleanup less verbose

The messages

btrfs: unlinked 123 orphans
btrfs: truncated 456 orphans

are not useful to regular users and raise questions whether there are problems with the filesystem.

---
 fs/btrfs/inode.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/inode.c +2 -2
index 315a515..41a4d9c 100644
@@ -3221,9 +3221,9 @@ int btrfs_orphan_cleanup(struct btrfs_root *root)
 	}
 
 	if (nr_unlink)
-		printk(KERN_INFO "btrfs: unlinked %d orphans\n", nr_unlink);
+		printk(KERN_DEBUG "btrfs: unlinked %d orphans\n", nr_unlink);
 	if (nr_truncate)
-		printk(KERN_INFO "btrfs: truncated %d orphans\n", nr_truncate);
+		printk(KERN_DEBUG "btrfs: truncated %d orphans\n", nr_truncate);
 
 out:
 	if (ret)
Signature · 1 line
1.7.9