lkml.org 
[lkml]   [2013]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 5/6] Squashfs: restructure squashfs_readpage()
On Thu, Nov 07, 2013 at 08:24:24PM +0000, Phillip Lougher wrote:
> Restructure squashfs_readpage() splitting it into separate
> functions for datablocks, fragments and sparse blocks.
>
> Move the memcpying (from squashfs cache entry) implementation of
> squashfs_readpage_block into file_cache.c
>
> This allows different implementations to be supported.
>
> Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
> ---
> fs/squashfs/Makefile | 2 +-
> fs/squashfs/file.c | 142 +++++++++++++++++++++++-----------------------
> fs/squashfs/file_cache.c | 38 +++++++++++++
> fs/squashfs/squashfs.h | 7 +++
> 4 files changed, 118 insertions(+), 71 deletions(-)
> create mode 100644 fs/squashfs/file_cache.c
>
> diff --git a/fs/squashfs/Makefile b/fs/squashfs/Makefile
> index 5833b96..908c0d9 100644
> --- a/fs/squashfs/Makefile
> +++ b/fs/squashfs/Makefile
> @@ -4,7 +4,7 @@
>
> obj-$(CONFIG_SQUASHFS) += squashfs.o
> squashfs-y += block.o cache.o dir.o export.o file.o fragment.o id.o inode.o
> -squashfs-y += namei.o super.o symlink.o decompressor.o
> +squashfs-y += namei.o super.o symlink.o decompressor.o file_cache.c

file_cache.o

--
Kind regards,
Minchan Kim


\
 
 \ /
  Last update: 2013-11-08 07:41    [W:0.075 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site