Module Name: src
Committed By: manu
Date: Thu May 19 03:25:11 UTC 2011
Modified Files:
src/sys/ufs/ufs: ufs_inode.c
Log Message:
Call ufs_extattr_vnode_inactive before UFS_WAPBL_BEGIN, as the latter will
leave the vnode locked, and ufs_extattr_vnode_inactive does lock/unlock
To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/ufs/ufs/ufs_inode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/ufs/ufs/ufs_inode.c
diff -u src/sys/ufs/ufs/ufs_inode.c:1.85 src/sys/ufs/ufs/ufs_inode.c:1.86
--- src/sys/ufs/ufs/ufs_inode.c:1.85 Thu May 19 03:11:59 2011
+++ src/sys/ufs/ufs/ufs_inode.c Thu May 19 03:25:11 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_inode.c,v 1.85 2011/05/19 03:11:59 rmind Exp $ */
+/* $NetBSD: ufs_inode.c,v 1.86 2011/05/19 03:25:11 manu Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_inode.c,v 1.85 2011/05/19 03:11:59 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_inode.c,v 1.86 2011/05/19 03:25:11 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -99,13 +99,13 @@
if (ip->i_mode == 0)
goto out;
if (ip->i_nlink <= 0 && (vp->v_mount->mnt_flag & MNT_RDONLY) == 0) {
+#ifdef UFS_EXTATTR
+ ufs_extattr_vnode_inactive(vp, curlwp);
+#endif
error = UFS_WAPBL_BEGIN(vp->v_mount);
if (error)
goto out;
logged = 1;
-#ifdef UFS_EXTATTR
- ufs_extattr_vnode_inactive(vp, curlwp);
-#endif
if (ip->i_size != 0) {
/*
* When journaling, only truncate one indirect block