mm: hugetlb: fix coding style issues
Fix coding style issues flagged by checkpatch.pl Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Acked-by: Eric B Munson <emunson@mgebm.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
d788e80a8c
commit
32f84528fb
1 changed files with 15 additions and 16 deletions
21
mm/hugetlb.c
21
mm/hugetlb.c
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <asm/page.h>
|
||||
#include <asm/pgtable.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/io.h>
|
||||
|
||||
#include <linux/hugetlb.h>
|
||||
#include <linux/node.h>
|
||||
|
@ -503,9 +503,10 @@ static void update_and_free_page(struct hstate *h, struct page *page)
|
|||
h->nr_huge_pages--;
|
||||
h->nr_huge_pages_node[page_to_nid(page)]--;
|
||||
for (i = 0; i < pages_per_huge_page(h); i++) {
|
||||
page[i].flags &= ~(1 << PG_locked | 1 << PG_error | 1 << PG_referenced |
|
||||
1 << PG_dirty | 1 << PG_active | 1 << PG_reserved |
|
||||
1 << PG_private | 1<< PG_writeback);
|
||||
page[i].flags &= ~(1 << PG_locked | 1 << PG_error |
|
||||
1 << PG_referenced | 1 << PG_dirty |
|
||||
1 << PG_active | 1 << PG_reserved |
|
||||
1 << PG_private | 1 << PG_writeback);
|
||||
}
|
||||
set_compound_page_dtor(page, NULL);
|
||||
set_page_refcounted(page);
|
||||
|
@ -591,7 +592,6 @@ int PageHuge(struct page *page)
|
|||
|
||||
return dtor == free_huge_page;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL_GPL(PageHuge);
|
||||
|
||||
static struct page *alloc_fresh_huge_page_node(struct hstate *h, int nid)
|
||||
|
@ -2132,9 +2132,8 @@ static void set_huge_ptep_writable(struct vm_area_struct *vma,
|
|||
pte_t entry;
|
||||
|
||||
entry = pte_mkwrite(pte_mkdirty(huge_ptep_get(ptep)));
|
||||
if (huge_ptep_set_access_flags(vma, address, ptep, entry, 1)) {
|
||||
if (huge_ptep_set_access_flags(vma, address, ptep, entry, 1))
|
||||
update_mmu_cache(vma, address, ptep);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -2189,9 +2188,9 @@ static int is_hugetlb_entry_migration(pte_t pte)
|
|||
if (huge_pte_none(pte) || pte_present(pte))
|
||||
return 0;
|
||||
swp = pte_to_swp_entry(pte);
|
||||
if (non_swap_entry(swp) && is_migration_entry(swp)) {
|
||||
if (non_swap_entry(swp) && is_migration_entry(swp))
|
||||
return 1;
|
||||
} else
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -2202,9 +2201,9 @@ static int is_hugetlb_entry_hwpoisoned(pte_t pte)
|
|||
if (huge_pte_none(pte) || pte_present(pte))
|
||||
return 0;
|
||||
swp = pte_to_swp_entry(pte);
|
||||
if (non_swap_entry(swp) && is_hwpoison_entry(swp)) {
|
||||
if (non_swap_entry(swp) && is_hwpoison_entry(swp))
|
||||
return 1;
|
||||
} else
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue