Skip to content

Commit 360be5d

Browse files
Christoph Hellwigtorvalds
authored andcommitted
frontswap: remove the frontswap exports
None of the frontswap API is called from modular code. Link: https://lkml.kernel.org/r/[email protected] 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]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 1cf53c8 commit 360be5d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

mm/frontswap.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ void frontswap_register_ops(struct frontswap_ops *ops)
151151
}
152152
}
153153
}
154-
EXPORT_SYMBOL(frontswap_register_ops);
155154

156155
/*
157156
* Called when a swap device is swapon'd.
@@ -187,7 +186,6 @@ bool __frontswap_test(struct swap_info_struct *sis,
187186
return test_bit(offset, sis->frontswap_map);
188187
return false;
189188
}
190-
EXPORT_SYMBOL(__frontswap_test);
191189

192190
static inline void __frontswap_set(struct swap_info_struct *sis,
193191
pgoff_t offset)
@@ -250,7 +248,6 @@ int __frontswap_store(struct page *page)
250248

251249
return ret;
252250
}
253-
EXPORT_SYMBOL(__frontswap_store);
254251

255252
/*
256253
* "Get" data from frontswap associated with swaptype and offset that were
@@ -283,7 +280,6 @@ int __frontswap_load(struct page *page)
283280
inc_frontswap_loads();
284281
return ret;
285282
}
286-
EXPORT_SYMBOL(__frontswap_load);
287283

288284
/*
289285
* Invalidate any data from frontswap associated with the specified swaptype
@@ -305,7 +301,6 @@ void __frontswap_invalidate_page(unsigned type, pgoff_t offset)
305301
__frontswap_clear(sis, offset);
306302
inc_frontswap_invalidates();
307303
}
308-
EXPORT_SYMBOL(__frontswap_invalidate_page);
309304

310305
/*
311306
* Invalidate all data from frontswap associated with all offsets for the
@@ -327,7 +322,6 @@ void __frontswap_invalidate_area(unsigned type)
327322
atomic_set(&sis->frontswap_pages, 0);
328323
bitmap_zero(sis->frontswap_map, sis->max);
329324
}
330-
EXPORT_SYMBOL(__frontswap_invalidate_area);
331325

332326
static int __init init_frontswap(void)
333327
{

0 commit comments

Comments
 (0)