From: anserper Date: Thu, 30 Jul 2009 21:17:07 +0000 (+0000) Subject: b=18362 X-Git-Tag: v1_8_2_01~1^2~193 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=04308283b7e54ff3cf8fe6709d09708927f94d40;p=fs%2Flustre-release.git b=18362 i=Johann Lombardi cleanup HAVE_I_ALLOC_SEM ifndef as we dont have any autoconf test for it anymore --- diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 102676f..ea39e68 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -1709,9 +1709,6 @@ void mds_reconstruct_generic(struct ptlrpc_request *req) * part thereof, because we don't have the inode to check for link * count/open status until after it is locked. * - * For lock ordering, caller must get child->i_mutex first, then - * pending->i_mutex before starting journal transaction. - * * returns 1 on success * returns 0 if we lost a race and didn't make a new link * returns negative on error @@ -1729,9 +1726,6 @@ static int mds_orphan_add_link(struct mds_update_record *rec, LASSERT(inode != NULL); LASSERT(!mds_inode_is_orphan(inode)); -#ifndef HAVE_I_ALLOC_SEM - LASSERT(TRYLOCK_INODE_MUTEX(inode) == 0); -#endif LASSERT(TRYLOCK_INODE_MUTEX(pending_dir) == 0); fidlen = ll_fid2str(fidname, inode->i_ino, inode->i_generation);