btrfs: make orphan cleanup less verbose
authorDavid Sterba <dsterba@suse.cz>
Wed, 20 Mar 2013 13:31:27 +0000 (13:31 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:24 +0000 (15:54 -0400)
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.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/inode.c

index 84f056e5d3db3a8fe90ddf8aae2c240adc78fe5b..3f3129173b2664f7faeea87e6a782bde59003a2d 100644 (file)
@@ -3239,9 +3239,9 @@ int btrfs_orphan_cleanup(struct btrfs_root *root)
        }
 
        if (nr_unlink)
-               btrfs_info(root->fs_info, "unlinked %d orphans", nr_unlink);
+               btrfs_debug(root->fs_info, "unlinked %d orphans", nr_unlink);
        if (nr_truncate)
-               btrfs_info(root->fs_info, "truncated %d orphans", nr_truncate);
+               btrfs_debug(root->fs_info, "truncated %d orphans", nr_truncate);
 
 out:
        if (ret)