Messages in this thread | | | Date | Tue, 8 Jul 2003 12:20:08 -0400 | Subject | Re: [PATCH] path_lookup for 2.4.20-pre4 () | From | Jan Harkes <> |
| |
One thing you might want to add to avoid revalidating all pathnames that happen to start with a dot, like '.bashrc'.
Jan
On Tue, Jul 08, 2003 at 04:04:46PM +0200, Trond Myklebust wrote: > diff -u --recursive --new-file linux-2.4.22-odirect/fs/namei.c linux-2.4.22-fix_cto/fs/namei.c > --- linux-2.4.22-odirect/fs/namei.c 2003-06-27 13:34:41.000000000 +0200 > +++ linux-2.4.22-fix_cto/fs/namei.c 2003-07-08 15:51:08.000000000 +0200 > @@ -732,6 +732,24 @@ > nd->last_type = LAST_DOT; > else if (this.len == 2 && this.name[1] == '.') > nd->last_type = LAST_DOTDOT; + else + goto return_base; > +return_reval: > + /* > + * We bypassed the ordinary revalidation routines. > + * We may need to check the cached dentry for staleness. > + */
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |