ufs_inode.c (66615) | ufs_inode.c (71576) |
---|---|
1/* 2 * Copyright (c) 1991, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)ufs_inode.c 8.9 (Berkeley) 5/14/95 | 1/* 2 * Copyright (c) 1991, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)ufs_inode.c 8.9 (Berkeley) 5/14/95 |
39 * $FreeBSD: head/sys/ufs/ufs/ufs_inode.c 66615 2000-10-04 01:29:17Z jasone $ | 39 * $FreeBSD: head/sys/ufs/ufs/ufs_inode.c 71576 2001-01-24 12:35:55Z jasone $ |
40 */ 41 42#include "opt_ffs.h" 43#include "opt_quota.h" 44 45#include <sys/param.h> 46#include <sys/vnode.h> 47#include <sys/mount.h> 48#include <sys/malloc.h> | 40 */ 41 42#include "opt_ffs.h" 43#include "opt_quota.h" 44 45#include <sys/param.h> 46#include <sys/vnode.h> 47#include <sys/mount.h> 48#include <sys/malloc.h> |
49#include <sys/mutex.h> |
|
49 50#include <ufs/ufs/extattr.h> 51#include <ufs/ufs/quota.h> 52#include <ufs/ufs/inode.h> 53#include <ufs/ufs/ufsmount.h> 54#include <ufs/ufs/ufs_extern.h> 55 56/* --- 46 unchanged lines hidden (view full) --- 103 } 104out: 105 VOP_UNLOCK(vp, 0, p); 106 /* 107 * If we are done with the inode, reclaim it 108 * so that it can be reused immediately. 109 */ 110 if (ip->i_mode == 0) | 50 51#include <ufs/ufs/extattr.h> 52#include <ufs/ufs/quota.h> 53#include <ufs/ufs/inode.h> 54#include <ufs/ufs/ufsmount.h> 55#include <ufs/ufs/ufs_extern.h> 56 57/* --- 46 unchanged lines hidden (view full) --- 104 } 105out: 106 VOP_UNLOCK(vp, 0, p); 107 /* 108 * If we are done with the inode, reclaim it 109 * so that it can be reused immediately. 110 */ 111 if (ip->i_mode == 0) |
111 vrecycle(vp, (struct simplelock *)0, p); | 112 vrecycle(vp, NULL, p); |
112 return (error); 113} 114 115/* 116 * Reclaim an inode so that it can be used for other purposes. 117 */ 118int 119ufs_reclaim(ap) --- 43 unchanged lines hidden --- | 113 return (error); 114} 115 116/* 117 * Reclaim an inode so that it can be used for other purposes. 118 */ 119int 120ufs_reclaim(ap) --- 43 unchanged lines hidden --- |