Re: It's time to hack on dentry_stat?

From: Ray Lee
Date: Wed May 07 2008 - 12:11:01 EST


On Wed, May 7, 2008 at 8:25 AM, Matthew Wilcox <matthew@xxxxxx> wrote:
> On Wed, May 07, 2008 at 08:08:09AM -0700, Ray Lee wrote:
> > One could hardcode the output of the last three (four?) fields, yes?
> > Slightly grotty, but if it comes with a decent memory savings...
>
> How can it be a 'decent memory saving'? There is exactly _one_ struct
> dentry_stat_t in the entire kernel. So you're talking about saving 4
> ints, or 16 bytes. Bet you it'd be more bytes to hardcode printing zero.

<shrug> Well, if there's one, then obviously there isn't. I'd assumed
it was a per-dentry overhead.
--
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/