Re: [PATCH 2/4] EXT4: Set NOSEC flag early when there are no xattrs

From: Andi Kleen
Date: Sat May 28 2011 - 10:43:37 EST


On Sat, May 28, 2011 at 11:08:01AM +0200, Marco Stornelli wrote:
> Il 28/05/2011 00:54, Andi Kleen ha scritto:
> >From: Andi Kleen<ak@xxxxxxxxxxxxxxx>
> >
> >This avoids a xattr lookup on every write.
> >
> >Cc: tytso@xxxxxxx
> >Signed-off-by: Andi Kleen<ak@xxxxxxxxxxxxxxx>
>
> Are ext2/3 affected too? It seems to me that more or less the xattr
> management for the extN series is the same, isn't it?

Yes, they could be changed the same way.

Note however that the file system specific change is only a relatively
minor optimization (avoids the first lookup). The important one is
the cache which every file system get's automatically without changes.

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