Re: [patch 2/2] fix file counting
- From: Dipankar Sarma <dipankar@xxxxxxxxxx>
- Date: Sun, 29 Jan 2006 00:40:16 +0530
On Sat, Jan 28, 2006 at 10:51:08AM -0800, Andrew Morton wrote:
> Dipankar Sarma <dipankar@xxxxxxxxxx> wrote:
> >
> > > (And it forgot to initialise the atomic_t)
> >
> > I declared it static. Isn't that sufficient ?
>
> ATOMIC_INIT(0);
OK, I will put an explicit initializer for that static variable.
>
> > > (And has a couple of suspicious-looking module exports. We don't support
> > > CONFIG_PROC_FS=m).
> >
> > Where ?
>
> +EXPORT_SYMBOL(get_nr_files);
> +EXPORT_SYMBOL(get_max_files);
>
> Why are these needed?
get_max_files() is needed by unix sockets which can be a module.
IIRC, xfs needed get_nr_files() when I originally wrote this patch.
There doesn't seem to be any in-tree use now,
but files_stat was earlier exported and we should probably
mark this for unexport at a later time.
Thanks
Dipankar
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [patch 0/2] RCU: fix various latency/oom issues
- From: Dipankar Sarma
- Re: [patch 1/2] rcu batch tuning
- From: Dipankar Sarma
- Re: [patch 2/2] fix file counting
- From: Dipankar Sarma
- Re: [patch 2/2] fix file counting
- From: Eric Dumazet
- Re: [patch 2/2] fix file counting
- From: Andrew Morton
- Re: [patch 2/2] fix file counting
- From: Paul E. McKenney
- Re: [patch 2/2] fix file counting
- From: Andrew Morton
- Re: [patch 2/2] fix file counting
- From: Dipankar Sarma
- Re: [patch 2/2] fix file counting
- From: Andrew Morton
- [patch 0/2] RCU: fix various latency/oom issues
- Prev by Date: Re: [PATCH] net/core/flow.c CONFIG_SMP Fix in flow_cache_flush(void)
- Next by Date: Re: PROBLEM: kernel BUG at mm/rmap.c:486 - kernel 2.6.15-r1
- Previous by thread: Re: [patch 2/2] fix file counting
- Next by thread: Re: [patch 2/2] fix file counting
- Index(es):