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>
Fri, 11 Nov 2011 06:57:22 +0000 (01:57 -0500)
commit51f76e02e2a04070ff2125285642430f703962ac
tree91b4ddcec07ee7f7d805ca605bee1092d8554662
parent46672b2b5e0a42380d3e1e74d1d54fa5998dcab9
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