Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158577
b: refs/heads/master
c: 173912a
h: refs/heads/master
i:
  158575: da1820f
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Aug 9, 2009
1 parent cc333e4 commit 4078f4d
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 132 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc74b4f5e63a09fb78e245794a0de1e5a2716bbe
refs/heads/master: 173912a6add00f4715774dcecf9ee53274c5924c
11 changes: 9 additions & 2 deletions trunk/include/linux/sunrpc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ struct cache_head {

#define CACHE_NEW_EXPIRY 120 /* keep new things pending confirmation for 120 seconds */

struct cache_detail_procfs {
struct proc_dir_entry *proc_ent;
struct proc_dir_entry *flush_ent, *channel_ent, *content_ent;
};

struct cache_detail {
struct module * owner;
int hash_size;
Expand Down Expand Up @@ -98,12 +103,14 @@ struct cache_detail {

/* fields for communication over channel */
struct list_head queue;
struct proc_dir_entry *proc_ent;
struct proc_dir_entry *flush_ent, *channel_ent, *content_ent;

atomic_t readers; /* how many time is /chennel open */
time_t last_close; /* if no readers, when did last close */
time_t last_warn; /* when we last warned about no readers */

union {
struct cache_detail_procfs procfs;
} u;
};


Expand Down
Loading

0 comments on commit 4078f4d

Please sign in to comment.