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

Commit 340a43be authored by Yang Shi's avatar Yang Shi Committed by Linus Torvalds
Browse files

mm: thp: simplify the implementation of mk_huge_pmd()



The implementation of mk_huge_pmd looks verbose, it could be just
simplified to one line code.

Signed-off-by: default avatarYang Shi <yang.shi@linaro.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f44666b0
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -764,10 +764,7 @@ pmd_t maybe_pmd_mkwrite(pmd_t pmd, struct vm_area_struct *vma)

static inline pmd_t mk_huge_pmd(struct page *page, pgprot_t prot)
{
	pmd_t entry;
	entry = mk_pmd(page, prot);
	entry = pmd_mkhuge(entry);
	return entry;
	return pmd_mkhuge(mk_pmd(page, prot));
}

static inline struct list_head *page_deferred_list(struct page *page)