ufs_inode.c (76117) | ufs_inode.c (76357) |
---|---|
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 76117 2001-04-29 02:45:39Z grog $ | 39 * $FreeBSD: head/sys/ufs/ufs/ufs_inode.c 76357 2001-05-08 07:42:20Z mckusick $ |
40 */ 41 42#include "opt_quota.h" 43#include "opt_ufs.h" 44 45#include <sys/param.h> 46#include <sys/vnode.h> 47#include <sys/mount.h> --- 24 unchanged lines hidden (view full) --- 72 if (prtactive && vp->v_usecount != 0) 73 vprint("ufs_inactive: pushing active", vp); 74 75 /* 76 * Ignore inodes related to stale file handles. 77 */ 78 if (ip->i_mode == 0) 79 goto out; | 40 */ 41 42#include "opt_quota.h" 43#include "opt_ufs.h" 44 45#include <sys/param.h> 46#include <sys/vnode.h> 47#include <sys/mount.h> --- 24 unchanged lines hidden (view full) --- 72 if (prtactive && vp->v_usecount != 0) 73 vprint("ufs_inactive: pushing active", vp); 74 75 /* 76 * Ignore inodes related to stale file handles. 77 */ 78 if (ip->i_mode == 0) 79 goto out; |
80 if (ip->i_effnlink == 0 && DOINGSOFTDEP(vp)) 81 softdep_releasefile(ip); |
|
80 if (ip->i_nlink <= 0 && (vp->v_mount->mnt_flag & MNT_RDONLY) == 0) { 81 (void) vn_write_suspend_wait(vp, NULL, V_WAIT); 82#ifdef QUOTA 83 if (!getinoquota(ip)) 84 (void)chkiq(ip, -1, NOCRED, 0); 85#endif 86#ifdef UFS_EXTATTR 87 ufs_extattr_vnode_inactive(ap->a_vp, ap->a_p); --- 84 unchanged lines hidden --- | 82 if (ip->i_nlink <= 0 && (vp->v_mount->mnt_flag & MNT_RDONLY) == 0) { 83 (void) vn_write_suspend_wait(vp, NULL, V_WAIT); 84#ifdef QUOTA 85 if (!getinoquota(ip)) 86 (void)chkiq(ip, -1, NOCRED, 0); 87#endif 88#ifdef UFS_EXTATTR 89 ufs_extattr_vnode_inactive(ap->a_vp, ap->a_p); --- 84 unchanged lines hidden --- |