diff options
author | alfred <alfred@FreeBSD.org> | 2002-01-14 00:13:45 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-01-14 00:13:45 +0000 |
commit | 1f82bc18d1d1e906cd9ed68039acb051fa6e11cf (patch) | |
tree | fe7842143c9585ef2ebb793d812ec71cc4488a51 /sys/fs/portalfs | |
parent | c4988e25d265bba2c63409a8c8b8708c13d8525e (diff) | |
download | FreeBSD-src-1f82bc18d1d1e906cd9ed68039acb051fa6e11cf.zip FreeBSD-src-1f82bc18d1d1e906cd9ed68039acb051fa6e11cf.tar.gz |
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().
Diffstat (limited to 'sys/fs/portalfs')
-rw-r--r-- | sys/fs/portalfs/portal_vnops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c index e8feeb1..a7d9832 100644 --- a/sys/fs/portalfs/portal_vnops.c +++ b/sys/fs/portalfs/portal_vnops.c @@ -402,11 +402,8 @@ portal_open(ap) * Check that the mode the file is being opened for is a subset * of the mode of the existing descriptor. */ - fp = ffind_hold(td, fd); - if (fp == NULL) { - error = EBADF; + if ((error = fget(td, fd, &fp)) != 0) goto bad; - } if (((ap->a_mode & (FREAD|FWRITE)) | fp->f_flag) != fp->f_flag) { fdrop(fp, td); portal_closefd(td, fd); |