diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2002-09-25 02:45:50 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-09-25 02:45:50 +0000 |
commit | d4820f803683619b5fcaee9cff42b8f5b015cc3b (patch) | |
tree | 8bfdbb5b73f82094d365374315c348adf0d1df8f /sys/ufs/ufs/ufs_inode.c | |
parent | 8823f1b6db716d27bea88af1ab5adb536b3358bd (diff) | |
download | src-d4820f803683619b5fcaee9cff42b8f5b015cc3b.tar.gz src-d4820f803683619b5fcaee9cff42b8f5b015cc3b.zip |
- Lock accesses to v_usecount.
- Convert interlock locks to use standard macros.
Notes
Notes:
svn path=/head/; revision=103944
Diffstat (limited to 'sys/ufs/ufs/ufs_inode.c')
-rw-r--r-- | sys/ufs/ufs/ufs_inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/ufs/ufs/ufs_inode.c b/sys/ufs/ufs/ufs_inode.c index d32709e5ef45..24faeb3e3c9b 100644 --- a/sys/ufs/ufs/ufs_inode.c +++ b/sys/ufs/ufs/ufs_inode.c @@ -76,8 +76,10 @@ ufs_inactive(ap) mode_t mode; int error = 0; + VI_LOCK(vp); if (prtactive && vp->v_usecount != 0) vprint("ufs_inactive: pushing active", vp); + VI_UNLOCK(vp); /* * Ignore inodes related to stale file handles. @@ -149,8 +151,10 @@ ufs_reclaim(ap) int i; #endif + VI_LOCK(vp); if (prtactive && vp->v_usecount != 0) vprint("ufs_reclaim: pushing active", vp); + VI_UNLOCK(vp); if (ip->i_flag & IN_LAZYMOD) { ip->i_flag |= IN_MODIFIED; UFS_UPDATE(vp, 0); |