Whamcloud - gitweb
LU-762 ldiskfs: don't drop directory nlink to 0
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 22 Oct 2011 00:44:31 +0000 (18:44 -0600)
committerJohann Lombardi <johann@whamcloud.com>
Mon, 24 Oct 2011 03:46:50 +0000 (23:46 -0400)
commit9500ebf6146dcd50dab094b502d4b50d0123296a
treeedcfa830a06a8d14a51657d3a25816a3b46316f0
parent2cb046bae71d38bf075285d177ab2f80045a5424
LU-762 ldiskfs: don't drop directory nlink to 0

When landing the nlink patch for ext4, for an unknown reason the
logic in ext4_dec_count() was changed from the ext3 version of
the patch.  It now drops the nlink = 0 temporarily and then
if it is a directory with nlink == 0 it increases nlink again.

Instead, only drop nlink if it is larger than 2.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Id4dd16d3764efdf6a7ea29da92de51398b300370
Reviewed-on: http://review.whamcloud.com/1579
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
ldiskfs/kernel_patches/patches/ext4-nlink-2.6-rhel5.patch [new file with mode: 0644]
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5-ext4.series