All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Walter <stevenrwalter@gmail.com>
To: linux-mm@kvack.org
Subject: Erroneous VM_MINOR_FAULT return from filemap_fault?
Date: Thu, 3 Jan 2008 15:24:06 -0500	[thread overview]
Message-ID: <20080103202406.GA30573@dervierte> (raw)

There appears to be a path through filemap_fault such that the function
returns VM_MINOR_FAULT, even though disk IO was performed.  Suppose that
the page in question is not already in the page cache (find_lock_page
returns NULL) and we trip the MMAP_LOTSAMISS logic, ending up at
no_cached_page.  Immediately page_cache_read is called, but ret was
never set to VM_MAJOR_FAULT (still at the default of VM_MINOR_FAULT).
Control jumps back to retry_find, find_lock_page returns the page, and
eventually the function returns VM_MINOR_FAULT.

Is there some assumption I'm missing where the execution path I
summarized couldn't actually happen?  Perhaps this behavior is
intentional?  Certainly it seems that if IO is performed, the fault
should be considered a major fault.
-- 
-Steven Walter <stevenrwalter@gmail.com>
Freedom is the freedom to say that 2 + 2 = 4
B2F1 0ECC E605 7321 E818  7A65 FC81 9777 DC28 9E8F 

--
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:[~2008-01-03 20:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080103202406.GA30573@dervierte \
    --to=stevenrwalter@gmail.com \
    --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.