Whamcloud - gitweb
b=22177 inc nlink by 2 instead of 1 in mds_orphan_add_link()
authorJohann Lombardi <johann@sun.com>
Fri, 5 Mar 2010 22:17:53 +0000 (23:17 +0100)
committerJohann Lombardi <johann@sun.com>
Fri, 5 Mar 2010 22:17:53 +0000 (23:17 +0100)
commit3129537c7f5da328abdc1cbd9cf5419ff8e2530c
treea660ef6e78210200b890fa031e9026e410ab3012
parent8121b6be6f98c0c6c78e3982c7e3d8c7cb9dda0e
b=22177 inc nlink by 2 instead of 1 in mds_orphan_add_link()

i=adilger
i=dmitry

Fix regression introduced by 19640.
ext3_inc_count() can reset nlink to 1 when the directory is indexed and
inode->i_nlink == 2. Work around the problem by incrementing nlink by 2
instead of 1.
lustre/mds/mds_reint.c
lustre/tests/sanity.sh