diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-01-14 00:13:45 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-01-14 00:13:45 +0000 |
commit | a4db49537b0def4e1a63bb696ab51b7549fcdf23 (patch) | |
tree | fe7842143c9585ef2ebb793d812ec71cc4488a51 /sys/vm | |
parent | 59047ccadec9566c55492972f002d65a4e3f6460 (diff) | |
download | src-a4db49537b0def4e1a63bb696ab51b7549fcdf23.tar.gz src-a4db49537b0def4e1a63bb696ab51b7549fcdf23.zip |
Replace ffind_* with fget calls.
Make fget MPsafe.
Make fgetvp and fgetsock use the fget subsystem to reduce code bloat.
Push giant down in fpathconf().
Notes
Notes:
svn path=/head/; revision=89319
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_mmap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 9bf68c118722..47c243fb590c 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -292,11 +292,8 @@ mmap(td, uap) * sure it is of appropriate type. * don't let the descriptor disappear on us if we block */ - fp = ffind_hold(td, uap->fd); - if (fp == NULL) { - error = EBADF; + if ((error = fget(td, uap->fd, &fp)) != 0) goto done; - } if (fp->f_type != DTYPE_VNODE) { error = EINVAL; goto done; |