reading a block from disk

From: BenHanokh Gabriel (gabriel@SANgate.com)
Date: Tue May 23 2000 - 05:18:15 EST


hi

how do i get hold of a i-th block of a file in kernel 2.3 ?
in kernel 2.2 i used to do the following:

block = bmap( inodp, i );
bh = bread( inodp->i_sb->s_dev, block, inodp->i_sb->s_blocksize);

this code doesn't seems to work correctly under the new kernel.

i saw that all the FS code is using now mm page functions to read &
write disk insead of the buffer-cache functions.
is the buffer-cache still in use now ? and if so what is it task ? is
it the memory page primitve ?

please CC me for any answer

THX
/gabriel

-
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:23 EST