Whamcloud - gitweb
LU-762 ldiskfs: don't drop directory nlink to 0
authoryangsheng <ys@whamcloud.com>
Thu, 3 Nov 2011 18:25:42 +0000 (02:25 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 9 Jan 2012 19:30:41 +0000 (14:30 -0500)
commit2b8ce9a10ba89f26bc8042e93e806cebb8b45b4b
treeae2774dd66ad3ce6c9d1c1a2eef432f4e513211e
parentfb33d912a41b5ae64776537d0164818730b477da
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.

Change-Id: Ieeff3e45daea56f502848f9c2b0fb04f0a9d2b6d
Author: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1644
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel6.series