cregit-Linux how code gets into the kernel

Release 4.14 arch/sh/mm/hugetlbpage.c

Directory: arch/sh/mm
// SPDX-License-Identifier: GPL-2.0
/*
 * arch/sh/mm/hugetlbpage.c
 *
 * SuperH HugeTLB page support.
 *
 * Cloned from sparc64 by Paul Mundt.
 *
 * Copyright (C) 2002, 2003 David S. Miller (davem@redhat.com)
 */

#include <linux/init.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/hugetlb.h>
#include <linux/pagemap.h>
#include <linux/sysctl.h>

#include <asm/mman.h>
#include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>
#include <asm/cacheflush.h>


pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr, unsigned long sz) { pgd_t *pgd; pud_t *pud; pmd_t *pmd; pte_t *pte = NULL; pgd = pgd_offset(mm, addr); if (pgd) { pud = pud_alloc(mm, pgd, addr); if (pud) { pmd = pmd_alloc(mm, pud, addr); if (pmd) pte = pte_alloc_map(mm, pmd, addr); } } return pte; }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton7273.47%250.00%
Paul Mundt2222.45%125.00%
Andi Kleen44.08%125.00%
Total98100.00%4100.00%


pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr, unsigned long sz) { pgd_t *pgd; pud_t *pud; pmd_t *pmd; pte_t *pte = NULL; pgd = pgd_offset(mm, addr); if (pgd) { pud = pud_offset(pgd, addr); if (pud) { pmd = pmd_offset(pud, addr); if (pmd) pte = pte_offset_map(pmd, addr); } } return pte; }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton6368.48%233.33%
Paul Mundt1819.57%116.67%
David Gibson55.43%116.67%
Punit Agrawal44.35%116.67%
Christoph Lameter22.17%116.67%
Total92100.00%6100.00%


int pmd_huge(pmd_t pmd) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
David Gibson763.64%133.33%
Andrew Morton436.36%266.67%
Total11100.00%3100.00%


int pud_huge(pud_t pud) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Andi Kleen11100.00%1100.00%
Total11100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton17370.04%222.22%
Paul Mundt4016.19%111.11%
Andi Kleen156.07%222.22%
David Gibson124.86%111.11%
Punit Agrawal41.62%111.11%
Christoph Lameter20.81%111.11%
Greg Kroah-Hartman10.40%111.11%
Total247100.00%9100.00%
Directory: arch/sh/mm
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.