I've checked the seq_read() implementation again.
Only the initial size of the buf is set to the PAGE_SIZE.
If the size of the buf is not enough then it is later being
increased by the power of two.
Thanks Black hole.So this was what was happening then. I looked at the code again and have few more questions
1. How does the @size parameter in seq_read get specified?
2. Can you point me to the specific block of code that compares buffer size and increases it if not enough? Is there an upper limit on maximum size of the buffer?
Bithika