Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 May 2007 16:00:33 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 119347 for review
Message-ID:  <200705061600.l46G0XXt037239@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119347

Change 119347 by rdivacky@rdivacky_witten on 2007/05/06 15:59:47

	Style changes suggested by pjd.

Affected files ...

.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#4 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/namei.h#4 edit

Differences ...

==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#4 (text+ko) ====

@@ -88,9 +88,9 @@
 static int vn_access(struct vnode *vp, int user_flags, struct ucred *cred,
     struct thread *td);
 static int kern_common_open(struct thread *td, char *path, enum uio_seg pathseg, 
-	int flags, int mode, struct nameidata *nd);
+    int flags, int mode, struct nameidata *nd);
 static int kern_common_access(struct thread *td, char *path, enum uio_seg pathseg, 
-	int flags, struct nameidata *nd);
+    int flags, struct nameidata *nd);
 
 /*
  * The module initialization routine for POSIX asynchronous I/O will

==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/namei.h#4 (text+ko) ====

@@ -66,7 +66,10 @@
 	/*
 	 * Arguments to lookup.
 	 */
-	struct	vnode *ni_startdir;	/* starting directory, used for *at stuff */
+	struct	vnode *ni_startdir;	/* 
+					 * starting directory, also used for 
+					 * rename and *at functions 
+					 */
 	struct	vnode *ni_rootdir;	/* logical root directory */
 	struct	vnode *ni_topdir;	/* logical top directory */
 	/*
@@ -148,20 +151,8 @@
 /*
  * Initialization of a nameidata structure.
  */
-static __inline void
-NDINIT(struct nameidata *ndp,
-	u_long op, u_long flags,
-	enum uio_seg segflg,
-	const char *namep,
-	struct thread *td)
-{
-	ndp->ni_cnd.cn_nameiop = op;
-	ndp->ni_cnd.cn_flags = flags;
-	ndp->ni_segflg = segflg;
-	ndp->ni_dirp = namep;
-	ndp->ni_cnd.cn_thread = td;
-	ndp->ni_startdir = NULL;
-}
+#define	NDINIT(ndp, op, flags, segflg, namep, td)	\
+		NDINIT_AT(ndp, op, flags, segflg, namep, td, NULL)
 
 static __inline void
 NDINIT_AT(struct nameidata *ndp,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705061600.l46G0XXt037239>