Skip to content

Commit

Permalink
[XFS] Stop a BUG from occurring in generic_delete_inode by preventing
Browse files Browse the repository at this point in the history
transaction completion from marking the inode dirty while it is being
cleaned up on it's way out of the system.

SGI-PV: 952967
SGI-Modid: xfs-linux-melb:xfs-kern:26040a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
David Chinner authored and Nathan Scott committed Jun 9, 2006
1 parent 6d192a9 commit 7142508
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/xfs/xfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2757,7 +2757,8 @@ xfs_iunpin(
if (vp) {
struct inode *inode = vn_to_inode(vp);

if (!(inode->i_state & I_NEW))
if (!(inode->i_state &
(I_NEW|I_FREEING|I_CLEAR)))
mark_inode_dirty_sync(inode);
}
}
Expand Down

0 comments on commit 7142508

Please sign in to comment.