This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

eCos jffs2 garbage collection thread + fix


Hi,
I have spent some time implementing the garbage collect thread for jffs2 in
eCos. I publish this as a version that is more complete than the current
gcthread.c without promising anything more. It seams to work under the synt
target tested with low, the same, and higher priority than a file system
test thread. One major question is if the locking of the icache is correct.

I also publish my temporary fix for a previously reported problem with the
garbage collection. (jffs2_write_fix). This fix is needed if garbage
collection hits the erase block that the "write" is currently appending data
to. Jffs2 will otherwise report BUG in gc.c on line 1161.
It's a workaround for the problem until someone can find the correct
solution.

Per Hedblom

Attachment: jffs2_write_fix
Description: Binary data

Attachment: jffs2_gc_patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]