public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]fix the algorithm for addname in xfs_da_node_lookup_int
@ 2008-03-23  1:03 Kevin Xu
  2008-03-23  1:45 ` Eric Sandeen
  2008-03-24 22:47 ` David Chinner
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Xu @ 2008-03-23  1:03 UTC (permalink / raw)
  To: xfscn; +Cc: xfs

[-- Attachment #1: Type: text/plain, Size: 57 bytes --]

fix the algorithm for addname in xfs_da_node_lookup_int


[-- Attachment #2: usig-xfs-fix-080323.patch --]
[-- Type: text/x-patch, Size: 535 bytes --]

--- 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);



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-24 22:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-23  1:03 [PATCH]fix the algorithm for addname in xfs_da_node_lookup_int Kevin Xu
2008-03-23  1:45 ` Eric Sandeen
2008-03-23  3:05   ` Kevin Xu
2008-03-24 22:47 ` David Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox