The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Dan Aloni <da-x@monatomic.org>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: do_swap_page() and !CONFIG_SWAP
Date: Sun, 22 Jul 2007 15:58:48 +0300	[thread overview]
Message-ID: <20070722125848.GA6182@localdomain> (raw)

Hello,

Is there any valid reason (except memory corruption) for do_swap_page() 
to be called in a x86_64 2.6.21.5 kernel where CONFIG_SWAP is not selected?

If not, does it make sense to put there something in lines of:

       print_bad_pte(vma, orig_pte, address);
       panic("unexpected swap pte - possible page table memory corruption\n");

?

-- 
Dan Aloni
XIV LTD, http://www.xivstorage.com
da-x (at) monatomic.org, dan (at) xiv.co.il

                 reply	other threads:[~2007-07-22 12:59 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=20070722125848.GA6182@localdomain \
    --to=da-x@monatomic.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox