All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dcache: is_subdir missed reset after seqretry
@ 2005-03-13  9:17 pmeda
  0 siblings, 0 replies; only message in thread
From: pmeda @ 2005-03-13  9:17 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm

dcache: is_subdir forgot to reset the result after seqretry.

Signed-Off-by: Prasanna Meda <pmeda@akamai.com>


--- aLinux/fs/dcache.c	Sun Mar 13 08:40:47 2005
+++ bLinux/fs/dcache.c	Sun Mar 13 08:56:27 2005
@@ -1532,7 +1532,6 @@
 	struct dentry * saved = new_dentry;
 	unsigned long seq;
 
-	result = 0;
 	/* need rcu_readlock to protect against the d_parent trashing due to
 	 * d_move
 	 */
@@ -1540,6 +1539,7 @@
         do {
 		/* for restarting inner loop in case of seq retry */
 		new_dentry = saved;
+		result = 0;
 		seq = read_seqbegin(&rename_lock);
 		for (;;) {
 			if (new_dentry != old_dentry) {
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-13  9:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-13  9:17 [PATCH] dcache: is_subdir missed reset after seqretry pmeda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.