diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2021-05-15 00:27:30 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-05-15 02:41:32 +0000 |
| commit | 076171a67789ad0107de44c2964f2e46a7d0d7b8 (patch) | |
| tree | fdf94ce8efe2e7f9e9ba74a2ad5aec2347ea0133 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |
| parent | kasan: fix unit tests with CONFIG_UBSAN_LOCAL_BOUNDS enabled (diff) | |
| download | kernel-076171a67789ad0107de44c2964f2e46a7d0d7b8.tar.gz kernel-076171a67789ad0107de44c2964f2e46a7d0d7b8.zip | |
mm/filemap: fix readahead return types
A readahead request will not allocate more memory than can be represented
by a size_t, even on systems that have HIGHMEM available. Change the
length functions from returning an loff_t to a size_t.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 32c0a6bcaa1f57 ("btrfs: add and use readahead_batch_length")
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Reported-by: Linus Torvalds <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
0 files changed, 0 insertions, 0 deletions
