Hello!
Currently the value 0 is disallowed, as it is not a power of 2.
This obvious patch fixes the problem.
--
Alexander.
On Tue, Nov 16, 2010 at 11:05:46AM +0300, Alexander V. Lukyanov wrote:
> Currently the value 0 is disallowed, as it is not a power of 2.
BTW, the default value inode_readahead_blks=32 gives me troubles: it raises
load average and increases request latency on a busy squid server. I
explain it by random access to large number of files which are present in
the squid cache.
BTW2: the value of 0 should be allowed, it is explicitly used by the code:
/*
* If we need to do any I/O, try to pre-readahead extra
* blocks from the inode table.
*/
if (EXT4_SB(sb)->s_inode_readahead_blks) {
...
}
--
Alexander.