[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Freeing unlinked inodes in JFFS2




RTeli@xxxxxxx.com said:
> It seems like JFFS2 doesn't free inode_cache & raws for inodes having
> nlink == 0, while mounting. Although it marks all raw nodes belonging
> to that inode as obsolete. I am not able to figure out the reason
> behind keeping these inodes in inocache_list / in core all the time.
> These may be deleted files. They need not be in inocache_list.

> If anyone has any idea about why JFFS2 is doing so pls let me know.

The _correct_ response to this question is that JFFS2 frees the inocache
when all the physical nodes belonging to that inode have been erased from
the flash. So the inocache _will_ go away in time, just not immediately.

I've reverted the broken patch I had committed :)

--
dwmw2



To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com