The patch titled squashfs: fix breakage when pagesize > blocksize has been added to the -mm tree. Its filename is squashfs-fix-breakage-when-pagesize-blocksize.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: squashfs: fix breakage when pagesize > blocksize From: Doug Chapman <doug.chapman@xxxxxx> Squashfs is broken on any system where the pageszie is larger than either the block size of the squashfs image or larger than the metadata size (8192). This is easily fixed by ensuring cache->pages is always > 0. Signed-off-by: Doug Chapman <doug.chapman@xxxxxx> Cc: Phillip Lougher <phillip@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/squashfs/cache.c | 1 + 1 file changed, 1 insertion(+) diff -puN fs/squashfs/cache.c~squashfs-fix-breakage-when-pagesize-blocksize fs/squashfs/cache.c --- a/fs/squashfs/cache.c~squashfs-fix-breakage-when-pagesize-blocksize +++ a/fs/squashfs/cache.c @@ -252,6 +252,7 @@ struct squashfs_cache *squashfs_cache_in cache->entries = entries; cache->block_size = block_size; cache->pages = block_size >> PAGE_CACHE_SHIFT; + cache->pages = cache->pages?cache->pages:1; cache->name = name; cache->num_waiters = 0; spin_lock_init(&cache->lock); _ Patches currently in -mm which might be from doug.chapman@xxxxxx are squashfs-fix-breakage-when-pagesize-blocksize.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html