Skip to content

Commit

Permalink
btrfs: make orphan cleanup less verbose
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Sterba authored and Josef Bacik committed May 6, 2013
1 parent 5e2a4b2 commit 4884b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4884b47

Please sign in to comment.