Re: [patch] Use kref for struct file.f_count refcounter

From: Andrew Morton
Date: Tue Jul 27 2004 - 00:33:03 EST


Ravikiran G Thirumalai <kiran@xxxxxxxxxx> wrote:
>
> This patch makes use of the kref api for the
> struct file.f_count refcounter. This depends
> on the new kref apis kref_read and kref_put_last
> added by means of my earlier patch today.

Sorry, but I can't really see how this improves anything. It'll slow
things down infinitesimally and it forces the reader to look elsewhere in
the tree to see what's going on.

-
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/