LWN.net Logo

tmpfs: simplify by splice instead of readpage

From:  Hugh Dickins <hughd@google.com>
To:  Andrew Morton <akpm@linux-foundation.org>
Subject:  [PATCH 0/7] tmpfs: simplify by splice instead of readpage
Date:  Thu, 9 Jun 2011 15:30:53 -0700 (PDT)
Message-ID:  <alpine.LSU.2.00.1106091529060.2200@sister.anvils>
Cc:  linux-kernel@vger.kernel.org, linux-mm@kvack.org
Archive-link:  Article, Thread

Here's a second patchset for mmotm, based on 30-rc2 plus the 14
in mm tmpfs and trunc changes, which were preparation for this.

Add shmem_file_splice_read(), remove shmem_readpage(), and
simplify: before advancing to the interesting radix_tree
conversion in the final patchset, to follow in a few days.

1/7 tmpfs: clone shmem_file_splice_read
2/7 tmpfs: refine shmem_file_splice_read
3/7 tmpfs: pass gfp to shmem_getpage_gfp
4/7 tmpfs: remove shmem_readpage
5/7 tmpfs: simplify prealloc_page
6/7 tmpfs: simplify filepage/swappage
7/7 tmpfs: simplify unuse and writepage

 fs/splice.c            |    4 
 include/linux/splice.h |    2 
 mm/shmem.c             |  549 ++++++++++++++++++++-------------------
 3 files changed, 299 insertions(+), 256 deletions(-)

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

Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds