Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87175
b: refs/heads/master
c: 0738c4b
h: refs/heads/master
i:
  87173: c5d5ac8
  87171: fb7adfb
  87167: fdc36f6
v: v3
  • Loading branch information
Paul Mundt authored and Linus Torvalds committed Mar 12, 2008
1 parent 33e4b45 commit f36fb1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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: baadac8b10c5ac15ce3d26b68fa266c8889b163f
refs/heads/master: 0738c4bb8f2a8bf15178f852494643b0981f578b
13 changes: 10 additions & 3 deletions trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,22 @@ static inline int get_page_unless_zero(struct page *page)
struct page *vmalloc_to_page(const void *addr);
unsigned long vmalloc_to_pfn(const void *addr);

#ifdef CONFIG_MMU
/* Determine if an address is within the vmalloc range */
/*
* Determine if an address is within the vmalloc range
*
* On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there
* is no special casing required.
*/
static inline int is_vmalloc_addr(const void *x)
{
#ifdef CONFIG_MMU
unsigned long addr = (unsigned long)x;

return addr >= VMALLOC_START && addr < VMALLOC_END;
}
#else
return 0;
#endif
}

static inline struct page *compound_head(struct page *page)
{
Expand Down

0 comments on commit f36fb1a

Please sign in to comment.