Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258921
b: refs/heads/master
c: 33dd4e0
h: refs/heads/master
i:
  258919: c71623c
v: v3
  • Loading branch information
Ian Campbell authored and Linus Torvalds committed Jul 26, 2011
1 parent 3d9ea7a commit e583987
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: ee8f248d266ec6966c0ce6b7dec24de43dcc1b58
refs/heads/master: 33dd4e0ec91138c3d80e790c08a3db47426c81f2
12 changes: 6 additions & 6 deletions trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ static inline pte_t maybe_mkwrite(pte_t pte, struct vm_area_struct *vma)
#define SECTIONS_MASK ((1UL << SECTIONS_WIDTH) - 1)
#define ZONEID_MASK ((1UL << ZONEID_SHIFT) - 1)

static inline enum zone_type page_zonenum(struct page *page)
static inline enum zone_type page_zonenum(const struct page *page)
{
return (page->flags >> ZONES_PGSHIFT) & ZONES_MASK;
}
Expand Down Expand Up @@ -665,15 +665,15 @@ static inline int zone_to_nid(struct zone *zone)
}

#ifdef NODE_NOT_IN_PAGE_FLAGS
extern int page_to_nid(struct page *page);
extern int page_to_nid(const struct page *page);
#else
static inline int page_to_nid(struct page *page)
static inline int page_to_nid(const struct page *page)
{
return (page->flags >> NODES_PGSHIFT) & NODES_MASK;
}
#endif

static inline struct zone *page_zone(struct page *page)
static inline struct zone *page_zone(const struct page *page)
{
return &NODE_DATA(page_to_nid(page))->node_zones[page_zonenum(page)];
}
Expand Down Expand Up @@ -718,9 +718,9 @@ static inline void set_page_links(struct page *page, enum zone_type zone,
*/
#include <linux/vmstat.h>

static __always_inline void *lowmem_page_address(struct page *page)
static __always_inline void *lowmem_page_address(const struct page *page)
{
return __va(PFN_PHYS(page_to_pfn(page)));
return __va(PFN_PHYS(page_to_pfn((struct page *)page)));
}

#if defined(CONFIG_HIGHMEM) && !defined(WANT_PAGE_VIRTUAL)
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static u8 section_to_node_table[NR_MEM_SECTIONS] __cacheline_aligned;
static u16 section_to_node_table[NR_MEM_SECTIONS] __cacheline_aligned;
#endif

int page_to_nid(struct page *page)
int page_to_nid(const struct page *page)
{
return section_to_node_table[page_to_section(page)];
}
Expand Down

0 comments on commit e583987

Please sign in to comment.