Searched hist:"40 ef8756fbdd9faec4da5d70352b28f1196132ed" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/md/ |
H A D | dm-writecache.c | diff 40ef8756fbdd9faec4da5d70352b28f1196132ed Tue Jan 09 16:00:57 CET 2024 Mikulas Patocka <mpatocka@redhat.com> dm writecache: allow allocations larger than 2GiB
The function kvmalloc_node limits the allocation size to INT_MAX. This limit will be overflowed if dm-writecache attempts to map a device with 1TiB or larger length. This commit changes kvmalloc_array to vmalloc_array to avoid the limit.
The commit also changes vmalloc(array_size()) to vmalloc_array().
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
|