]> www.infradead.org Git - users/jedix/linux-maple.git/commit
squashfs: make squashfs_cache_init() return ERR_PTR(-ENOMEM)
authorPhillip Lougher <phillip@squashfs.org.uk>
Sun, 29 Dec 2024 23:37:49 +0000 (23:37 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 25 Jan 2025 06:45:34 +0000 (22:45 -0800)
commit49ff29240ebb13bc0efa4623d4379650e68fcb35
treed15e4c23aa60414a0450e68c8fd57ccc1a7afe92
parentf65c64f311ee2f1ddc1eb395ed8b20e6b9d14e85
squashfs: make squashfs_cache_init() return ERR_PTR(-ENOMEM)

Patch series "squashfs: reduce memory usage and update docs".

This patchset reduces the amount of memory that Squashfs uses when
CONFIG_FILE_DIRECT is configured, and updates various out of date
information in the documentation and Kconfig.

This patch (of 4):

Make squashfs_cache_init() return an ERR_PTR(-ENOMEM) on failure rather
than NULL.

This tidies up some calling code, but, it also allows NULL to be returned
as a valid result when a cache hasn't be allocated.

Link: https://lkml.kernel.org/r/20241229233752.54481-1-phillip@squashfs.org.uk
Link: https://lkml.kernel.org/r/20241229233752.54481-2-phillip@squashfs.org.uk
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/squashfs/cache.c
fs/squashfs/super.c