Btrfs: use set_nlink if our i_nlink is 0
authorJosef Bacik <jbacik@fusionio.com>
Fri, 1 Mar 2013 18:35:47 +0000 (13:35 -0500)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 4 Mar 2013 21:30:06 +0000 (16:30 -0500)
We need to inc the nlink of deleted entries when running replay so we can do the
unlink on the fs_root and get everything cleaned up and then have the orphan
cleanup do the right thing.  The problem is inc_nlink complains about this, even
thought it still does the right thing.  So use set_nlink() if our i_nlink is 0
to keep users from seeing the warnings during log replay.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>

No differences found