[Tux3] Deferred namespace operations, third attempt

OGAWA Hirofumi hirofumi at mail.parknet.co.jp
Sat Dec 6 16:10:26 PST 2008


> @@ -1094,7 +1094,7 @@ static int __emul_lookup_dentry(const char *name, struct nameidata *nd)
>  		path_get(&fs->root);
>  		read_unlock(&fs->lock);
>  		if (path_walk(name, nd) == 0) {
> -			if (nd->path.dentry->d_inode) {
> +			if (d_negative(nd->path.dentry)) {
>  				path_put(&old_path);
>  				return 1;
>  			}

Although I'm not seeing whole path, before I forget, this should be
!d_negative(nd->path.dentry).
-- 
OGAWA Hirofumi <hirofumi at mail.parknet.co.jp>

_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list