All of lore.kernel.org
 help / color / mirror / Atom feed
From: Huang Shijie <shijie8@gmail.com>
To: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org
Subject: Re: [PATCH] filemap : fix the wrong offset
Date: Wed, 30 Sep 2009 11:23:50 +0800	[thread overview]
Message-ID: <4AC2CF46.5070600@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0909291129430.19216@sister.anvils>

Hugh Dickins wrote:
> I really think this issue is better ignored.  There was a time,
> seven years ago, when I cared about it, and made such corrections
> in mm/shmem.c.  But we're chipping away at the tip of the iceberg
> here, and it's just a waste of everybody's time for so long as
> PAGE_CACHE_SIZE == PAGE_SIZE.
>
> There have been patches experimenting with PAGE_CACHE_SIZE multiple
> of PAGE_SIZE (and probably not PAGE_SIZE multiple of PAGE_CACHE_SIZE);
> and I've come to the conclusion that the only sensible place for these
> PAGE_CACHE_SHIFT - PAGE_SHIFT patches is in a patch which really makes
> that difference.
>
> I wish PAGE_CACHE_SIZE had never been added in the first place,
> long before it was needed; but ripping it out doesn't seem quite
> the right thing to do either; and likewise I leave a smattering of
> PAGE_CACHE_SHIFT - PAGE_SHIFT lines in, just to remind us from time
> to time that there might one day be a difference.
>
>   
Ok. I get it.

But the filemap_fault()  looks  strange. Some functions such as 
do_sync_mmap_readahead() treat offset
in the PAGE_CAHE_SHIFT unit,though offset is actually in the PAGE_SHIFT 
unit.
> I know this is a very unsatisfying response: but you and I
> and everyone else have better things to spend our time on.
> Thinking about the difference between two things that are
> always the same is rather a waste of mental energy.
>   
Thanks a lot for your explanation.

--
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-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2009-09-30  3:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29  9:06 [PATCH] filemap : fix the wrong offset Huang Shijie
2009-09-29 11:02 ` Hugh Dickins
2009-09-30  3:23   ` Huang Shijie [this message]
2009-10-01 10:24     ` Hugh Dickins

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=4AC2CF46.5070600@gmail.com \
    --to=shijie8@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=hugh.dickins@tiscali.co.uk \
    --cc=linux-mm@kvack.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.