lkml.org 
[lkml]   [2003]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [2.4.19] How to get the path name of a struct dentry
Date
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 12 March 2003 14:59, Christoph Hellwig wrote:
> >
> > ns=current->namespace;
> > /* get_namespace( ns ); */
>
> you want to keep this.

I commented it because I compile my code as a module and the inlined function
put_namespace() calls umount_tree() that is not exported. So I have to copy
it to my modules code.


>
> > 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);

You mean put_namespace(ns) should go here?

> > return res;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+b0mJwicyCTir8T4RAnXHAJ9d3NVrT32iH3ct5ZZLCj3ZjU25vwCglvw5
A+nWzvgKOvjKc46J4jwmAPc=
=Hyot
-----END PGP SIGNATURE-----
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.058 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site