Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14606
b: refs/heads/master
c: 664beed
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Nov 22, 2005
1 parent 17a09a3 commit bd73ac2
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 32 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: 1cdca61bf8537043edde8ef784ce1a1351361dac
refs/heads/master: 664beed0190fae687ac51295694004902ddeb18e
19 changes: 0 additions & 19 deletions trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ struct page {

extern void FASTCALL(__page_cache_release(struct page *));

#ifdef CONFIG_HUGETLB_PAGE

static inline int page_count(struct page *page)
{
if (PageCompound(page))
Expand All @@ -329,23 +327,6 @@ static inline void get_page(struct page *page)

void put_page(struct page *page);

#else /* CONFIG_HUGETLB_PAGE */

#define page_count(p) (atomic_read(&(p)->_count) + 1)

static inline void get_page(struct page *page)
{
atomic_inc(&page->_count);
}

static inline void put_page(struct page *page)
{
if (put_page_testzero(page))
__page_cache_release(page);
}

#endif /* CONFIG_HUGETLB_PAGE */

/*
* Multiple processes may "see" the same page. E.g. for untouched
* mappings of /dev/null, all processes see the same page full of
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/linux/page-flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,7 @@ extern void __mod_page_state(unsigned long offset, unsigned long delta);
#define ClearPageReclaim(page) clear_bit(PG_reclaim, &(page)->flags)
#define TestClearPageReclaim(page) test_and_clear_bit(PG_reclaim, &(page)->flags)

#ifdef CONFIG_HUGETLB_PAGE
#define PageCompound(page) test_bit(PG_compound, &(page)->flags)
#else
#define PageCompound(page) 0
#endif
#define SetPageCompound(page) set_bit(PG_compound, &(page)->flags)
#define ClearPageCompound(page) clear_bit(PG_compound, &(page)->flags)

Expand Down
5 changes: 0 additions & 5 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ static void bad_page(const char *function, struct page *page)
add_taint(TAINT_BAD_PAGE);
}

#ifndef CONFIG_HUGETLB_PAGE
#define prep_compound_page(page, order) do { } while (0)
#define destroy_compound_page(page, order) do { } while (0)
#else
/*
* Higher-order pages are called "compound pages". They are structured thusly:
*
Expand Down Expand Up @@ -205,7 +201,6 @@ static void destroy_compound_page(struct page *page, unsigned long order)
ClearPageCompound(p);
}
}
#endif /* CONFIG_HUGETLB_PAGE */

/*
* function for dealing with page's order in buddy system.
Expand Down
3 changes: 0 additions & 3 deletions trunk/mm/swap.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
/* How many pages do we try to swap or page in/out together? */
int page_cluster;

#ifdef CONFIG_HUGETLB_PAGE

void put_page(struct page *page)
{
if (unlikely(PageCompound(page))) {
Expand All @@ -52,7 +50,6 @@ void put_page(struct page *page)
__page_cache_release(page);
}
EXPORT_SYMBOL(put_page);
#endif

/*
* Writeback is about to end against a page which has been marked for immediate
Expand Down

0 comments on commit bd73ac2

Please sign in to comment.