File tree Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ struct frontswap_ops {
26
26
extern void frontswap_register_ops (struct frontswap_ops * ops );
27
27
extern void frontswap_shrink (unsigned long );
28
28
extern unsigned long frontswap_curr_pages (void );
29
- #define FRONTSWAP_HAS_EXCLUSIVE_GETS
30
- extern void frontswap_tmem_exclusive_gets (bool );
31
29
32
30
extern bool __frontswap_test (struct swap_info_struct * , pgoff_t );
33
31
extern void __frontswap_init (unsigned type , unsigned long * map );
Original file line number Diff line number Diff line change @@ -32,13 +32,6 @@ static struct frontswap_ops *frontswap_ops __read_mostly;
32
32
#define for_each_frontswap_ops (ops ) \
33
33
for ((ops) = frontswap_ops; (ops); (ops) = (ops)->next)
34
34
35
- /*
36
- * If enabled, the underlying tmem implementation is capable of doing
37
- * exclusive gets, so frontswap_load, on a successful tmem_get must
38
- * mark the page as no longer in frontswap AND mark it dirty.
39
- */
40
- static bool frontswap_tmem_exclusive_gets_enabled __read_mostly ;
41
-
42
35
#ifdef CONFIG_DEBUG_FS
43
36
/*
44
37
* Counters available via /sys/kernel/debug/frontswap (if debugfs is
@@ -160,15 +153,6 @@ void frontswap_register_ops(struct frontswap_ops *ops)
160
153
}
161
154
EXPORT_SYMBOL (frontswap_register_ops );
162
155
163
- /*
164
- * Enable/disable frontswap exclusive gets (see above).
165
- */
166
- void frontswap_tmem_exclusive_gets (bool enable )
167
- {
168
- frontswap_tmem_exclusive_gets_enabled = enable ;
169
- }
170
- EXPORT_SYMBOL (frontswap_tmem_exclusive_gets );
171
-
172
156
/*
173
157
* Called when a swap device is swapon'd.
174
158
*/
@@ -296,13 +280,8 @@ int __frontswap_load(struct page *page)
296
280
if (!ret ) /* successful load */
297
281
break ;
298
282
}
299
- if (ret == 0 ) {
283
+ if (ret == 0 )
300
284
inc_frontswap_loads ();
301
- if (frontswap_tmem_exclusive_gets_enabled ) {
302
- SetPageDirty (page );
303
- __frontswap_clear (sis , offset );
304
- }
305
- }
306
285
return ret ;
307
286
}
308
287
EXPORT_SYMBOL (__frontswap_load );
You can’t perform that action at this time.
0 commit comments