public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: MLOCK_LIMIT needs PAGE_SIZE
Date: Sat, 14 Jul 2007 22:47:02 +0200	[thread overview]
Message-ID: <20070714204702.GA9378@aepfle.de> (raw)

commit 448580132dc7f55493269bb850c2955df9c7d778 in Aug 2004 changed
MLOCK_LIMIT from (32*1024) to (8 * PAGE_SIZE):

        [PATCH] sane mlock_limit

        As David M-T points out, the default per-user mlock limit should
        be at least a single page.

linux/resource.h appears to be a userspace header. PAGE_SIZE is
unavailable because asm/page.h is not included.
Will an extra #include asm/page.h cause any trouble for kernel builds?
It currently gets included via linux/time.h -> linux/seqlock.h ->
linux/spinlock.h -> something.

Userspace PAGE_SIZE will be discussed in another mail.

                 reply	other threads:[~2007-07-14 20:46 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=20070714204702.GA9378@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=akpm@linux-foundation.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