diff options
author | hsu <hsu@FreeBSD.org> | 2003-02-16 02:15:15 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2003-02-16 02:15:15 +0000 |
commit | 762f64befa2de7c091621551a2a9444e0cab2e96 (patch) | |
tree | 2abf315e0bf862a5010d22f6273fcc1d8f9e7a06 /sys/kern/vfs_extattr.c | |
parent | ef91f3388a42801e8e91401cc9ec19e45e8941f4 (diff) | |
download | FreeBSD-src-762f64befa2de7c091621551a2a9444e0cab2e96.zip FreeBSD-src-762f64befa2de7c091621551a2a9444e0cab2e96.tar.gz |
Remove extraneous FILEDESC_LOCK around atomic read.
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r-- | sys/kern/vfs_extattr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index b78d545..0c89a94 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -652,9 +652,7 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, if (error) return (error); fp = nfp; - FILEDESC_LOCK(fdp); cmode = ((mode &~ fdp->fd_cmask) & ALLPERMS) &~ S_ISTXT; - FILEDESC_UNLOCK(fdp); NDINIT(&nd, LOOKUP, FOLLOW, pathseg, path, td); td->td_dupfd = -indx - 1; /* XXX check for fdopen */ /* |