Skip to contentSkip to conversation

frontswap-remove-frontswap_test.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 23, 2022

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: frontswap: remove frontswap_test
has been removed from the -mm tree. Its filename was
frontswap-remove-frontswap_test.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: frontswap: remove frontswap_test

frontswap_test is unused now, remove it.

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]>

---

 include/linux/frontswap.h |   11 -----------
 mm/frontswap.c            |    2 +-
 2 files changed, 1 insertion(+), 12 deletions(-)
include/linux/frontswap.h renamed from include/linux/frontswap.h~frontswap-remove-frontswap_test +0 -11
@@ -18,7 +18,6 @@ struct frontswap_ops {
 
 extern void frontswap_register_ops(struct frontswap_ops *ops);
 
-extern bool __frontswap_test(struct swap_info_struct *, pgoff_t);
 extern void frontswap_init(unsigned type, unsigned long *map);
 extern int __frontswap_store(struct page *page);
 extern int __frontswap_load(struct page *page);
@@ -33,11 +32,6 @@ static inline bool frontswap_enabled(voi
 	return static_branch_unlikely(&frontswap_enabled_key);
 }
 
-static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset)
-{
-	return __frontswap_test(sis, offset);
-}
-
 static inline void frontswap_map_set(struct swap_info_struct *p,
 				     unsigned long *map)
 {
@@ -55,11 +49,6 @@ static inline bool frontswap_enabled(voi
 {
 	return false;
 }
-
-static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset)
-{
-	return false;
-}
 
 static inline void frontswap_map_set(struct swap_info_struct *p,
 				     unsigned long *map)
mm/frontswap.c renamed from mm/frontswap.c~frontswap-remove-frontswap_test +1 -1
@@ -179,7 +179,7 @@ void frontswap_init(unsigned type, unsig
 		ops->init(type);
 }
 
-bool __frontswap_test(struct swap_info_struct *sis,
+static bool __frontswap_test(struct swap_info_struct *sis,
 				pgoff_t offset)
 {
 	if (sis->frontswap_map)

_

Patches currently in -mm which might be from [email protected] are