projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UBIFS: correct orphan deletion order
[deliverable/linux.git]
/
fs
/
ubifs
/
journal.c
diff --git
a/fs/ubifs/journal.c
b/fs/ubifs/journal.c
index 25de6fde383f038ae327bf426794e044a7ae0747..acdae00aaa54b80878cc31120b2f90306e2e8303 100644
(file)
--- 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)
return ubifs_jnl_write_inode(c, inode);
}
- ubifs_delete_orphan(c, inode->i_ino);
err = ubifs_tnc_remove_ino(c, inode->i_ino);
if (err)
ubifs_ro_mode(c, err);
+ else
+ ubifs_delete_orphan(c, inode->i_ino);
up_read(&c->commit_sem);
return err;
}
This page took
0.02388 seconds
and
5
git commands to generate.