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/20211224062246.1258487-8-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Juergen Gross <jgross@suse.com> Cc: Dan Streetman <ddstreet@ieee.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Hugh Dickins <hughd@google.com> Cc: Konrad Rzeszutek Wilk <Konrad.wilk@oracle.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Seth Jennings <sjenning@redhat.com> Cc: Vitaly Wool <vitaly.wool@konsulko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 1cf53c8 commit 360be5d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

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)