> > > The patch adds only 1 field (unsigned int) to struct __kfifo. I think
You have no idea. As i wrote you should study the code before answering!
sizeof(struct __kfifo) is always 20 bytes on a 32 bit cpu, and
kfifo->mask +1 depends on the size of the number of fifo elements and it
is an initialization parameter.
If you will be able to shrink the footprint of the struct __kfifo,
whithout wasting the code, you are welcome to do.
Currently you generate only a lot of hot air. The assertion in your
"number of elements or bytes for kfifo_in etc" thread was also wrong.
You should first study code and understand it.
Until you have can prove your assertion by measurements and working
patches, please stop bothering.
- Stefani
--