mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel/fork.c is broken by the new rmap
@ 2004-05-23 20:54 James Bottomley
  0 siblings, 0 replies; only message in thread
From: James Bottomley @ 2004-05-23 20:54 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton, Hugh Dickins; +Cc: Linux Kernel

If your architecture makes use of flush_dcache_mm_lock() then you get
this:

kernel/fork.c: In function `dup_mmap':
kernel/fork.c:336: `mapping' undeclared (first use in this function)
kernel/fork.c:336: (Each undeclared identifier is reported only once
kernel/fork.c:336: for each function it appears in.)

James

===== kernel/fork.c 1.181 vs edited =====
--- 1.181/kernel/fork.c	Sat May 22 16:56:30 2004
+++ edited/kernel/fork.c	Sun May 23 15:27:29 2004
@@ -333,9 +333,9 @@
       
 			/* insert tmp into the share list, just after mpnt */
 			spin_lock(&file->f_mapping->i_mmap_lock);
-			flush_dcache_mmap_lock(mapping);
+			flush_dcache_mmap_lock(file->f_mapping);
 			vma_prio_tree_add(tmp, mpnt);
-			flush_dcache_mmap_unlock(mapping);
+			flush_dcache_mmap_unlock(file->f_mapping);
 			spin_unlock(&file->f_mapping->i_mmap_lock);
 		}
 



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

only message in thread, other threads:[~2004-05-23 20:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-23 20:54 [PATCH] kernel/fork.c is broken by the new rmap James Bottomley

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

all inboxes | Powered by JetHome®