* [RFC 1/1] fs/omfs/file.c: use mpage_readpage() instead of block_read_full_page()
@ 2015-05-22 21:22 Fabian Frederick
0 siblings, 0 replies; only message in thread
From: Fabian Frederick @ 2015-05-22 21:22 UTC (permalink / raw)
To: linux-kernel
Cc: Andrew Morton, Alexander Viro, Fabian Frederick, Bob Copeland,
linux-karma-devel
OMFS uses mpage_readpages() for .readpages which proves it's based on pagecache.
Use mpage_readpage() instead of slower bh based block_read_full_page()
for .readpage.
Is there some test I could link to the patch changelog ?
(.readpage seems mainly used in mm/filemap)
Regards,
Fabian
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
fs/omfs/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/omfs/file.c b/fs/omfs/file.c
index d9e26cf..672d3c2 100644
--- a/fs/omfs/file.c
+++ b/fs/omfs/file.c
@@ -286,7 +286,7 @@ out:
static int omfs_readpage(struct file *file, struct page *page)
{
- return block_read_full_page(page, omfs_get_block);
+ return mpage_readpage(page, omfs_get_block);
}
static int omfs_readpages(struct file *file, struct address_space *mapping,
--
2.4.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-22 21:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 21:22 [RFC 1/1] fs/omfs/file.c: use mpage_readpage() instead of block_read_full_page() Fabian Frederick
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.