Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158573
b: refs/heads/master
c: 2da8ca2
h: refs/heads/master
i:
  158571: ee4b016
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Aug 9, 2009
1 parent a5dd9bb commit ce3d22c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: e57aed77ad48d28ac617ba157ad2f665f5301b30
refs/heads/master: 2da8ca26c6bfad685bfddf39728eac1c83906aa9
4 changes: 2 additions & 2 deletions trunk/fs/nfsd/nfs4idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h)
}

static void
warn_no_idmapd(struct cache_detail *detail)
warn_no_idmapd(struct cache_detail *detail, int has_died)
{
printk("nfsd: nfsv4 idmapping failing: has idmapd %s?\n",
detail->last_close? "died" : "not been started");
has_died ? "died" : "not been started");
}


Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/sunrpc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ struct cache_detail {
int (*cache_show)(struct seq_file *m,
struct cache_detail *cd,
struct cache_head *h);
void (*warn_no_listener)(struct cache_detail *cd,
int has_died);

struct cache_head * (*alloc)(void);
int (*match)(struct cache_head *orig, struct cache_head *new);
Expand All @@ -102,7 +104,6 @@ struct cache_detail {
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 */
void (*warn_no_listener)(struct cache_detail *cd);
};


Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sunrpc/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ static void warn_no_listener(struct cache_detail *detail)
if (detail->last_warn != detail->last_close) {
detail->last_warn = detail->last_close;
if (detail->warn_no_listener)
detail->warn_no_listener(detail);
detail->warn_no_listener(detail, detail->last_close != 0);
}
}

Expand Down

0 comments on commit ce3d22c

Please sign in to comment.