public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Xu <cgxu.gg@gmail.com>
To: xfscn@googlegroups.com
Cc: xfs@oss.sgi.com
Subject: [PATCH]fix the algorithm for addname in xfs_da_node_lookup_int
Date: Sun, 23 Mar 2008 09:03:57 +0800	[thread overview]
Message-ID: <47E5AC7D.4080708@gmail.com> (raw)

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



             reply	other threads:[~2008-03-23  1:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-23  1:03 Kevin Xu [this message]
2008-03-23  1:45 ` [PATCH]fix the algorithm for addname in xfs_da_node_lookup_int Eric Sandeen
2008-03-23  3:05   ` Kevin Xu
2008-03-24 22:47 ` David Chinner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47E5AC7D.4080708@gmail.com \
    --to=cgxu.gg@gmail.com \
    --cc=xfs@oss.sgi.com \
    --cc=xfscn@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox