Re: page->offset & PAGE_MASK

Peter Moulder (reiter@netspace.net.au)
02 Feb 1998 12:59:58 +1100


chip@atlantic.net writes:

> Granted that there are some tricks played with offsets in swap areas.
> But excluding swap tricks, is there any time when page->offset is not
> a multiple of PAGE_SIZE?

I guess it depends on where the page was created. If you mmap a
file (MMAP_PRIVATE, read-only) then you can get any block-aligned
offset. See generic_file_mmap().

pjm.