From: Andrea Arcangeli <andrea@e-mind.com>
To: linux-kernel@vger.rutgers.edu, linux-mm@kvack.org
Cc: Nimrod Zimerman <zimerman@deskmail.com>,
John Alvord <jalvo@cloud9.net>,
"Stephen C. Tweedie" <sct@redhat.com>,
Steve Bergman <steve@netplus.net>,
dlux@dlux.sch.bme.hu, "Nicholas J. Leon" <nicholas@binary9.net>,
Kalle Andersson <kalle@sslug.dk>,
Heinz Mauelshagen <mauelsha@ez-darmstadt.telekom.de>,
Ben McCann <bmccann@indusriver.com>"Stephen C. Tweedie"
<sct@redhat.com>, Rik van Riel <H.H.vanRiel@phys.uu.nl>
Subject: Re: [patch] arca-vm-28 - new nr_freeable_pages
Date: Fri, 22 Jan 1999 10:38:40 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.3.96.990122103703.516A-100000@laser.bogus> (raw)
In-Reply-To: <Pine.LNX.3.96.990121210148.2760B-100000@laser.bogus>
On Thu, 21 Jan 1999, Andrea Arcangeli wrote:
> ftp://e-mind.com/pub/linux/kernel-patches/2.2.0-pre8testing-arca-VM-28.gz
Woops I forgot to diff pagemap.h in arca-vm-28, excuse me. At least
arca-tree-109 was fine ;).
Index: linux/include/linux/pagemap.h
diff -u linux/include/linux/pagemap.h:1.1.1.1 linux/include/linux/pagemap.h:1.1.2.4
--- linux/include/linux/pagemap.h:1.1.1.1 Mon Jan 18 02:27:10 1999
+++ linux/include/linux/pagemap.h Fri Jan 22 10:12:47 1999
@@ -11,17 +11,16 @@
#include <linux/mm.h>
#include <linux/fs.h>
+#include <linux/swap.h>
static inline unsigned long page_address(struct page * page)
{
- return PAGE_OFFSET + PAGE_SIZE * page->map_nr;
+ return PAGE_OFFSET + (page->map_nr << PAGE_SHIFT);
}
-#define PAGE_HASH_BITS 11
+#define PAGE_HASH_BITS 13
#define PAGE_HASH_SIZE (1 << PAGE_HASH_BITS)
-#define PAGE_AGE_VALUE 16
-
extern unsigned long page_cache_size; /* # of pages currently in the hash table */
extern struct page * page_hash_table[PAGE_HASH_SIZE];
@@ -58,7 +57,7 @@
break;
}
/* Found the page. */
- atomic_inc(&page->count);
+ page_get(page);
set_bit(PG_referenced, &page->flags);
not_found:
return page;
@@ -78,6 +77,7 @@
page->pprev_hash = NULL;
}
page_cache_size--;
+ page_put(page);
}
static inline void __add_page_to_hash_queue(struct page * page, struct page **p)
Andrea Arcangeli
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org
next prev parent reply other threads:[~1999-01-22 9:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-20 0:46 arca-vm-26 Andrea Arcangeli
1999-01-20 15:25 ` arca-vm-26 Andrea Arcangeli
1999-01-21 20:17 ` [patch] arca-vm-28 - new nr_freeable_pages Andrea Arcangeli
1999-01-22 9:38 ` Andrea Arcangeli [this message]
1999-01-26 2:22 ` Andrea Arcangeli
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=Pine.LNX.3.96.990122103703.516A-100000@laser.bogus \
--to=andrea@e-mind.com \
--cc=bmccann@indusriver.com \
--cc=dlux@dlux.sch.bme.hu \
--cc=jalvo@cloud9.net \
--cc=kalle@sslug.dk \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.org \
--cc=mauelsha@ez-darmstadt.telekom.de \
--cc=nicholas@binary9.net \
--cc=sct@redhat.com \
--cc=steve@netplus.net \
--cc=zimerman@deskmail.com \
/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