public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]fix fbno in  xfs_dir2_node_addname_int
@ 2008-03-23  0:51 Kevin Xu
  2008-03-24 22:16 ` David Chinner
  2009-04-13 21:48 ` Eric Sandeen
  0 siblings, 2 replies; 3+ messages in thread
From: Kevin Xu @ 2008-03-23  0:51 UTC (permalink / raw)
  To: xfscn; +Cc: xfs

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

if we didn't find a freespace block for our new entry  in the current 
freeindex block, 
return to the first freeindex block and continue to check.

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

--- linux-2.6-xfs/fs/xfs/xfs_dir2_node.c	2008-03-22 22:41:12.118699220 +0800
+++ linux-xfs-usig/fs/xfs/xfs_dir2_node.c	2008-03-22 22:48:07.694781678 +0800
@@ -1502,8 +1502,10 @@ xfs_dir2_node_addname_int(
 				 */
 				xfs_da_brelse(tp, fbp);
 				fbp = NULL;
-				if (fblk && fblk->bp)
+				if (fblk && fblk->bp) {
 					fblk->bp = NULL;
+					fbno = -1;
+				}
 			}
 		}
 	}


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

end of thread, other threads:[~2009-04-13 21:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-23  0:51 [PATCH]fix fbno in xfs_dir2_node_addname_int Kevin Xu
2008-03-24 22:16 ` David Chinner
2009-04-13 21:48 ` Eric Sandeen

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