⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.96
Server IP:
147.93.97.220
Server:
Linux srv843233 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
src
/
linux-headers-6.8.0-60
/
include
/
linux
/
Edit File: zswap.h
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_ZSWAP_H #define _LINUX_ZSWAP_H #include
#include
struct lruvec; extern u64 zswap_pool_total_size; extern atomic_t zswap_stored_pages; #ifdef CONFIG_ZSWAP struct zswap_lruvec_state { /* * Number of pages in zswap that should be protected from the shrinker. * This number is an estimate of the following counts: * * a) Recent page faults. * b) Recent insertion to the zswap LRU. This includes new zswap stores, * as well as recent zswap LRU rotations. * * These pages are likely to be warm, and might incur IO if the are written * to swap. */ atomic_long_t nr_zswap_protected; }; bool zswap_store(struct folio *folio); bool zswap_load(struct folio *folio); void zswap_invalidate(int type, pgoff_t offset); void zswap_swapon(int type); void zswap_swapoff(int type); void zswap_memcg_offline_cleanup(struct mem_cgroup *memcg); void zswap_lruvec_state_init(struct lruvec *lruvec); void zswap_folio_swapin(struct folio *folio); bool zswap_is_enabled(void); #else struct zswap_lruvec_state {}; static inline bool zswap_store(struct folio *folio) { return false; } static inline bool zswap_load(struct folio *folio) { return false; } static inline void zswap_invalidate(int type, pgoff_t offset) {} static inline void zswap_swapon(int type) {} static inline void zswap_swapoff(int type) {} static inline void zswap_memcg_offline_cleanup(struct mem_cgroup *memcg) {} static inline void zswap_lruvec_state_init(struct lruvec *lruvec) {} static inline void zswap_folio_swapin(struct folio *folio) {} static inline bool zswap_is_enabled(void) { return false; } #endif #endif /* _LINUX_ZSWAP_H */
Simpan