vma.h (2f1c6611b0a89afcb8641471af5f223c9caa01e0) vma.h (fc21959f74bc1138b28e90a02ec224ab8626111e)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * vma.h
4 *
5 * Core VMA manipulation API implemented in vma.c.
6 */
7#ifndef __MM_VMA_H
8#define __MM_VMA_H

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

123/* Required for do_brk_flags(). */
124void init_vma_prep(struct vma_prepare *vp,
125 struct vm_area_struct *vma);
126
127/* Required for do_brk_flags(). */
128void vma_complete(struct vma_prepare *vp,
129 struct vma_iterator *vmi, struct mm_struct *mm);
130
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * vma.h
4 *
5 * Core VMA manipulation API implemented in vma.c.
6 */
7#ifndef __MM_VMA_H
8#define __MM_VMA_H

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

123/* Required for do_brk_flags(). */
124void init_vma_prep(struct vma_prepare *vp,
125 struct vm_area_struct *vma);
126
127/* Required for do_brk_flags(). */
128void vma_complete(struct vma_prepare *vp,
129 struct vma_iterator *vmi, struct mm_struct *mm);
130
131int vma_expand(struct vma_iterator *vmi, struct vm_area_struct *vma,
132 unsigned long start, unsigned long end, pgoff_t pgoff,
133 struct vm_area_struct *next);
134
131int vma_expand(struct vma_merge_struct *vmg);
135int vma_shrink(struct vma_iterator *vmi, struct vm_area_struct *vma,
136 unsigned long start, unsigned long end, pgoff_t pgoff);
137
138static inline int vma_iter_store_gfp(struct vma_iterator *vmi,
139 struct vm_area_struct *vma, gfp_t gfp)
140
141{
142 if (vmi->mas.status != ma_start &&

--- 404 unchanged lines hidden ---
132int vma_shrink(struct vma_iterator *vmi, struct vm_area_struct *vma,
133 unsigned long start, unsigned long end, pgoff_t pgoff);
134
135static inline int vma_iter_store_gfp(struct vma_iterator *vmi,
136 struct vm_area_struct *vma, gfp_t gfp)
137
138{
139 if (vmi->mas.status != ma_start &&

--- 404 unchanged lines hidden ---