From: Rusty Russell <rusty@rustcorp.com.au>
To: Gilad Ben-Yossef <gilad@benyossef.com>, torvalds@transmeta.com
To: Marcelo <marcelo@conectiva.com.br>
Cc: The Usual Suspects <linux-kernel@vger.kernel.org>,
Patch Trivia <trivial@rustcorp.com.au>
Subject: Re: [PATCH] Add PAGE_CACHE_PAGES
Date: Mon, 19 Aug 2002 13:56:34 +1000 [thread overview]
Message-ID: <20020818232457.227812C195@lists.samba.org> (raw)
In-Reply-To: Your message of "15 Aug 2002 23:33:00 +0300." <1029443580.2508.18.camel@gby.benyossef.com>
In message <1029443580.2508.18.camel@gby.benyossef.com> you write:
>
> This patch introduces PAGE_CACHE_PAGES which is the number of pages in a
> page cache.
AFAICT, you should simply do
/* Order of pages in page cache */
#define PAGE_CACHE_PAGE_ORDER 0
#define PAGE_CACHE_SHIFT (PAGE_SHIFT + PAGE_CACHE_PAGE_ORDER)
#define PAGE_CACHE_SIZE (1 << PAGE_CACHE_SHIFT)
#define PAGE_CACHE_MASK (~(PAGE_CACHE_SIZE-1))
#define PAGE_CACHE_ALIGN(addr) (((addr)+PAGE_CACHE_SIZE-1)&PAGE_CACHE_MASK)
*Then* fix up the misuses,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
next prev parent reply other threads:[~2002-08-19 4:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-15 20:33 Gilad Ben-Yossef
2002-08-15 23:16 ` Hugh Dickins
2002-08-19 3:56 ` Rusty Russell [this message]
2002-08-19 8:48 ` Gilad Ben-Yossef
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=20020818232457.227812C195@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=gilad@benyossef.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
--cc=trivial@rustcorp.com.au \
/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
all inboxes | Powered by JetHome®