diff options
author | 2023-01-20 11:26:38 -0500 | |
---|---|---|
committer | 2023-02-09 16:51:36 -0800 | |
commit | cc8d1b097de78bd25b7b1ed32018b21cecbf3f6c (patch) | |
tree | b6b7cf6fdeddfa5ca6554255c1278a414c1766b3 /mm/mremap.c | |
parent | mm: add vma iterator to vma_adjust() arguments (diff) | |
download | wireguard-linux-cc8d1b097de78bd25b7b1ed32018b21cecbf3f6c.tar.xz wireguard-linux-cc8d1b097de78bd25b7b1ed32018b21cecbf3f6c.zip |
mmap: clean up mmap_region() unrolling
Move logic of unrolling to the error path as apposed to duplicating it
within the function body. This reduces the potential of missing an update
to one path when making changes.
Link: https://lkml.kernel.org/r/20230120162650.984577-38-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mremap.c')
0 files changed, 0 insertions, 0 deletions