lkml.org 
[lkml]   [2009]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 1/9] Squashfs: move zlib decompression wrapper code into a separate file
    On Mon, 07 Dec 2009 02:25:08 +0000
    Phillip Lougher <phillip@lougher.demon.co.uk> wrote:

    > +++ b/fs/squashfs/zlib_wrapper.c
    > @@ -0,0 +1,109 @@
    > +/*
    > + * Squashfs - a compressed read only filesystem for Linux
    > + *
    > + * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
    > + * Phillip Lougher <phillip@lougher.demon.co.uk>
    > + *
    > + * This program is free software; you can redistribute it and/or
    > + * modify it under the terms of the GNU General Public License
    > + * as published by the Free Software Foundation; either version 2,
    > + * or (at your option) any later version.
    > + *
    > + * This program is distributed in the hope that it will be useful,
    > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    > + * GNU General Public License for more details.
    > + *
    > + * You should have received a copy of the GNU General Public License
    > + * along with this program; if not, write to the Free Software
    > + * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    > + *
    > + * zlib_wrapper.c
    > + */
    > +
    > +
    > +#include <linux/mutex.h>
    > +#include <linux/buffer_head.h>
    > +#include <linux/zlib.h>
    > +
    > +#include "squashfs_fs.h"
    > +#include "squashfs_fs_sb.h"
    > +#include "squashfs_fs_i.h"
    > +#include "squashfs.h"
    > +
    > +int zlib_uncompress(struct squashfs_sb_info *msblk, void **buffer,
    > + struct buffer_head **bh, int b, int offset, int length, int srclength,
    > + int pages)
    This isn't a very good function name. zlib_uncompress() now becomes a
    kernel-wide identifier, but it's part of squashfs, not part of zlib.

    Maybe that gets fixed in a later patch. If so, thwap me.


    \
     
     \ /
      Last update: 2009-12-07 23:59    [W:0.026 / U:62.044 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site