diff options
author | pangliyuan <pangliyuan1@huawei.com> | 2024-12-10 17:08:42 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-12 20:21:08 -0800 |
commit | 78188dd1d24b9d4cd78431feaa13120cfa37ca6a (patch) | |
tree | 0f773c3ee39f9afcb34b916a1efab5634ca3dafd /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 0fafc9e1563fbacb92b19ccbde5b8e73280d34b7 (diff) |
Squashfs: don't allocate fragment caches more than fragments
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@huawei.com
Signed-off-by: pangliyuan <pangliyuan1@huawei.com>
Reviewed-by: Phillip Lougher <phillip@squashfs.org.uk>
Cc: <wangfangpeng1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions