frontswap-remove-frontswap_curr_pages.patch removed from -mm tree
The patch titled
Subject: frontswap: remove frontswap_curr_pages
has been removed from the -mm tree. Its filename was
frontswap-remove-frontswap_curr_pages.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: frontswap: remove frontswap_curr_pages
frontswap_curr_pages is never called, so remove it.
Signed-off-by Christoph Hellwig <[email protected]>
Reviewed-by Juergen Gross <[email protected]>
Cc Dan Streetman <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Seth Jennings <[email protected]>
Cc Vitaly Wool <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/frontswap.h | 1 - mm/frontswap.c | 28 ---------------------------- 2 files changed, 29 deletions(-)
include/linux/frontswap.h renamed from include/linux/frontswap.h~frontswap-remove-frontswap_curr_pages +0 -1
@@ -24,7 +24,6 @@ struct frontswap_ops { };extern void frontswap_register_ops (struct frontswap_ops *ops); -extern unsigned long frontswap_curr_pages (void );extern bool __frontswap_test (struct swap_info_struct *,pgoff_t );extern void __frontswap_init (unsigned type,unsigned long *map);
mm/frontswap.c renamed from mm/frontswap.c~frontswap-remove-frontswap_curr_pages +0 -28
@@ -330,34 +330,6 @@ void __frontswap_invalidate_area(unsigne }EXPORT_SYMBOL (__frontswap_invalidate_area); -static unsigned long __frontswap_curr_pages (void ) -{ -unsigned long totalpages =0 ; -struct swap_info_struct *si =NULL ; - -assert_spin_locked (&swap_lock); -plist_for_each_entry (si, &swap_active_head, list) - totalpages +=atomic_read (&si->frontswap_pages); -return totalpages; -} - -/* -* Count and return the number of frontswap pages across all -* swap devices. This is exported so that backend drivers can -* determine current usage without reading debugfs. -*/ -unsigned long frontswap_curr_pages (void ) -{ -unsigned long totalpages =0 ; - -spin_lock (&swap_lock); - totalpages =__frontswap_curr_pages (); -spin_unlock (&swap_lock); - -return totalpages; -} -EXPORT_SYMBOL (frontswap_curr_pages); -static int __init init_frontswap (void ) {#ifdef CONFIG_DEBUG_FS
_
Patches currently in -mm which might be from [email protected] are