diff options
| author | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
|---|---|---|
| committer | Mark Brown <[email protected]> | 2015-10-12 18:09:27 +0100 | 
| commit | 79828b4fa835f73cdaf4bffa48696abdcbea9d02 (patch) | |
| tree | 5e0fa7156acb75ba603022bc807df8f2fedb97a8 /include/linux/sunrpc/cache.h | |
| parent | 721b51fcf91898299d96f4b72cb9434cda29dce6 (diff) | |
| parent | 8c1a9d6323abf0fb1e5dad96cf3f1c783505ea5a (diff) | |
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-fix-rt5645
Diffstat (limited to 'include/linux/sunrpc/cache.h')
| -rw-r--r-- | include/linux/sunrpc/cache.h | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 437ddb6c4aef..03d3b4c92d9f 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -46,7 +46,7 @@   *    */  struct cache_head { -	struct cache_head * next; +	struct hlist_node	cache_list;  	time_t		expiry_time;	/* After time time, don't use the data */  	time_t		last_refresh;   /* If CACHE_PENDING, this is when upcall   					 * was sent, else this is when update was received @@ -73,7 +73,7 @@ struct cache_detail_pipefs {  struct cache_detail {  	struct module *		owner;  	int			hash_size; -	struct cache_head **	hash_table; +	struct hlist_head *	hash_table;  	rwlock_t		hash_lock;  	atomic_t		inuse; /* active user-space update or lookup */ @@ -224,6 +224,11 @@ extern int sunrpc_cache_register_pipefs(struct dentry *parent, const char *,  					umode_t, struct cache_detail *);  extern void sunrpc_cache_unregister_pipefs(struct cache_detail *); +/* Must store cache_detail in seq_file->private if using next three functions */ +extern void *cache_seq_start(struct seq_file *file, loff_t *pos); +extern void *cache_seq_next(struct seq_file *file, void *p, loff_t *pos); +extern void cache_seq_stop(struct seq_file *file, void *p); +  extern void qword_add(char **bpp, int *lp, char *str);  extern void qword_addhex(char **bpp, int *lp, char *buf, int blen);  extern int qword_get(char **bpp, char *dest, int bufsize);  |