Re: [PATCH 11/12] HPPFS: add dentry_ops->d_revalidate

From: Al Viro
Date: Tue Sep 20 2005 - 22:47:25 EST


On Sun, Sep 18, 2005 at 04:10:07PM +0200, Paolo 'Blaisorblade' Giarrusso wrote:
> +static int hppfs_d_revalidate(struct dentry * dentry, struct nameidata * nd)
> +{
> + int (*d_revalidate)(struct dentry *, struct nameidata *);
> + struct dentry *proc_dentry;
> +
> + proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry;
> + if (proc_dentry->d_op && proc_dentry->d_op->d_revalidate)
> + d_revalidate = proc_dentry->d_op->d_revalidate;
> + else
> + return 1; /* "Still valid" code */
> +
> + return (*d_revalidate)(proc_dentry, nd);
> +}

Ahem... Guess what that will do with negative dentry?
-
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/