]> Pileus Git - ~andy/linux/commit
tmpfs: refine shmem_file_splice_read
authorHugh Dickins <hughd@google.com>
Tue, 26 Jul 2011 00:12:33 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:11 +0000 (20:57 -0700)
commit71f0e07a605fad1fb6b288e4dc1dd8dfa78f4872
tree1eac7c25f32ac88bba52a31179989e62773aa079
parent708e3508c2a2204cc276dcdb543009a441bfe91b
tmpfs: refine shmem_file_splice_read

Tidy up shmem_file_splice_read():

Remove readahead: okay, we could implement shmem readahead on swap,
but have never done so before, swap being the slow exceptional path.

Use shmem_getpage() instead of find_or_create_page() plus ->readpage().

Remove several comments: sorry, I found them more distracting than
helpful, and this will not be the reference version of splice_read().

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shmem.c