The patch titled squashfs: fix breakage when pagesize > blocksize has been removed from the -mm tree. Its filename was squashfs-fix-breakage-when-pagesize-blocksize.patch This patch was dropped because it was merged into mainline or a subsystem tree 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. [akpm@xxxxxxxxxxxxxxxxxxxx: coding-style fixes] 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 origin.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