diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/journal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ubifs/journal.c b/fs/ubifs/journal.c index 25de6fde383f..acdae00aaa54 100644 --- a/fs/ubifs/journal.c +++ b/fs/ubifs/journal.c | |||
@@ -871,10 +871,11 @@ int ubifs_jnl_delete_inode(struct ubifs_info *c, const struct inode *inode) | |||
871 | return ubifs_jnl_write_inode(c, inode); | 871 | return ubifs_jnl_write_inode(c, inode); |
872 | } | 872 | } |
873 | 873 | ||
874 | ubifs_delete_orphan(c, inode->i_ino); | ||
875 | err = ubifs_tnc_remove_ino(c, inode->i_ino); | 874 | err = ubifs_tnc_remove_ino(c, inode->i_ino); |
876 | if (err) | 875 | if (err) |
877 | ubifs_ro_mode(c, err); | 876 | ubifs_ro_mode(c, err); |
877 | else | ||
878 | ubifs_delete_orphan(c, inode->i_ino); | ||
878 | up_read(&c->commit_sem); | 879 | up_read(&c->commit_sem); |
879 | return err; | 880 | return err; |
880 | } | 881 | } |