diff options
| author | Lorenzo Stoakes <[email protected]> | 2025-07-29 11:49:06 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-08-02 19:06:13 +0000 |
| commit | f04fd85f15945f3ff189701050e3ce303c1a4d98 (patch) | |
| tree | 3ed626bda581c4ac98b2909e03bf5aaeab062427 /fs/xfs/xfs_exchrange.c | |
| parent | mm/shmem, swap: fix major fault counting (diff) | |
| download | kernel-f04fd85f15945f3ff189701050e3ce303c1a4d98.tar.gz kernel-f04fd85f15945f3ff189701050e3ce303c1a4d98.zip | |
mm: correct type for vmalloc vm_flags fields
Several functions refer to the unfortunately named 'vm_flags' field when
referencing vmalloc flags, which happens to be the precise same name used
for VMA flags.
As a result these were erroneously changed to use the vm_flags_t type
(which currently is a typedef equivalent to unsigned long).
Currently this has no impact, but in future when vm_flags_t changes this
will result in issues, so change the type to unsigned long to account for
this.
[[email protected]: fixup very disguised vmalloc flags parameter]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Lorenzo Stoakes <[email protected]>
Reported-by: Harry Yoo <[email protected]>
Closes: https://lore.kernel.org/all/aIgSpAnU8EaIcqd9@hyeyoo/
Reviewed-by: Pedro Falcato <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Reviewed-by: Harry Yoo <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: Liam Howlett <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: "Uladzislau Rezki (Sony)" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_exchrange.c')
0 files changed, 0 insertions, 0 deletions
