public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 64-bit capable block device layer
@ 2001-03-07 17:41 Rik van Riel
  2001-03-07 17:47 ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Rik van Riel @ 2001-03-07 17:41 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

Hi Linus,

how would you feel about having the block device layer 64-bit
capable, so Linux can have block devices of more than 2GB in
size ?

I know that 64-bit arithmetic is expensive on 32-bit platforms,
but I have the idea there is a way around that for people who
don't want 64-bit capable block devices.

1. use blkoff_t for all block number arithmetic

2. in some header file, have

#ifdef CONFIG_BLKDEV_64BIT
typedef long long blkoff_t
#else
typedef long blkoff_t
#endif

This way, people running smaller&slower machines can chose to
do the cheaper 32-bit arithmetic and only the people using huge
block devices will have to do the 64-bit arithmetic.

(yes, basically the same trick as we're using for PAE)

regards,

Rik
--
Linux MM bugzilla: http://linux-mm.org/bugzilla.shtml

Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...

		http://www.surriel.com/
http://www.conectiva.com/	http://distro.conectiva.com/


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-03-08 13:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-07 17:41 64-bit capable block device layer Rik van Riel
2001-03-07 17:47 ` Jens Axboe
2001-03-07 18:12   ` Rik van Riel
2001-03-07 18:53     ` Jens Axboe
2001-03-08  9:51       ` David Weinehall
2001-03-08 12:14       ` Stephen C. Tweedie
2001-03-08 13:18       ` Ingo Oeser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox