PERFORCE change 120828 for review
Roman Divacky
rdivacky at FreeBSD.org
Sun Jun 3 10:53:48 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=120828
Change 120828 by rdivacky at rdivacky_witten on 2007/06/03 10:52:47
Remove pointless path and pathseg arguments from kern_common_* functions.
They serve no purpose...
Affected files ...
.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#6 edit
Differences ...
==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#6 (text+ko) ====
@@ -87,10 +87,10 @@
const struct timespec *, int, int);
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);
-static int kern_common_access(struct thread *td, char *path, enum uio_seg pathseg,
- int flags, struct nameidata *nd);
+static int kern_common_open(struct thread *td, int flags, int mode,
+ struct nameidata *nd);
+static int kern_common_access(struct thread *td, int flags,
+ struct nameidata *nd);
static int kern_common_stat(struct thread *td, struct stat *sbp,
struct nameidata *nd);
@@ -970,7 +970,7 @@
AUDIT_ARG(mode, mode);
NDINIT(&nd, LOOKUP, FOLLOW | AUDITVNODE1 | MPSAFE, pathseg, path, td);
- return kern_common_open(td, path, pathseg, flags, mode, &nd);
+ return kern_common_open(td, flags, mode, &nd);
}
int
@@ -999,15 +999,14 @@
NDINIT_AT(&nd, LOOKUP, FOLLOW | AUDITVNODE1 | MPSAFE, pathseg, path, td, dir_vn);
- error = kern_common_open(td, path, pathseg, flags, mode, &nd);
+ error = kern_common_open(td, flags, mode, &nd);
if (dirfd != AT_FDCWD)
vrele(dir_vn);
return (error);
}
static int
-kern_common_open(struct thread *td, char *path, enum uio_seg pathseg, int flags,
- int mode, struct nameidata *nd)
+kern_common_open(struct thread *td, int flags, int mode, struct nameidata *nd)
{
struct proc *p = td->td_proc;
struct filedesc *fdp = p->p_fd;
@@ -1908,7 +1907,7 @@
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF | MPSAFE | AUDITVNODE1,
pathseg, path, td);
- return kern_common_access(td, path, pathseg, flags, &nd);
+ return kern_common_access(td, flags, &nd);
}
int
@@ -1933,15 +1932,14 @@
NDINIT_AT(&nd, LOOKUP, FOLLOW | LOCKLEAF | MPSAFE | AUDITVNODE1,
pathseg, path, td, dir_vn);
- error = kern_common_access(td, path, pathseg, flags, &nd);
+ error = kern_common_access(td, flags, &nd);
if (dirfd != AT_FDCWD)
vrele(dir_vn);
return (error);
}
static int
-kern_common_access(struct thread *td, char *path, enum uio_seg pathseg, int flags,
- struct nameidata *nd)
+kern_common_access(struct thread *td, int flags, struct nameidata *nd)
{
struct ucred *cred, *tmpcred;
struct vnode *vp;
More information about the p4-projects
mailing list