search for: put_page_testzero_nocheck

Displaying 2 results from an estimated 2 matches for "put_page_testzero_nocheck".

2007 Apr 18
0
[patch 7/9] Guest page hinting: minor fault optimization.
...include/linux/mm.h 2006-09-01 12:50:25.000000000 +0200 @@ -311,11 +311,15 @@ struct page { * put_page_testzero checks if the page can be made volatile if the page * still has users and guest page hinting is enabled. */ -static inline int put_page_testzero(struct page *page) +static inline int put_page_testzero_nocheck(struct page *page) { - int ret; VM_BUG_ON(atomic_read(&page->_count) == 0); - ret = atomic_dec_and_test(&page->_count); + return atomic_dec_and_test(&page->_count); +} + +static inline int put_page_testzero(struct page *page) +{ + int ret = put_page_testzero_nocheck(page);...
2007 Apr 18
0
[patch 7/9] Guest page hinting: minor fault optimization.
...include/linux/mm.h 2006-09-01 12:50:25.000000000 +0200 @@ -311,11 +311,15 @@ struct page { * put_page_testzero checks if the page can be made volatile if the page * still has users and guest page hinting is enabled. */ -static inline int put_page_testzero(struct page *page) +static inline int put_page_testzero_nocheck(struct page *page) { - int ret; VM_BUG_ON(atomic_read(&page->_count) == 0); - ret = atomic_dec_and_test(&page->_count); + return atomic_dec_and_test(&page->_count); +} + +static inline int put_page_testzero(struct page *page) +{ + int ret = put_page_testzero_nocheck(page);...