From: nikita Date: Tue, 21 Nov 2006 21:12:00 +0000 (+0000) Subject: iam: revert changes to IAM_LOOKUP_LAST that might caused spurious -ENOENT. X-Git-Tag: v1_8_0_110~486^2~103 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bf091d02a9c490c1058c2b635ed1a84fca9402b9;p=fs%2Flustre-release.git iam: revert changes to IAM_LOOKUP_LAST that might caused spurious -ENOENT. --- diff --git a/lustre/kernel_patches/patches/ext3-iam-separate.patch b/lustre/kernel_patches/patches/ext3-iam-separate.patch index 82a847b..7064248 100644 --- a/lustre/kernel_patches/patches/ext3-iam-separate.patch +++ b/lustre/kernel_patches/patches/ext3-iam-separate.patch @@ -2887,7 +2887,7 @@ Index: iam/fs/ext3/iam_lvar.c =================================================================== --- iam.orig/fs/ext3/iam_lvar.c +++ iam/fs/ext3/iam_lvar.c -@@ -0,0 +1,1045 @@ +@@ -0,0 +1,1042 @@ +/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- + * vim:expandtab:shiftwidth=8:tabstop=8: + * @@ -3315,7 +3315,7 @@ Index: iam/fs/ext3/iam_lvar.c + hash = get_hash(iam_leaf_container(leaf), name, namelen); + found = NULL; + found_equal = 0; -+ last = 0; ++ last = 1; + + for (scan = n_start(leaf); scan < end; scan = e_next(leaf, scan)) { + lvar_hash_t scan_hash; @@ -3330,12 +3330,9 @@ Index: iam/fs/ext3/iam_lvar.c + */ + leaf->il_at = lvar_lentry(scan); + return IAM_LOOKUP_EXACT; -+ } else { -+ if (!found_equal) { ++ } else if (!found_equal) { + found = scan; + found_equal = 1; -+ } -+ last = 1; + } + } else { + last = 0;