mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] mm: make __put_page internal
Remove __put_page from outside the core mm/. It is dangerous because it does not handle compound pages nicely, and misses 1->0 transitions. If a user later appears that really needs the extra speed we can reevaluate. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4fa4f53bf9
commit
0f8053a509
4 changed files with 15 additions and 1 deletions
|
@ -308,7 +308,6 @@ static inline int get_page_unless_zero(struct page *page)
|
|||
}
|
||||
|
||||
#define set_page_count(p,v) atomic_set(&(p)->_count, (v))
|
||||
#define __put_page(p) atomic_dec(&(p)->_count)
|
||||
|
||||
extern void FASTCALL(__page_cache_release(struct page *));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue