[PATCH 1/2] Squashfs: Let the number of fragments cached configurable

2017-10-18 Thread Qixuan Wu
Currently, squashfs fragments' cache size is only determined by config option CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE. Users have no way to change the value when they get the binary kernel. Now make it be configured during booting or inserting module. Signed-off-by: Qixuan Wu Signed-off-by: Chen Jie

[PATCH 1/2] Squashfs: add LZ4 compression support

2014-11-27 Thread Phillip Lougher
Add support for reading file systems compressed with the LZ4 compression algorithm. This patch adds the LZ4 decompressor wrapper code. Signed-off-by: Phillip Lougher --- fs/squashfs/lz4_wrapper.c | 142 + fs/squashfs/squashfs_fs.h |1 + 2 files c

Re: [PATCH 1/2] Squashfs: add LZ4 compression support

2013-07-21 Thread Joe Perches
On Mon, 2013-07-22 at 03:21 +0100, Phillip Lougher wrote: > Add support for reading file systems compressed with the > LZ4 compression algorithm. Some whitespace trivia and a naming comment. > diff --git a/fs/squashfs/lz4_wrapper.c b/fs/squashfs/lz4_wrapper.c [] > +static void *lz4_init(struct sq

[PATCH 1/2] Squashfs: add LZ4 compression support

2013-07-21 Thread Phillip Lougher
Add support for reading file systems compressed with the LZ4 compression algorithm. This patch adds the LZ4 decompressor wrapper code. Signed-off-by: Phillip Lougher --- fs/squashfs/lz4_wrapper.c | 163 + fs/squashfs/squashfs_fs.h |1 + 2 files c

Re: Function stack size usage (was [PATCH][1/2] SquashFS)

2005-03-20 Thread Andrew Morton
Phillip Lougher <[EMAIL PROTECTED]> wrote: > > Andrew Morton wrote: > > Phillip Lougher <[EMAIL PROTECTED]> wrote: > >> > >>+static struct inode *squashfs_iget(struct super_block *s, squashfs_inode > >>inode) > >>+{ > >>+ struct inode *i; > >>+ squashfs_sb_info *msBlk = (squashfs_sb_info *)s->

Function stack size usage (was [PATCH][1/2] SquashFS)

2005-03-20 Thread Phillip Lougher
Andrew Morton wrote: Phillip Lougher <[EMAIL PROTECTED]> wrote: +static struct inode *squashfs_iget(struct super_block *s, squashfs_inode inode) +{ + struct inode *i; + squashfs_sb_info *msBlk = (squashfs_sb_info *)s->s_fs_info; + squashfs_super_block *sBlk = &msBlk->sBlk; +

Re: [PATCH][1/2] SquashFS

2005-03-17 Thread jerome lacoste
On Tue, 15 Mar 2005 17:50:02 -0800, Junio C Hamano <[EMAIL PROTECTED]> wrote: > > "PJ" == Paul Jackson <[EMAIL PROTECTED]> writes: > > PJ> There is not a concensus (nor a King Penguin dictate) between the > PJ> "while(1)" and "for(;;)" style to document. > > FWIW, linux-0.01 has four uses of

Re: [PATCH][1/2] SquashFS

2005-03-15 Thread Paul Jackson
> the King Penguin used these two constructs with consistency: Nice distinction - thanks. -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <[EMAIL PROTECTED]> 1.650.933.1373, 1.925.600.0401 - To unsubscribe

Re: [PATCH][1/2] SquashFS

2005-03-15 Thread Junio C Hamano
> "PJ" == Paul Jackson <[EMAIL PROTECTED]> writes: PJ> There is not a concensus (nor a King Penguin dictate) between the PJ> "while(1)" and "for(;;)" style to document. FWIW, linux-0.01 has four uses of "while (1)" and two uses of "for (;;)" ;-). ./fs/inode.c: while (1) { ./fs/namei.c: w

Re: [PATCH][1/2] SquashFS

2005-03-15 Thread Paul Jackson
> >>Shouldn't issues like this be in the coding style document? There is not a concensus (nor a King Penguin dictate) between the "while(1)" and "for(;;)" style to document. If this were a frequently asked question, I suppose someone would eventually note in a coding style doc that either style i

Re: [PATCH][1/2] SquashFS

2005-03-15 Thread Phillip Lougher
Matt Mackall wrote: On Tue, Mar 15, 2005 at 03:50:26PM +, Phillip Lougher wrote: Paul Jackson wrote: In the overall kernel (Linus's bk tree) I count: 733 lines matching 'for *( *; *; *)' 718 lines matching 'while *( *1 *)' In the kernel/*.c files, I count 15 of the 'for(;;)' sty

Re: [PATCH][1/2] SquashFS

2005-03-15 Thread Matt Mackall
On Tue, Mar 15, 2005 at 03:50:26PM +, Phillip Lougher wrote: > Paul Jackson wrote: > >In the overall kernel (Linus's bk tree) I count: > > > > 733 lines matching 'for *( *; *; *)' > > 718 lines matching 'while *( *1 *)' > > > >In the kernel/*.c files, I count 15 of the 'for(;;)' style a

Re: [PATCH][1/2] SquashFS

2005-03-15 Thread Phillip Lougher
Paul Jackson wrote: In the overall kernel (Linus's bk tree) I count: 733 lines matching 'for *( *; *; *)' 718 lines matching 'while *( *1 *)' In the kernel/*.c files, I count 15 of the 'for(;;)' style and 1 of the 'while(1)' style. Certainly the 'for(;;)' style is acceptable, and ev

Re: [PATCH][1/2] SquashFS

2005-03-15 Thread Paul Jackson
In the overall kernel (Linus's bk tree) I count: 733 lines matching 'for *( *; *; *)' 718 lines matching 'while *( *1 *)' In the kernel/*.c files, I count 15 of the 'for(;;)' style and 1 of the 'while(1)' style. Certainly the 'for(;;)' style is acceptable, and even slightly to su

Re: [PATCH][1/2] SquashFS

2005-03-14 Thread Matt Mackall
On Tue, Mar 15, 2005 at 12:47:23PM +1100, Nick Piggin wrote: > Matt Mackall wrote: > > >>+ for (;;) { > > > >while (1) > > I always thought for (;;) was preferred. Or at least acceptable? The for (;;) form has always struck me as needlessly clever and I've known it to puzzle coworkers. I try t

Re: [PATCH][1/2] SquashFS

2005-03-14 Thread Nick Piggin
Matt Mackall wrote: + for (;;) { while (1) I always thought for (;;) was preferred. Or at least acceptable? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.h

Re: [PATCH][1/2] SquashFS

2005-03-14 Thread Andrew Morton
Phillip Lougher <[EMAIL PROTECTED]> wrote: > > Please apply the following two patches which adds SquashFS to the > kernel. > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include >

Re: [PATCH][1/2] SquashFS

2005-03-14 Thread Matt Mackall
A quick skim... > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. > + * > + * inode.c > + */ > + > +#include > +#include > +#include

[PATCH][1/2] SquashFS

2005-03-14 Thread Phillip Lougher
Andrew, Greg, Please apply the following two patches which adds SquashFS to the kernel. SquashFS is self contained compressed filesystem, and it has been used by a large amount of projects over the last few years without problems. A number of people have started to ask me to submit it to the kerne