ufs_inode.c (234605) | ufs_inode.c (234607) |
---|---|
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. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ufs_inode.c 8.9 (Berkeley) 5/14/95 35 */ 36 37#include <sys/cdefs.h> | 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. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ufs_inode.c 8.9 (Berkeley) 5/14/95 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/ufs/ufs/ufs_inode.c 234605 2012-04-23 13:21:28Z trasz $"); | 38__FBSDID("$FreeBSD: head/sys/ufs/ufs/ufs_inode.c 234607 2012-04-23 14:10:34Z trasz $"); |
39 40#include "opt_quota.h" 41#include "opt_ufs.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/vnode.h> 46#include <sys/lock.h> --- 21 unchanged lines hidden (view full) --- 68ufs_inactive(ap) 69 struct vop_inactive_args /* { 70 struct vnode *a_vp; 71 struct thread *a_td; 72 } */ *ap; 73{ 74 struct vnode *vp = ap->a_vp; 75 struct inode *ip = VTOI(vp); | 39 40#include "opt_quota.h" 41#include "opt_ufs.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/vnode.h> 46#include <sys/lock.h> --- 21 unchanged lines hidden (view full) --- 68ufs_inactive(ap) 69 struct vop_inactive_args /* { 70 struct vnode *a_vp; 71 struct thread *a_td; 72 } */ *ap; 73{ 74 struct vnode *vp = ap->a_vp; 75 struct inode *ip = VTOI(vp); |
76 struct thread *td = ap->a_td; | |
77 mode_t mode; 78 int error = 0; 79 off_t isize; 80 struct mount *mp; 81 82 mp = NULL; 83 /* 84 * Ignore inodes related to stale file handles. --- 82 unchanged lines hidden (view full) --- 167 } 168 } 169out: 170 /* 171 * If we are done with the inode, reclaim it 172 * so that it can be reused immediately. 173 */ 174 if (ip->i_mode == 0) | 76 mode_t mode; 77 int error = 0; 78 off_t isize; 79 struct mount *mp; 80 81 mp = NULL; 82 /* 83 * Ignore inodes related to stale file handles. --- 82 unchanged lines hidden (view full) --- 166 } 167 } 168out: 169 /* 170 * If we are done with the inode, reclaim it 171 * so that it can be reused immediately. 172 */ 173 if (ip->i_mode == 0) |
175 vrecycle(vp, td); | 174 vrecycle(vp); |
176 if (mp != NULL) 177 vn_finished_secondary_write(mp); 178 return (error); 179} 180 181void 182ufs_prepare_reclaim(struct vnode *vp) 183{ --- 56 unchanged lines hidden --- | 175 if (mp != NULL) 176 vn_finished_secondary_write(mp); 177 return (error); 178} 179 180void 181ufs_prepare_reclaim(struct vnode *vp) 182{ --- 56 unchanged lines hidden --- |