diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/seq_buf.h | 4 | ||||
-rw-r--r-- | include/linux/shrinker.h | 13 |
2 files changed, 1 insertions, 16 deletions
diff --git a/include/linux/seq_buf.h b/include/linux/seq_buf.h index c055243ec206..52791e070506 100644 --- a/include/linux/seq_buf.h +++ b/include/linux/seq_buf.h @@ -173,8 +173,4 @@ int seq_buf_bprintf(struct seq_buf *s, const char *fmt, const u32 *binary); void seq_buf_do_printk(struct seq_buf *s, const char *lvl); -enum string_size_units; -void seq_buf_human_readable_u64(struct seq_buf *s, u64 v, - const enum string_size_units units); - #endif /* _LINUX_SEQ_BUF_H */ diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h index 106622ddac77..1a00be90d93a 100644 --- a/include/linux/shrinker.h +++ b/include/linux/shrinker.h @@ -24,8 +24,6 @@ struct shrinker_info { struct shrinker_info_unit *unit[]; }; -struct seq_buf; - /* * This struct is used to pass information from page reclaim to the shrinkers. * We consolidate the values for easier extension later. @@ -82,12 +80,10 @@ struct shrink_control { * @flags determine the shrinker abilities, like numa awareness */ struct shrinker { - const char *name; unsigned long (*count_objects)(struct shrinker *, struct shrink_control *sc); unsigned long (*scan_objects)(struct shrinker *, struct shrink_control *sc); - void (*to_text)(struct seq_buf *, struct shrinker *); long batch; /* reclaim batch size, 0 = default */ int seeks; /* seeks to recreate an obj */ @@ -114,16 +110,11 @@ struct shrinker { #endif #ifdef CONFIG_SHRINKER_DEBUG int debugfs_id; + const char *name; struct dentry *debugfs_entry; #endif /* objs pending delete, per node */ atomic_long_t *nr_deferred; - - atomic_long_t objects_requested_to_free; - atomic_long_t objects_freed; - unsigned long last_freed; /* timestamp, in jiffies */ - unsigned long last_scanned; /* timestamp, in jiffies */ - atomic64_t ns_run; }; #define DEFAULT_SEEKS 2 /* A good number if you don't know better. */ @@ -144,8 +135,6 @@ __printf(2, 3) struct shrinker *shrinker_alloc(unsigned int flags, const char *fmt, ...); void shrinker_register(struct shrinker *shrinker); void shrinker_free(struct shrinker *shrinker); -void shrinker_to_text(struct seq_buf *, struct shrinker *); -void shrinkers_to_text(struct seq_buf *); static inline bool shrinker_try_get(struct shrinker *shrinker) { |