]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:02 +0000 (09:26 -0700)
commitb9cde88f39769f464346db07253ce926e671a6e7
tree335c0b7d85eace139ecc44ff93f09e20f4fadeae
parentcfc13c72f4642f811c159cceb921df69cd158725
Btrfs: use set_nlink if our i_nlink is 0

commit 9bf7a4890518186238d2579be16ecc5190a707c0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/tree-log.c