NFSD: Clean up the idmapper warning...
What part of 'internal use' is so hard to understand? Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
e57aed77ad
commit
2da8ca26c6
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue