Commit 63959896 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ext2_put_inode race fix

Removes the put_iode optimisation.  It's racy, as
Chris pointed out.
parent bd054167
......@@ -43,8 +43,7 @@ static int ext2_update_inode(struct inode * inode, int do_sync);
*/
void ext2_put_inode (struct inode * inode)
{
if (atomic_read(&inode->i_count) < 2) /* final iput? */
ext2_discard_prealloc (inode);
ext2_discard_prealloc (inode);
}
/*
......
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