vma.c (2f1c6611b0a89afcb8641471af5f223c9caa01e0) vma.c (fc21959f74bc1138b28e90a02ec224ab8626111e)
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#include <stdbool.h>
4#include <stdio.h>
5#include <stdlib.h>
6
7#include "maple-shared.h"
8#include "vma_internal.h"

--- 107 unchanged lines hidden (view full) ---

116}
117
118/*
119 * Helper function which provides a wrapper around the expansion of an existing
120 * VMA.
121 */
122static int expand_existing(struct vma_merge_struct *vmg)
123{
1// SPDX-License-Identifier: GPL-2.0-or-later
2
3#include <stdbool.h>
4#include <stdio.h>
5#include <stdlib.h>
6
7#include "maple-shared.h"
8#include "vma_internal.h"

--- 107 unchanged lines hidden (view full) ---

116}
117
118/*
119 * Helper function which provides a wrapper around the expansion of an existing
120 * VMA.
121 */
122static int expand_existing(struct vma_merge_struct *vmg)
123{
124 return vma_expand(vmg->vmi, vmg->vma, vmg->start, vmg->end, vmg->pgoff,
125 vmg->next);
124 return vma_expand(vmg);
126}
127
128/*
129 * Helper function to reset merge state the associated VMA iterator to a
130 * specified new range.
131 */
132static void vmg_set_range(struct vma_merge_struct *vmg, unsigned long start,
133 unsigned long end, pgoff_t pgoff, vm_flags_t flags)

--- 1307 unchanged lines hidden ---
125}
126
127/*
128 * Helper function to reset merge state the associated VMA iterator to a
129 * specified new range.
130 */
131static void vmg_set_range(struct vma_merge_struct *vmg, unsigned long start,
132 unsigned long end, pgoff_t pgoff, vm_flags_t flags)

--- 1307 unchanged lines hidden ---