lkml.org 
[lkml]   [2000]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Block device request merging - repeated requests.
On Tue, Feb 01 2000, David Woodhouse wrote:
> I see no CURRENT->b_rsector or b_blocknr.
>
> I assume you mean CURRENT->bh->{b_rsector,b_blocknr} ?

Yes, of course.

> Which? What's the difference? They are documented as "Real buffer location on
> disk" and "block number" respectively, which doesn't really help me choose
> between them.

I found that b_rsector is the 512 byte sector number and b_blocknr is
relative to the block size of the device. b_blocknr is set with
getblk() for example, and here you pass the actual location of the
device. ll_rw_block() sets b_rsector to b_blocknr * (b_size >> 9),
so there you have it.

--
* Jens Axboe <axboe@suse.de>
* Linux CD-ROM Maintainer
* http://www.kernel.dk

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.036 / U:2.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site