~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to arch/m68k/include/asm/motorola_pgalloc.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
static inline pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address)
31
31
{
32
 
        struct page *page = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0);
 
32
        struct page *page;
33
33
        pte_t *pte;
34
34
 
 
35
        page = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0);
35
36
        if(!page)
36
37
                return NULL;
 
38
        if (!pgtable_page_ctor(page)) {
 
39
                __free_page(page);
 
40
                return NULL;
 
41
        }
37
42
 
38
43
        pte = kmap(page);
39
44
        __flush_page_to_ram(pte);
40
45
        flush_tlb_kernel_page(pte);
41
46
        nocache_page(pte);
42
47
        kunmap(page);
43
 
        pgtable_page_ctor(page);
44
48
        return page;
45
49
}
46
50