File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ struct frontswap_ops {
24
24
};
25
25
26
26
extern void frontswap_register_ops (struct frontswap_ops * ops );
27
- extern unsigned long frontswap_curr_pages (void );
28
27
29
28
extern bool __frontswap_test (struct swap_info_struct * , pgoff_t );
30
29
extern void __frontswap_init (unsigned type , unsigned long * map );
Original file line number Diff line number Diff line change @@ -330,34 +330,6 @@ void __frontswap_invalidate_area(unsigned type)
330
330
}
331
331
EXPORT_SYMBOL (__frontswap_invalidate_area );
332
332
333
- static unsigned long __frontswap_curr_pages (void )
334
- {
335
- unsigned long totalpages = 0 ;
336
- struct swap_info_struct * si = NULL ;
337
-
338
- assert_spin_locked (& swap_lock );
339
- plist_for_each_entry (si , & swap_active_head , list )
340
- totalpages += atomic_read (& si -> frontswap_pages );
341
- return totalpages ;
342
- }
343
-
344
- /*
345
- * Count and return the number of frontswap pages across all
346
- * swap devices. This is exported so that backend drivers can
347
- * determine current usage without reading debugfs.
348
- */
349
- unsigned long frontswap_curr_pages (void )
350
- {
351
- unsigned long totalpages = 0 ;
352
-
353
- spin_lock (& swap_lock );
354
- totalpages = __frontswap_curr_pages ();
355
- spin_unlock (& swap_lock );
356
-
357
- return totalpages ;
358
- }
359
- EXPORT_SYMBOL (frontswap_curr_pages );
360
-
361
333
static int __init init_frontswap (void )
362
334
{
363
335
#ifdef CONFIG_DEBUG_FS
You can’t perform that action at this time.
0 commit comments