]> git.baikalelectronics.ru Git - kernel.git/commit
Squashfs: fix breakage when page size > metadata block size
authorDoug Chapman <doug.chapman@hp.com>
Wed, 13 May 2009 01:56:39 +0000 (02:56 +0100)
committerPhillip Lougher <phillip@lougher.demon.co.uk>
Wed, 13 May 2009 01:56:39 +0000 (02:56 +0100)
commit2aa8d553dd2b615f74534dd4403558d7b6197a0c
tree596689185fb6ca381e185815a3f3179902cab9ba
parent5fb687ff7d3d55da79cbf686db194315a86580d9
Squashfs: fix breakage when page size > metadata block size

Squashfs is broken on any system where the page size is larger than
the metadata size (8192).  This is easily fixed by ensuring cache->pages
is always > 0.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Doug Chapman <doug.chapman@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
fs/squashfs/cache.c