The quilt patch titled Subject: Squashfs: don't allocate fragment caches more than fragments has been removed from the -mm tree. Its filename was squashfs-dont-allocate-fragment-caches-more-than-fragments.patch This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: pangliyuan <pangliyuan1@xxxxxxxxxx> Subject: Squashfs: don't allocate fragment caches more than fragments Date: Tue, 10 Dec 2024 17:08:42 +0800 Sometimes the actual number of fragments in image is between 0 and SQUASHFS_CACHED_FRAGMENTS, which cause additional fragment caches to be allocated. Sets the number of fragment caches to the minimum of fragments and SQUASHFS_CACHED_FRAGMENTS. Link: https://lkml.kernel.org/r/20241210090842.160853-1-pangliyuan1@xxxxxxxxxx Signed-off-by: pangliyuan <pangliyuan1@xxxxxxxxxx> Reviewed-by: Phillip Lougher <phillip@xxxxxxxxxxxxxxx> Cc: <wangfangpeng1@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/squashfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/squashfs/super.c~squashfs-dont-allocate-fragment-caches-more-than-fragments +++ a/fs/squashfs/super.c @@ -405,7 +405,7 @@ handle_fragments: goto check_directory_table; msblk->fragment_cache = squashfs_cache_init("fragment", - SQUASHFS_CACHED_FRAGMENTS, msblk->block_size); + min(SQUASHFS_CACHED_FRAGMENTS, fragments), msblk->block_size); if (msblk->fragment_cache == NULL) { err = -ENOMEM; goto failed_mount; _ Patches currently in -mm which might be from pangliyuan1@xxxxxxxxxx are