new block size in buffer head ??

From: Benhanokh Gabriel (gabrielo@cs.huji.ac.il)
Date: Sun May 21 2000 - 11:03:30 EST


hi

i saw that the block size was changed in the buffer_head struct from 1K in
kernel2.2 to 512Byte in kernel 3.3.99.

when i needed to read the i-th block of a file i was simply using
bread( dev, i, inodp->i_sb->sb_blocksize)
how can i do this in kernel 2.3.99 ?
should i use
bread( dev, i*2, inodp->i_sb->sb_blocksize / 2 ) ?

where can i find info about the changes in the buffer cache in the new
kernels ?

please CC me for any answer

regards
Benhanokh Gabriel

-----------------------------------------------------------------------------
"If you think C++ is not overly complicated, just what is a
protected abstract virtual base class with a pure virtual private destructor,
and when was the last time you needed one?"
        -- Tom Cargil, C++ Journal, Fall 1990. --

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:20 EST