提交 71425087 编写于 作者: D David Chinner 提交者: Nathan Scott

[XFS] Stop a BUG from occurring in generic_delete_inode by preventing

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: NDavid Chinner <dgc@sgi.com>
Signed-off-by: NNathan Scott <nathans@sgi.com>
上级 6d192a9b
...@@ -2757,7 +2757,8 @@ xfs_iunpin( ...@@ -2757,7 +2757,8 @@ xfs_iunpin(
if (vp) { if (vp) {
struct inode *inode = vn_to_inode(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); mark_inode_dirty_sync(inode);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册