Whamcloud - gitweb
LU-484 Don't do error cleanup in ext4_add_dot_dotdot()
authorNiu Yawei <niu@whamcloud.com>
Mon, 11 Jul 2011 06:50:15 +0000 (23:50 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 15 Jul 2011 15:48:22 +0000 (08:48 -0700)
commita34dd87e7e9b2b1dc3d838dc59c03f01b3df99c6
treed7710b55e40677f82908964d66a14126c71f91bf
parent2cf42237b46747308e5ee10cf027fe93a97d3690
LU-484 Don't do error cleanup in ext4_add_dot_dotdot()

The ext4_add_dot_dotdot() will do cleanup work (zeroing i_nlink, iput)
when ext4_bread() fails, that will mess up the i_nlink and i_count if
the ext4_add_dot_dotdot() is called from lustre.

The error cleanup work should be moved from ext4_add_dot_dotdot() to
it's caller: ext4_mkdir().

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I8e8a328c26bf5d603ca26c94a5a04cf8bd1c7b4f
Reviewed-on: http://review.whamcloud.com/1079
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ldiskfs/kernel_patches/patches/ext4_data_in_dirent-rhel6.patch
ldiskfs/kernel_patches/patches/ext4_data_in_dirent.patch