projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d62ff2
)
UBIFS: correct orphan deletion order
author
Adrian Hunter
<ext-adrian.hunter@nokia.com>
Wed, 23 Jul 2008 13:55:55 +0000
(16:55 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 13 Aug 2008 08:32:53 +0000
(11:32 +0300)
The debug function that checks orphans, does so using the
TNC mutex. That means it will not see a correct picture
if the inode is removed from the orphan tree before it is
removed from TNC.
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
fs/ubifs/journal.c
patch
|
blob
|
blame
|
history
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;
}