Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39319
b: refs/heads/master
c: 9858db5
h: refs/heads/master
i:
  39317: be4948c
  39315: ff11d79
  39311: a02022b
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Oct 11, 2006
1 parent e70aac0 commit e933e53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dafb13673c463bc2aade4a4819704dde0f5fa37f
refs/heads/master: 9858db504caedb2424b9a32744c23f9a81ec1731
7 changes: 1 addition & 6 deletions trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -1103,12 +1103,7 @@ static inline void vm_stat_account(struct mm_struct *mm,

#ifndef CONFIG_DEBUG_PAGEALLOC
static inline void
kernel_map_pages(struct page *page, int numpages, int enable)
{
if (!PageHighMem(page) && !enable)
debug_check_no_locks_freed(page_address(page),
numpages * PAGE_SIZE);
}
kernel_map_pages(struct page *page, int numpages, int enable) {}
#endif

extern struct vm_area_struct *get_gate_vma(struct task_struct *tsk);
Expand Down
8 changes: 4 additions & 4 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,15 +495,13 @@ static void __free_pages_ok(struct page *page, unsigned int order)
int i;
int reserved = 0;

if (!PageHighMem(page))
debug_check_no_locks_freed(page_address(page),
PAGE_SIZE<<order);

for (i = 0 ; i < (1 << order) ; ++i)
reserved += free_pages_check(page + i);
if (reserved)
return;

if (!PageHighMem(page))
debug_check_no_locks_freed(page_address(page),PAGE_SIZE<<order);
arch_free_page(page, order);
kernel_map_pages(page, 1 << order, 0);

Expand Down Expand Up @@ -787,6 +785,8 @@ static void fastcall free_hot_cold_page(struct page *page, int cold)
if (free_pages_check(page))
return;

if (!PageHighMem(page))
debug_check_no_locks_freed(page_address(page), PAGE_SIZE);
arch_free_page(page, 0);
kernel_map_pages(page, 1, 0);

Expand Down

0 comments on commit e933e53

Please sign in to comment.