diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-07-28 22:37:40 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-07-28 22:37:40 +0000 |
commit | e66cbb8f10b8cb269e6fc5d7497d1509681db50e (patch) | |
tree | 78f151e4e5a67b7208cb6b3f770221b6096c066b /sys/ufs/ext2fs | |
parent | b67a122e13209a063dd13ad3fe237e6853b45bfa (diff) |
KNF
Diffstat (limited to 'sys/ufs/ext2fs')
-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); } |