All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove needless flush_dcache_page call
@ 2009-01-16  5:28 ` MinChan Kim
  0 siblings, 0 replies; 22+ messages in thread
From: MinChan Kim @ 2009-01-16  5:28 UTC (permalink / raw)
  To: linux-kernel, linux-mm, linux-fsdevel; +Cc: npiggin, akpm

Now, Anyone don't maintain cramfs.
I don't know who is maintain romfs. so I send this patch to linux-mm, 
lkml, linux-dev. 

I am not sure my thought is right. 

When readpage is called, page with argument in readpage is just new 
allocated because kernel can't find that page in page cache. 

At this time, any user process can't map the page to their address space. 
so, I think D-cache aliasing probelm never occur. 

It make sense ?

---
diff --git a/arch/arm/mach-integrator/clock.h b/arch/arm/mach-integrator/clock.h
deleted file mode 100644
index e69de29..0000000
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c
index a07338d..40c8b84 100644
--- a/fs/cramfs/inode.c
+++ b/fs/cramfs/inode.c
@@ -492,7 +492,6 @@ static int cramfs_readpage(struct file *file, struct page * page)
 		pgdata = kmap(page);
 	memset(pgdata + bytes_filled, 0, PAGE_CACHE_SIZE - bytes_filled);
 	kunmap(page);
-	flush_dcache_page(page);
 	SetPageUptodate(page);
 	unlock_page(page);
 	return 0;
diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c
index 98a232f..d008262 100644
--- a/fs/romfs/inode.c
+++ b/fs/romfs/inode.c
@@ -454,7 +454,6 @@ romfs_readpage(struct file *file, struct page * page)
 
 	if (!result)
 		SetPageUptodate(page);
-	flush_dcache_page(page);
 
 	unlock_page(page);

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

end of thread, other threads:[~2009-01-16 17:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16  5:28 [PATCH] Remove needless flush_dcache_page call MinChan Kim
2009-01-16  5:28 ` MinChan Kim
2009-01-16  5:33 ` Matthew Wilcox
2009-01-16  5:33   ` Matthew Wilcox
2009-01-16  5:51   ` MinChan Kim
2009-01-16  5:51     ` MinChan Kim
2009-01-16  5:57     ` Matthew Wilcox
2009-01-16  5:57       ` Matthew Wilcox
2009-01-16  6:08       ` MinChan Kim
2009-01-16  6:08         ` MinChan Kim
2009-01-16  6:13         ` Nick Piggin
2009-01-16  6:13           ` Nick Piggin
2009-01-16  6:16           ` MinChan Kim
2009-01-16  6:16             ` MinChan Kim
2009-01-16  5:59     ` Nick Piggin
2009-01-16  5:59       ` Nick Piggin
2009-01-16  6:01       ` Matthew Wilcox
2009-01-16  6:01         ` Matthew Wilcox
2009-01-16  7:34         ` Nick Piggin
2009-01-16 14:28           ` James Bottomley
2009-01-16 16:28             ` Kyle McMartin
2009-01-16 17:34             ` Grant Grundler

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.