xfs
[Top] [All Lists]

[PATCH]fix the algorithm for addname in xfs_da_node_lookup_int

To: xfscn@xxxxxxxxxxxxxxxx
Subject: [PATCH]fix the algorithm for addname in xfs_da_node_lookup_int
From: Kevin Xu <cgxu.gg@xxxxxxxxx>
Date: Sun, 23 Mar 2008 09:03:57 +0800
Cc: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:content-type; bh=kiaNwe/B1/oZQpPPGRsyxGbnQQeNnErkWrsA5Bkx27I=; b=V/8riQ14s7LyfobnS6CVpRnMWwkEqTJNpEeElTNInwM+shdz1loBbU2jX2uzd50OUrTW/PWNfMDaXtPC5Tl/HUMBIl1a4N7yrDhQ8CTUk9RpCOGYStvQ/SWqEqfr2FjYG/NkgXsac3RWbSn3WYyF77iMH725Dxbxe4fvhvD/16U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:user-agent:mime-version:to:cc:subject:content-type; b=UoxM/X7V3pr/+3jptWVbkhbJmNcgKQ/y5TH3fi0oMZeEbwbQL7nRD8AuZJaYOUHi52EuE/5eBb83v9McAtx7NeG98fH2qBwx54SH4SZiMTe3NON9K7kVuoDWD2tLsBDWQX6q2NK7+uI3pfDIfizfY/lsmzKfhgJPgC7vsVAiZLU=
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
fix the algorithm for addname in xfs_da_node_lookup_int

--- linux-2.6-xfs/fs/xfs/xfs_da_btree.c 2007-09-21 14:14:35.000000000 +0800
+++ linux-xfs-usig/fs/xfs/xfs_da_btree.c        2008-03-23 08:19:13.583751436 
+0800
@@ -1161,7 +1161,7 @@ xfs_da_node_lookup_int(xfs_da_state_t *s
                        ASSERT(0);
                        return XFS_ERROR(EFSCORRUPTED);
                }
-               if (((retval == ENOENT) || (retval == ENOATTR)) &&
+               if ((((retval == ENOENT) && (state->extrablk.index == -1)) || 
(retval == ENOATTR)) &&
                    (blk->hashval == args->hashval)) {
                        error = xfs_da_path_shift(state, &state->path, 1, 1,
                                                         &retval);


<Prev in Thread] Current Thread [Next in Thread>