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

[PATCH] Fix ext3 add_nondir d_instantiate()

It should be unconditional.
parent e0ae6ae6
......@@ -1606,11 +1606,9 @@ static int ext3_add_nondir(handle_t *handle,
{
int err = ext3_add_entry(handle, dentry, inode);
if (!err) {
err = ext3_mark_inode_dirty(handle, inode);
if (!err) {
d_instantiate(dentry, inode);
return 0;
}
ext3_mark_inode_dirty(handle, inode);
d_instantiate(dentry, inode);
return 0;
}
ext3_dec_count(handle, inode);
iput(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