|
@@ -9,6 +9,7 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include <linux/mm.h>
|
|
#include <linux/mm.h>
|
|
|
|
+#include <linux/swap.h> /* struct reclaim_state */
|
|
#include <linux/module.h>
|
|
#include <linux/module.h>
|
|
#include <linux/bit_spinlock.h>
|
|
#include <linux/bit_spinlock.h>
|
|
#include <linux/interrupt.h>
|
|
#include <linux/interrupt.h>
|
|
@@ -1170,6 +1171,8 @@ static void __free_slab(struct kmem_cache *s, struct page *page)
|
|
|
|
|
|
__ClearPageSlab(page);
|
|
__ClearPageSlab(page);
|
|
reset_page_mapcount(page);
|
|
reset_page_mapcount(page);
|
|
|
|
+ if (current->reclaim_state)
|
|
|
|
+ current->reclaim_state->reclaimed_slab += pages;
|
|
__free_pages(page, order);
|
|
__free_pages(page, order);
|
|
}
|
|
}
|
|
|
|
|