fdesc_vfsops.c (172697) | fdesc_vfsops.c (175202) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94 33 * | 1/*- 2 * Copyright (c) 1992, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software donated to Berkeley by 6 * Jan-Simon Pendry. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94 33 * |
34 * $FreeBSD: head/sys/fs/fdescfs/fdesc_vfsops.c 172697 2007-10-16 10:54:55Z alfred $ | 34 * $FreeBSD: head/sys/fs/fdescfs/fdesc_vfsops.c 175202 2008-01-10 01:10:58Z attilio $ |
35 */ 36 37/* 38 * /dev/fd Filesystem 39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 101 unchanged lines hidden (view full) --- 144{ 145 struct vnode *vp; 146 147 /* 148 * Return locked reference to root. 149 */ 150 vp = VFSTOFDESC(mp)->f_root; 151 VREF(vp); | 35 */ 36 37/* 38 * /dev/fd Filesystem 39 */ 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 101 unchanged lines hidden (view full) --- 144{ 145 struct vnode *vp; 146 147 /* 148 * Return locked reference to root. 149 */ 150 vp = VFSTOFDESC(mp)->f_root; 151 VREF(vp); |
152 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); | 152 vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); |
153 *vpp = vp; 154 return (0); 155} 156 157static int 158fdesc_statfs(mp, sbp, td) 159 struct mount *mp; 160 struct statfs *sbp; --- 54 unchanged lines hidden --- | 153 *vpp = vp; 154 return (0); 155} 156 157static int 158fdesc_statfs(mp, sbp, td) 159 struct mount *mp; 160 struct statfs *sbp; --- 54 unchanged lines hidden --- |