PERFORCE change 119338 for review
Roman Divacky
rdivacky at FreeBSD.org
Sun May 6 15:09:25 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=119338
Change 119338 by rdivacky at rdivacky_witten on 2007/05/06 15:08:39
Use ni_startdir for *at semantic instead of using newly introduced ni_dvp.
Suggested by: pjd
Affected files ...
.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_lookup.c#3 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/namei.h#3 edit
Differences ...
==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_lookup.c#3 (text+ko) ====
@@ -192,8 +192,8 @@
ndp->ni_rootdir = fdp->fd_rdir;
ndp->ni_topdir = fdp->fd_jdir;
- if (ndp->ni_vdir)
- dp = ndp->ni_vdir;
+ if (ndp->ni_startdir)
+ dp = ndp->ni_startdir;
else
dp = fdp->fd_cdir;
vfslocked = VFS_LOCK_GIANT(dp->v_mount);
==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/namei.h#3 (text+ko) ====
@@ -63,11 +63,10 @@
*/
const char *ni_dirp; /* pathname pointer */
enum uio_seg ni_segflg; /* location of pathname */
- struct vnode *ni_vdir; /* relative directory */
/*
* Arguments to lookup.
*/
- struct vnode *ni_startdir; /* starting directory */
+ struct vnode *ni_startdir; /* starting directory, used for *at stuff */
struct vnode *ni_rootdir; /* logical root directory */
struct vnode *ni_topdir; /* logical top directory */
/*
@@ -161,7 +160,7 @@
ndp->ni_segflg = segflg;
ndp->ni_dirp = namep;
ndp->ni_cnd.cn_thread = td;
- ndp->ni_vdir = NULL;
+ ndp->ni_startdir = NULL;
}
static __inline void
@@ -177,7 +176,7 @@
ndp->ni_segflg = segflg;
ndp->ni_dirp = namep;
ndp->ni_cnd.cn_thread = td;
- ndp->ni_vdir = dvp;
+ ndp->ni_startdir = dvp;
}
#define NDF_NO_DVP_RELE 0x00000001
More information about the p4-projects
mailing list