Skip to content

Commit 1fa64f1

Browse files
kiryltorvalds
authored andcommitted
mm: drop PAGE_CACHE_* and page_cache_{get,release} definition
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]>
1 parent ea1754a commit 1fa64f1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

include/linux/pagemap.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,6 @@ static inline void mapping_set_gfp_mask(struct address_space *m, gfp_t mask)
8686
(__force unsigned long)mask;
8787
}
8888

89-
/*
90-
* The page cache can be done in larger chunks than
91-
* one page, because it allows for more efficient
92-
* throughput (it can then be mapped into user
93-
* space in smaller chunks for same flexibility).
94-
*
95-
* Or rather, it _will_ be done in larger chunks.
96-
*/
97-
#define PAGE_CACHE_SHIFT PAGE_SHIFT
98-
#define PAGE_CACHE_SIZE PAGE_SIZE
99-
#define PAGE_CACHE_MASK PAGE_MASK
100-
#define PAGE_CACHE_ALIGN(addr) (((addr)+PAGE_CACHE_SIZE-1)&PAGE_CACHE_MASK)
101-
102-
#define page_cache_get(page) get_page(page)
103-
#define page_cache_release(page) put_page(page)
10489
void release_pages(struct page **pages, int nr, bool cold);
10590

10691
/*

0 commit comments

Comments
 (0)