* get_swap_bio() question
@ 2006-08-11 21:32 Rafael J. Wysocki
2006-08-13 0:23 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2006-08-11 21:32 UTC (permalink / raw)
To: LKML
Hi,
I'm looking at get_swap_bio() in mm/page_io.c and wonder why the result of
map_swap_page() in there is multiplied by (PAGE_SIZE >> 9). Is it the block
size of 512 B hardcoded? And if so, is that actually right (I mean, aren't there
any block devices with different block sizes)?
Rafael
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: get_swap_bio() question
2006-08-11 21:32 get_swap_bio() question Rafael J. Wysocki
@ 2006-08-13 0:23 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2006-08-13 0:23 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: LKML
On Fri, 11 Aug 2006 23:32:17 +0200
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> Hi,
>
> I'm looking at get_swap_bio() in mm/page_io.c and wonder why the result of
> map_swap_page() in there is multiplied by (PAGE_SIZE >> 9). Is it the block
> size of 512 B hardcoded? And if so, is that actually right (I mean, aren't there
> any block devices with different block sizes)?
>
Yep, the Linux block layer is based on a 512-bytes sector all over the
place. Everywhere you see a sector_t, that's in units of 512-byte-sectors.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-13 0:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-11 21:32 get_swap_bio() question Rafael J. Wysocki
2006-08-13 0:23 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®