diff options
Diffstat (limited to 'include/linux/sunrpc/cache.h')
| -rw-r--r-- | include/linux/sunrpc/cache.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 23ee25981a0c..8e5bf3036652 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h | |||
| @@ -59,6 +59,11 @@ struct cache_head { | |||
| 59 | 59 | ||
| 60 | #define CACHE_NEW_EXPIRY 120 /* keep new things pending confirmation for 120 seconds */ | 60 | #define CACHE_NEW_EXPIRY 120 /* keep new things pending confirmation for 120 seconds */ |
| 61 | 61 | ||
| 62 | struct cache_detail_procfs { | ||
| 63 | struct proc_dir_entry *proc_ent; | ||
| 64 | struct proc_dir_entry *flush_ent, *channel_ent, *content_ent; | ||
| 65 | }; | ||
| 66 | |||
| 62 | struct cache_detail { | 67 | struct cache_detail { |
| 63 | struct module * owner; | 68 | struct module * owner; |
| 64 | int hash_size; | 69 | int hash_size; |
| @@ -98,12 +103,14 @@ struct cache_detail { | |||
| 98 | 103 | ||
| 99 | /* fields for communication over channel */ | 104 | /* fields for communication over channel */ |
| 100 | struct list_head queue; | 105 | struct list_head queue; |
| 101 | struct proc_dir_entry *proc_ent; | ||
| 102 | struct proc_dir_entry *flush_ent, *channel_ent, *content_ent; | ||
| 103 | 106 | ||
| 104 | atomic_t readers; /* how many time is /chennel open */ | 107 | atomic_t readers; /* how many time is /chennel open */ |
| 105 | time_t last_close; /* if no readers, when did last close */ | 108 | time_t last_close; /* if no readers, when did last close */ |
| 106 | time_t last_warn; /* when we last warned about no readers */ | 109 | time_t last_warn; /* when we last warned about no readers */ |
| 110 | |||
| 111 | union { | ||
| 112 | struct cache_detail_procfs procfs; | ||
| 113 | } u; | ||
| 107 | }; | 114 | }; |
| 108 | 115 | ||
| 109 | 116 | ||
