mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
The only user of frontswap is zswap, and has been for a long time. Have swap call into zswap directly and remove the indirection. [[email protected]: remove obsolete comment, per Yosry] Link: https://lkml.kernel.org/r/[email protected] [[email protected]: don't warn if none swapcache folio is passed to zswap_load] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Johannes Weiner <[email protected]> Signed-off-by: Yin Fengwei <[email protected]> Acked-by: Konrad Rzeszutek Wilk <[email protected]> Acked-by: Nhat Pham <[email protected]> Acked-by: Yosry Ahmed <[email protected]> Acked-by: Christoph Hellwig <[email protected]> Cc: Domenico Cerasuolo <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Vitaly Wool <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
14 lines
450 B
C
14 lines
450 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_SWAPFILE_H
|
|
#define _LINUX_SWAPFILE_H
|
|
|
|
extern unsigned long generic_max_swapfile_size(void);
|
|
unsigned long arch_max_swapfile_size(void);
|
|
|
|
/* Maximum swapfile size supported for the arch (not inclusive). */
|
|
extern unsigned long swapfile_maximum_size;
|
|
/* Whether swap migration entry supports storing A/D bits for the arch */
|
|
extern bool swap_migration_ad_supported;
|
|
|
|
#endif /* _LINUX_SWAPFILE_H */
|