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

From: James Bottomley
Date: Sun May 23 2004 - 15:56:00 EST


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



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/