mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
[JFFS2] Obsolete dirent nodes immediately on unlink, where possible.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
ec98c681a5
commit
a491486a20
1 changed files with 1 additions and 2 deletions
|
@ -507,8 +507,7 @@ int jffs2_do_unlink(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f,
|
||||||
uint32_t alloclen;
|
uint32_t alloclen;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (1 /* alternative branch needs testing */ ||
|
if (!jffs2_can_mark_obsolete(c)) {
|
||||||
!jffs2_can_mark_obsolete(c)) {
|
|
||||||
/* We can't mark stuff obsolete on the medium. We need to write a deletion dirent */
|
/* We can't mark stuff obsolete on the medium. We need to write a deletion dirent */
|
||||||
|
|
||||||
rd = jffs2_alloc_raw_dirent();
|
rd = jffs2_alloc_raw_dirent();
|
||||||
|
|
Loading…
Reference in a new issue