lkml.org 
[lkml]   [2000]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Block device request merging - repeated requests.
On Mon, Jan 31 2000, David Woodhouse wrote:
> > but that is kind of hard to tell when you don't show any code.
>
> Attached. For its headers &c, grab the whole thing from
> www.linux-mtd.infradead.org - there's a standalone tarball or a patch against
> 2.3.41 there.

> void nftl_request(RQFUNC_ARG)
> {
> unsigned int dev, block, nsect;
> struct NFTLrecord *thisNFTL;
> char *buffer;
> repeat:
> //cli();
> INIT_REQUEST;
> dev = MINOR(CURRENT->rq_dev);
> block = CURRENT->sector;
> nsect = CURRENT->nr_sectors;
^^^^^^^^^^

Sure this should be CURRENT->current_nr_sectors.

--
* 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.075 / U:0.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site