commit | 9bf7a4890518186238d2579be16ecc5190a707c0 | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fusionio.com> | Fri Mar 01 13:35:47 2013 -0500 |
committer | Josef Bacik <jbacik@fusionio.com> | Mon Mar 04 16:30:06 2013 -0500 |
tree | ce4ca80d9aa36046dc671365950819adbae861fa | |
parent | d7011f5b9dd3c88feb5cebad7d0b719ed6816ebd [diff] |
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: Josef Bacik <jbacik@fusionio.com>