linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: ebiederm+eric@ccr.net (Eric W. Biederman)
To: pnilesh@in.ibm.com
Cc: "Stephen C. Tweedie" <sct@redhat.com>, linux-mm@kvack.org
Subject: Re: page->offset
Date: 12 Apr 2000 10:29:30 -0500	[thread overview]
Message-ID: <m1aeizban9.fsf@flinx.biederman.org> (raw)
In-Reply-To: pnilesh@in.ibm.com's message of "Wed, 12 Apr 2000 18:34:21 +0530"

pnilesh@in.ibm.com writes:

> To have your views,
> 
> If a file is opened and from an offset which is not page aligned say from
> offset 10.
Umm.  Files aren't opend with offsets.
The are however mapped at offsets.

> When we read this file into the memory page ,where the first byte will be
> loaded into the memory ?
When you mmap the file?  A read syscall isn't affected?

> In 2.2 the first byte of the page will be the 10th byte of the file.
Nope.  Can't do alignments less the fs blocksize which at least 512 bytes
even in 2.2.  But for the mmap case you are substantailly correct.

> In 2.3 the first byte will be first byte in the file and 10th byte is the
> 10th in the file.
That is what will be in the cache.   The mmap  request will simply be refused.

> This is what I feel.

How does feelings have anything to do with it?

Eric
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

  parent reply	other threads:[~2000-04-12 15:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-12 13:04 page->offset pnilesh
2000-04-12 14:45 ` page->offset Stephen C. Tweedie
2000-04-12 15:29 ` Eric W. Biederman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-04-13 11:19 page->offset pnilesh
2000-04-13  4:53 page->offset pnilesh
2000-04-13  6:07 ` page->offset Matti Aarnio
2000-04-13 19:34   ` page->offset Andrea Arcangeli
2000-04-13  9:59 ` page->offset Stephen C. Tweedie
2000-04-12 10:07 page->offset pnilesh
2000-04-12 11:06 ` page->offset Stephen C. Tweedie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1aeizban9.fsf@flinx.biederman.org \
    --to=ebiederm+eric@ccr.net \
    --cc=linux-mm@kvack.org \
    --cc=pnilesh@in.ibm.com \
    --cc=sct@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox