Skip to contentSkip to conversation

kernel/fork.c is broken by the new rmap

PATCH New James Bottomley 1 participant 1 message May 23, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/fork.c is broken by the new rmap

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 =====

kernel/fork.c +2 -2
@@ -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);
 		}