Messages in this thread | | | Date | Mon, 31 Jan 2000 16:55:53 +0100 | From | Jens Axboe <> | Subject | Re: 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/
| |