Skip to content

Commit

Permalink
[XFS] Check if there is first behavior before calling VOP_RECLAIM from
Browse files Browse the repository at this point in the history
linvfs_clear_inode(). The behavior may go away in VOP_INACTIVE. 

SGI-PV: 941000
SGI-Modid: xfs-linux:xfs-kern:197355a

Signed-off-by: Felix Blyakher <felixb@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
Felix Blyakher authored and Nathan Scott committed Sep 4, 2005
1 parent 4cd4a03 commit 0c147f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fs/xfs/linux-2.6/xfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,11 @@ linvfs_clear_inode(
vp->v_flag &= ~VMODIFIED;
VN_UNLOCK(vp, 0);

VOP_RECLAIM(vp, error);
if (error)
panic("vn_purge: cannot reclaim");
if (vp->v_fbhv) {
VOP_RECLAIM(vp, error);
if (error)
panic("vn_purge: cannot reclaim");
}

ASSERT(vp->v_fbhv == NULL);

Expand Down

0 comments on commit 0c147f9

Please sign in to comment.