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,12 +1606,10 @@ static int ext3_add_nondir(handle_t *handle, ...@@ -1606,12 +1606,10 @@ static int ext3_add_nondir(handle_t *handle,
{ {
int err = ext3_add_entry(handle, dentry, inode); int err = ext3_add_entry(handle, dentry, inode);
if (!err) { if (!err) {
err = ext3_mark_inode_dirty(handle, inode); ext3_mark_inode_dirty(handle, inode);
if (!err) {
d_instantiate(dentry, inode); d_instantiate(dentry, inode);
return 0; return 0;
} }
}
ext3_dec_count(handle, inode); ext3_dec_count(handle, inode);
iput(inode); iput(inode);
return err; return err;
......
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