Skip to content
Commit 9bf7a489 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: use set_nlink if our i_nlink is 0



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: default avatarJosef Bacik <jbacik@fusionio.com>
parent d7011f5b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment