diff options
author | Mikulas Patocka | 2024-01-09 16:00:57 +0100 |
---|---|---|
committer | Mike Snitzer | 2024-01-30 14:07:30 -0500 |
commit | 40ef8756fbdd9faec4da5d70352b28f1196132ed (patch) | |
tree | 72a4b244381deac50876953f9a3d1c0e6b8c10d0 /fs | |
parent | 9cf11ce06ea52911245578032761e40a6409cf35 (diff) |
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions