Skip to content

Commit

Permalink
mm: drop PAGE_CACHE_* and page_cache_{get,release} definition
Browse files Browse the repository at this point in the history
All users gone.  We can remove these macros.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
kiryl authored and torvalds committed Apr 4, 2016
1 parent ea1754a commit 1fa64f1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions include/linux/pagemap.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,6 @@ static inline void mapping_set_gfp_mask(struct address_space *m, gfp_t mask)
(__force unsigned long)mask;
}

/*
* The page cache can be done in larger chunks than
* one page, because it allows for more efficient
* throughput (it can then be mapped into user
* space in smaller chunks for same flexibility).
*
* Or rather, it _will_ be done in larger chunks.
*/
#define PAGE_CACHE_SHIFT PAGE_SHIFT
#define PAGE_CACHE_SIZE PAGE_SIZE
#define PAGE_CACHE_MASK PAGE_MASK
#define PAGE_CACHE_ALIGN(addr) (((addr)+PAGE_CACHE_SIZE-1)&PAGE_CACHE_MASK)

#define page_cache_get(page) get_page(page)
#define page_cache_release(page) put_page(page)
void release_pages(struct page **pages, int nr, bool cold);

/*
Expand Down

0 comments on commit 1fa64f1

Please sign in to comment.