Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 35bafda6 authored by Minchan Kim's avatar Minchan Kim Committed by Alexander Winkowski
Browse files

Revert "mm: introduce INIT_VMA()"



This reverts commit f9eb248e.

Bug: 128240262
Change-Id: Ia6ca7bfc525b9e238d49df4812e1b66307674198
Signed-off-by: default avatarMinchan Kim <minchan@google.com>
[dereference23: Forward port to msm-5.4]
Signed-off-by: default avatarAlexander Winkowski <dereference23@outlook.com>
parent 6c8ee730
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -618,11 +618,6 @@ struct vm_operations_struct {
	ANDROID_KABI_RESERVE(4);
};

static inline void INIT_VMA(struct vm_area_struct *vma)
{
	INIT_LIST_HEAD(&vma->anon_vma_chain);
}

static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm)
{
	static const struct vm_operations_struct dummy_vm_ops = {};
@@ -630,7 +625,7 @@ static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm)
	memset(vma, 0, sizeof(*vma));
	vma->vm_mm = mm;
	vma->vm_ops = &dummy_vm_ops;
	INIT_VMA(vma);
	INIT_LIST_HEAD(&vma->anon_vma_chain);
}

static inline void vma_set_anonymous(struct vm_area_struct *vma)
+1 −1
Original line number Diff line number Diff line
@@ -362,7 +362,7 @@ struct vm_area_struct *vm_area_dup(struct vm_area_struct *orig)

	if (new) {
		*new = *orig;
		INIT_VMA(new);
		INIT_LIST_HEAD(&new->anon_vma_chain);
	}
	return new;
}