Re: vfs-scale, d_revalidate from nfsd

From: Al Viro
Date: Thu Jan 13 2011 - 22:22:33 EST


> BTW, why on the earth do you have that:
> static int xattr_hide_revalidate(struct dentry *dentry, struct nameidata *nd)
> {
> if (nd->flags & LOOKUP_RCU)
> return -ECHILD;
> return -EPERM;
> }
> when the sole intent of that sucker is to have dentry of /.xattr (pinned
> in dcache and hashed all along) rejected on lookups from root? IOW, WTF
> bother with -ECHILD here at all?

PS: that's fs/reiserfs/xattr.c
--
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/