you want to keep this.
> rootmnt=mntget( ns->root );
> /* put_namespace( ns ); */
do the put once you're completly done with it
>
> root = dget(rootmnt->mnt_root);
>
> spin_lock(&dcache_lock);
> res = __d_path(dentry, vfsmnt, root, rootmnt, buf, buflen);
> spin_unlock(&dcache_lock);
>
> dput(root);
> mntput(rootmnt);
> return res;
looks okay to me otherwise.
-
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/