[Yaffs] problem with object (file) creation ==> fix
Charles Manning
manningc2@actrix.gen.nz
Thu, 21 Oct 2004 09:22:24 +1300
I have just checked in changes to yaffs_fs.c, yaffs_guts.c, yaffs_guts.h =
to=20
fix this problem.
Now yaffs Objects in the object look up hash table are not freed until th=
e=20
coresponding inode is cleared.
I did some tests with a smaller bucket size (8) and observed that the=20
recycling problem does not happen. Object numbers are now only recycled =
when=20
the Linux cache tells us it is OK.
This mechanism does not use any new kernel calls and should thus be good =
with=20
older kernels.
Thanx to Michael for his efforts in hunting down the problem.
-- Charles