Commit 0c147f9a authored by Felix Blyakher's avatar Felix Blyakher Committed by Nathan Scott

[XFS] Check if there is first behavior before calling VOP_RECLAIM from

linvfs_clear_inode(). The behavior may go away in VOP_INACTIVE. 

SGI-PV: 941000
SGI-Modid: xfs-linux:xfs-kern:197355a
Signed-off-by: default avatarFelix Blyakher <felixb@sgi.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 4cd4a034
...@@ -400,9 +400,11 @@ linvfs_clear_inode( ...@@ -400,9 +400,11 @@ linvfs_clear_inode(
vp->v_flag &= ~VMODIFIED; vp->v_flag &= ~VMODIFIED;
VN_UNLOCK(vp, 0); VN_UNLOCK(vp, 0);
if (vp->v_fbhv) {
VOP_RECLAIM(vp, error); VOP_RECLAIM(vp, error);
if (error) if (error)
panic("vn_purge: cannot reclaim"); panic("vn_purge: cannot reclaim");
}
ASSERT(vp->v_fbhv == NULL); ASSERT(vp->v_fbhv == NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment