tree b85447888ac27b35136d92f4dc25cc55de3b1b97
parent 53937c52c3f1dff6100174f50a85c068f16713ae
author Christoph Hellwig <[EMAIL PROTECTED]> Mon, 05 Sep 2005 08:28:02 +1000
committer Nathan Scott <[EMAIL PROTECTED]> Mon, 05 Sep 2005 08:28:02 +1000

[XFS] allow a null behaviour pointer in linvfs_clear_inode

SGI-PV: 940531
SGI-Modid: xfs-linux:xfs-kern:197782a

Signed-off-by: Christoph Hellwig <[EMAIL PROTECTED]>
Signed-off-by: Nathan Scott <[EMAIL PROTECTED]>

 fs/xfs/linux-2.6/xfs_super.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -387,14 +387,17 @@ linvfs_clear_inode(
 
        vn_trace_entry(vp, "clear_inode", (inst_t *)__return_address);
 
-       ASSERT(vp->v_fbhv != NULL);
-
        XFS_STATS_INC(vn_rele);
        XFS_STATS_INC(vn_remove);
        XFS_STATS_INC(vn_reclaim);
        XFS_STATS_DEC(vn_active);
 
-       VOP_INACTIVE(vp, NULL, cache);
+       /*
+        * This can happen because xfs_iget_core calls xfs_idestroy if we
+        * find an inode with di_mode == 0 but without IGET_CREATE set.
+        */
+       if (vp->v_fbhv)
+               VOP_INACTIVE(vp, NULL, cache);
 
        VN_LOCK(vp);
        vp->v_flag &= ~VMODIFIED;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to