diff options
author | 2005-07-28 22:37:39 +0000 | |
---|---|---|
committer | 2005-07-28 22:37:39 +0000 | |
commit | d2e0ba60242dc81f5eff13f7a7739a92b5c0853a (patch) | |
tree | 8b07e72c5765d156da8d4e02bcfb0237ccd76453 | |
parent | - use full month name for .Dd (diff) | |
download | wireguard-openbsd-d2e0ba60242dc81f5eff13f7a7739a92b5c0853a.tar.xz wireguard-openbsd-d2e0ba60242dc81f5eff13f7a7739a92b5c0853a.zip |
KNF
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_vnops.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vnops.c b/sys/ufs/ext2fs/ext2fs_vnops.c index 30654bdeca8..11cbaa0add4 100644 --- a/sys/ufs/ext2fs/ext2fs_vnops.c +++ b/sys/ufs/ext2fs/ext2fs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_vnops.c,v 1.39 2005/07/03 20:14:01 drahn Exp $ */ +/* $OpenBSD: ext2fs_vnops.c,v 1.40 2005/07/28 22:37:39 pedro Exp $ */ /* $NetBSD: ext2fs_vnops.c,v 1.1 1997/06/11 09:34:09 bouyer Exp $ */ /* @@ -1348,23 +1348,25 @@ ext2fs_reclaim(v) struct inode *ip; extern int prtactive; - if (prtactive && vp->v_usecount != 0) - vprint("ext2fs_reclaim: pushing active", vp); - /* - * Remove the inode from its hash chain. - */ - ip = VTOI(vp); - ufs_ihashrem(ip); - /* - * Purge old data structures associated with the inode. - */ - cache_purge(vp); - if (ip->i_devvp) { - vrele(ip->i_devvp); - } + if (prtactive && vp->v_usecount != 0) + vprint("ext2fs_reclaim: pushing active", vp); + + /* + * Remove the inode from its hash chain. + */ + ip = VTOI(vp); + ufs_ihashrem(ip); + + /* + * Purge old data structures associated with the inode. + */ + cache_purge(vp); + if (ip->i_devvp) + vrele(ip->i_devvp); FREE(vp->v_data, M_EXT2FSNODE); vp->v_data = NULL; + return (0); } |