[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [2/5] fix error handling path in mem_charge_cgroup

2007-10-12 Thread KAMEZAWA Hiroyuki
This unlock_page_cgroup() is unnecessary. Changelog: v1 -> v2 * adjusted to 2.6.23-mm1 Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> mm/memcontrol.c |2 -- 1 file changed, 2 deletions(-) Index: devel-2.6.23-mm1/mm/mem

[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [1/5] charge refcnt race fix

2007-10-12 Thread KAMEZAWA Hiroyuki
t one charge is lost. This patch add a test at charging to verify page_cgroup's refcnt is greater than 0. If not, unlock and retry. Changelog v2->v3 * adjusted to 2.6.23-mm1 Changelog v1->v2: * added cpu_relax() before retry. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]>

[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [0/5] intro

2007-10-12 Thread KAMEZAWA Hiroyuki
This set is a fix for memory cgroup against 2.6.23-mm1. Not including any new feature. Patches: [1/5] ... fix refcnt handling in charge mem_cgroup_charge() [2/5] ... fix error handling path in mem_cgroup_charge() [3/5] ... check page->cgroup under lock again. [4/5] ... fix

Re: 2.6.23-mm1

2007-10-12 Thread KAMEZAWA Hiroyuki
On Thu, 11 Oct 2007 23:42:02 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote: > On Fri, 12 Oct 2007 14:03:28 +0900 KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> > wrote: > > > On Thu, 11 Oct 2007 21:31:26 -0700 > > Andrew Morton <[EMAIL PROTECTED]> wrote: > >

Re: 2.6.23-mm1

2007-10-12 Thread KAMEZAWA Hiroyuki
On Thu, 11 Oct 2007 23:42:02 -0700 Andrew Morton [EMAIL PROTECTED] wrote: On Fri, 12 Oct 2007 14:03:28 +0900 KAMEZAWA Hiroyuki [EMAIL PROTECTED] wrote: On Thu, 11 Oct 2007 21:31:26 -0700 Andrew Morton [EMAIL PROTECTED] wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm

[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [0/5] intro

2007-10-12 Thread KAMEZAWA Hiroyuki
This set is a fix for memory cgroup against 2.6.23-mm1. Not including any new feature. Patches: [1/5] ... fix refcnt handling in charge mem_cgroup_charge() [2/5] ... fix error handling path in mem_cgroup_charge() [3/5] ... check page-cgroup under lock again. [4/5] ... fix

[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [2/5] fix error handling path in mem_charge_cgroup

2007-10-12 Thread KAMEZAWA Hiroyuki
This unlock_page_cgroup() is unnecessary. Changelog: v1 - v2 * adjusted to 2.6.23-mm1 Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] mm/memcontrol.c |2 -- 1 file changed, 2 deletions(-) Index: devel-2.6.23-mm1/mm/memcontrol.c

[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [1/5] charge refcnt race fix

2007-10-12 Thread KAMEZAWA Hiroyuki
. This patch add a test at charging to verify page_cgroup's refcnt is greater than 0. If not, unlock and retry. Changelog v2-v3 * adjusted to 2.6.23-mm1 Changelog v1-v2: * added cpu_relax() before retry. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] mm/memcontrol.c | 10 -- 1

[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [3/5] add helper function for assigning cgroup to page

2007-10-12 Thread KAMEZAWA Hiroyuki
: * added necessary comments. Note: - a comment in mem_cgroup_uncharge() will be removed by force-empty patch Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] mm/memcontrol.c | 100 1 file changed, 73 insertions(+), 27 deletions

[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [5/5] migration under memory controller fix

2007-10-12 Thread KAMEZAWA Hiroyuki
: * adjusted to 2.6.23-mm1 Changelog v1 - v2: * reflected comments. * divided a patch to !PageLRU patch and migration patch. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] include/linux/memcontrol.h | 19 +++ mm/memcontrol.c| 43

[BUGFIX][PATCH][ for -mm] bugfix for memory cgroup controller [4/5] avoid !PageLRU page in mem_cgroup_isolate_pages

2007-10-12 Thread KAMEZAWA Hiroyuki
for reclaiming/migration. Because __isolate_lru_page() doesn't moves page !PageLRU pages, it will be safe to avoid touching !PageLRU() page and its page_cgroup. Chnagelog v1 - v2: * adjusted to 2.6.23-mm1 Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] mm/memcontrol.c | 13 ++--- 1 file

Re: 2.6.23-mm1

2007-10-11 Thread KAMEZAWA Hiroyuki
On Thu, 11 Oct 2007 21:31:26 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote: > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23/2.6.23-mm1/ > > - I've been largely avoiding applying anything since rc8-mm2 in an attempt > to stabilise things for the 2.6.23 merge. > On

Re: 2.6.23-mm1

2007-10-11 Thread KAMEZAWA Hiroyuki
On Thu, 11 Oct 2007 21:31:26 -0700 Andrew Morton [EMAIL PROTECTED] wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23/2.6.23-mm1/ - I've been largely avoiding applying anything since rc8-mm2 in an attempt to stabilise things for the 2.6.23 merge. On

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-04 Thread KAMEZAWA Hiroyuki
On Thu, 04 Oct 2007 21:33:12 +0900 Shi Weihua <[EMAIL PROTECTED]> wrote: > KAMEZAWA Hiroyuki wrote:: > > On Thu, 04 Oct 2007 20:56:14 +0900 > > Shi Weihua <[EMAIL PROTECTED]> wrote: > > > >>stack.ss_sp = addr + pagesize; > >>stack.ss_fl

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-04 Thread KAMEZAWA Hiroyuki
On Thu, 04 Oct 2007 20:56:14 +0900 Shi Weihua <[EMAIL PROTECTED]> wrote: > stack.ss_sp = addr + pagesize; > stack.ss_flags = 0; > stack.ss_size = pagesize; Here is bad. stack,ss_sp = addr; stack.ss_flags = 0; stack.ss_size = pagesize * 2; cheers. -Kame - To unsubscribe from

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-04 Thread KAMEZAWA Hiroyuki
On Thu, 04 Oct 2007 20:56:14 +0900 Shi Weihua [EMAIL PROTECTED] wrote: stack.ss_sp = addr + pagesize; stack.ss_flags = 0; stack.ss_size = pagesize; Here is bad. stack,ss_sp = addr; stack.ss_flags = 0; stack.ss_size = pagesize * 2; cheers. -Kame - To unsubscribe from this

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-04 Thread KAMEZAWA Hiroyuki
On Thu, 04 Oct 2007 21:33:12 +0900 Shi Weihua [EMAIL PROTECTED] wrote: KAMEZAWA Hiroyuki wrote:: On Thu, 04 Oct 2007 20:56:14 +0900 Shi Weihua [EMAIL PROTECTED] wrote: stack.ss_sp = addr + pagesize; stack.ss_flags = 0; stack.ss_size = pagesize; Here is bad. stack,ss_sp

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-03 Thread KAMEZAWA Hiroyuki
On Wed, 3 Oct 2007 15:46:32 +0200 (MEST) Mikael Pettersson <[EMAIL PROTECTED]> wrote: > The proposed kernel signal delivery patch only handles the case > where the /sigframe/ ends up overlapping the end of the altstack. > If the sigframe remains within the altstack boundaries but the > user-space

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-03 Thread KAMEZAWA Hiroyuki
On Wed, 3 Oct 2007 21:40:29 +0900 KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> wrote: > On Wed, 3 Oct 2007 14:20:07 +0200 (MEST) > Mikael Pettersson <[EMAIL PROTECTED]> wrote: > > > What I don't agree with is the logic itself: > > - You only catch altstack over

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-03 Thread KAMEZAWA Hiroyuki
On Wed, 3 Oct 2007 14:20:07 +0200 (MEST) Mikael Pettersson <[EMAIL PROTECTED]> wrote: > What I don't agree with is the logic itself: > - You only catch altstack overflow caused by the kernel pushing > a sigframe. You don't catch overflow caused by the user-space > signal handler pushing its

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-03 Thread KAMEZAWA Hiroyuki
On Wed, 3 Oct 2007 14:20:07 +0200 (MEST) Mikael Pettersson [EMAIL PROTECTED] wrote: What I don't agree with is the logic itself: - You only catch altstack overflow caused by the kernel pushing a sigframe. You don't catch overflow caused by the user-space signal handler pushing its own

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-03 Thread KAMEZAWA Hiroyuki
On Wed, 3 Oct 2007 21:40:29 +0900 KAMEZAWA Hiroyuki [EMAIL PROTECTED] wrote: On Wed, 3 Oct 2007 14:20:07 +0200 (MEST) Mikael Pettersson [EMAIL PROTECTED] wrote: What I don't agree with is the logic itself: - You only catch altstack overflow caused by the kernel pushing a sigframe. You

Re: [PATCH 1/3] signal(i386): alternative signal stack wraparound occurs

2007-10-03 Thread KAMEZAWA Hiroyuki
On Wed, 3 Oct 2007 15:46:32 +0200 (MEST) Mikael Pettersson [EMAIL PROTECTED] wrote: The proposed kernel signal delivery patch only handles the case where the /sigframe/ ends up overlapping the end of the altstack. If the sigframe remains within the altstack boundaries but the user-space signal

Re: [Question] How to represent SYSTEM_RAM in kerenel/resouce.c

2007-10-02 Thread KAMEZAWA Hiroyuki
On Tue, 2 Oct 2007 19:52:42 -0600 Matthew Wilcox <[EMAIL PROTECTED]> wrote: > On Wed, Oct 03, 2007 at 10:31:36AM +0900, KAMEZAWA Hiroyuki wrote: > > i386 and x86_64 registers System RAM as IORESOUCE_MEM | IORESOUCE_BUSY. > > ia64 registers System RAM as IORESOURCE_MEM. >

[Question] How to represent SYSTEM_RAM in kerenel/resouce.c

2007-10-02 Thread KAMEZAWA Hiroyuki
Hi, Now, SYSTEM_RAM is registerd to resouce list and a user can see memory map from /proc/iomem, like following. == [EMAIL PROTECTED] linux-2.6.23-rc8-mm2]$ grep RAM /proc/iomem -0009 : System RAM 0010-03ff : System RAM 0400-04f1bfff : System RAM 04f1c000-6b4b9fff : System

Re: x86 patches was Re: -mm merge plans for 2.6.24

2007-10-02 Thread KAMEZAWA Hiroyuki
On Tue, 2 Oct 2007 00:43:24 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote: > On Tue, 2 Oct 2007 16:36:24 +0900 KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> > > > Don't think so. A node is a lump of circuitry which can have zero or more > > > CPUs, IO and memory. > &

Re: x86 patches was Re: -mm merge plans for 2.6.24

2007-10-02 Thread KAMEZAWA Hiroyuki
On Tue, 2 Oct 2007 00:18:09 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > > How come? Memoryless node can and do occur in real-world machines. > > > Kernel > > > should support that? > > > > But a node is just defined by its memory? > > Don't think so. A node is a lump of

Re: x86 patches was Re: -mm merge plans for 2.6.24

2007-10-02 Thread KAMEZAWA Hiroyuki
On Tue, 2 Oct 2007 00:18:09 -0700 Andrew Morton [EMAIL PROTECTED] wrote: How come? Memoryless node can and do occur in real-world machines. Kernel should support that? But a node is just defined by its memory? Don't think so. A node is a lump of circuitry which can have

Re: x86 patches was Re: -mm merge plans for 2.6.24

2007-10-02 Thread KAMEZAWA Hiroyuki
On Tue, 2 Oct 2007 00:43:24 -0700 Andrew Morton [EMAIL PROTECTED] wrote: On Tue, 2 Oct 2007 16:36:24 +0900 KAMEZAWA Hiroyuki [EMAIL PROTECTED] Don't think so. A node is a lump of circuitry which can have zero or more CPUs, IO and memory. It may initially have been conceived

[Question] How to represent SYSTEM_RAM in kerenel/resouce.c

2007-10-02 Thread KAMEZAWA Hiroyuki
Hi, Now, SYSTEM_RAM is registerd to resouce list and a user can see memory map from /proc/iomem, like following. == [EMAIL PROTECTED] linux-2.6.23-rc8-mm2]$ grep RAM /proc/iomem -0009 : System RAM 0010-03ff : System RAM 0400-04f1bfff : System RAM 04f1c000-6b4b9fff : System

Re: [Question] How to represent SYSTEM_RAM in kerenel/resouce.c

2007-10-02 Thread KAMEZAWA Hiroyuki
On Tue, 2 Oct 2007 19:52:42 -0600 Matthew Wilcox [EMAIL PROTECTED] wrote: On Wed, Oct 03, 2007 at 10:31:36AM +0900, KAMEZAWA Hiroyuki wrote: i386 and x86_64 registers System RAM as IORESOUCE_MEM | IORESOUCE_BUSY. ia64 registers System RAM as IORESOURCE_MEM. Which is better ? Should

Re: [13/17] Virtual compound page freeing in interrupt context

2007-09-28 Thread KAMEZAWA Hiroyuki
On Fri, 28 Sep 2007 10:35:44 -0700 (PDT) Christoph Lameter <[EMAIL PROTECTED]> wrote: > On Fri, 28 Sep 2007, KAMEZAWA Hiroyuki wrote: > > > On Tue, 25 Sep 2007 16:42:17 -0700 > > Christoph Lameter <[EMAIL PROTECTED]> wrote: > > > > > +s

[PATCH] CPU HOTPLUG: Avoid hotadd when proper possible_map isn't specified.

2007-09-28 Thread KAMEZAWA Hiroyuki
cpu-hot-add should be fail if cpu is not set in cpu_possible_map. If go ahead, the system will panic soon. Especially, arch which requires additional_cpus= parameter should handle this. Tested on ia64. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- kernel/cpu.c |8 +

[PATCH] CPU HOTPLUG: Avoid hotadd when proper possible_map isn't specified.

2007-09-28 Thread KAMEZAWA Hiroyuki
cpu-hot-add should be fail if cpu is not set in cpu_possible_map. If go ahead, the system will panic soon. Especially, arch which requires additional_cpus= parameter should handle this. Tested on ia64. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] --- kernel/cpu.c |8 1 file

Re: [13/17] Virtual compound page freeing in interrupt context

2007-09-28 Thread KAMEZAWA Hiroyuki
On Fri, 28 Sep 2007 10:35:44 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: On Fri, 28 Sep 2007, KAMEZAWA Hiroyuki wrote: On Tue, 25 Sep 2007 16:42:17 -0700 Christoph Lameter [EMAIL PROTECTED] wrote: +static noinline void vcompound_free(void *addr) +{ + if (in_interrupt

Re: [13/17] Virtual compound page freeing in interrupt context

2007-09-27 Thread KAMEZAWA Hiroyuki
On Tue, 25 Sep 2007 16:42:17 -0700 Christoph Lameter <[EMAIL PROTECTED]> wrote: > +static noinline void vcompound_free(void *addr) > +{ > + if (in_interrupt()) { Should be (in_interrupt() || irqs_disabled()) ? Regards, -Kame - To unsubscribe from this list: send the line "unsubscribe

Re: [13/17] Virtual compound page freeing in interrupt context

2007-09-27 Thread KAMEZAWA Hiroyuki
On Tue, 25 Sep 2007 16:42:17 -0700 Christoph Lameter [EMAIL PROTECTED] wrote: +static noinline void vcompound_free(void *addr) +{ + if (in_interrupt()) { Should be (in_interrupt() || irqs_disabled()) ? Regards, -Kame - To unsubscribe from this list: send the line unsubscribe

Re: [RFC][PATCH] page->mapping clarification [1/3] base functions

2007-09-26 Thread KAMEZAWA Hiroyuki
On Wed, 26 Sep 2007 20:31:02 +0100 (BST) Hugh Dickins <[EMAIL PROTECTED]> wrote: > Would that waste a little memory? I think not with SLUB, > but perhaps with SLOB, which packs a little tighter. > maybe just depends on the amount of used anon_vma and page_mapping_info etc... I don't think a

Re: [RFC][PATCH] page-mapping clarification [1/3] base functions

2007-09-26 Thread KAMEZAWA Hiroyuki
On Wed, 26 Sep 2007 20:31:02 +0100 (BST) Hugh Dickins [EMAIL PROTECTED] wrote: Would that waste a little memory? I think not with SLUB, but perhaps with SLOB, which packs a little tighter. maybe just depends on the amount of used anon_vma and page_mapping_info etc... I don't think a system

Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure

2007-09-25 Thread KAMEZAWA Hiroyuki
On Wed, 26 Sep 2007 10:32:05 +0900 KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> wrote: > Maybe my patch is the problem. could you give me your .config ? > Ah, memory hot remove is selectable even if the arch doesn't support itsorry. ok, this is fix. Thanks, -Kame == MEMORY_HOTREMOVE c

Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure

2007-09-25 Thread KAMEZAWA Hiroyuki
On Wed, 26 Sep 2007 01:30:02 +0530 Kamalesh Babulal <[EMAIL PROTECTED]> wrote: > Hi Andrew, > > The 2.6.23-rc8-mm1 kernel linking fails on the powerpc (P5+) box > > CC init/version.o > LD init/built-in.o > LD .tmp_vmlinux1 > drivers/built-in.o: In function

Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure

2007-09-25 Thread KAMEZAWA Hiroyuki
On Wed, 26 Sep 2007 01:30:02 +0530 Kamalesh Babulal [EMAIL PROTECTED] wrote: Hi Andrew, The 2.6.23-rc8-mm1 kernel linking fails on the powerpc (P5+) box CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 drivers/built-in.o: In function `memory_block_action':

Re: 2.6.23-rc8-mm1 - powerpc memory hotplug link failure

2007-09-25 Thread KAMEZAWA Hiroyuki
On Wed, 26 Sep 2007 10:32:05 +0900 KAMEZAWA Hiroyuki [EMAIL PROTECTED] wrote: Maybe my patch is the problem. could you give me your .config ? Ah, memory hot remove is selectable even if the arch doesn't support itsorry. ok, this is fix. Thanks, -Kame == MEMORY_HOTREMOVE config option

Re: [RFC][PATCH] page->mapping clarification [1/3] base functions

2007-09-21 Thread KAMEZAWA Hiroyuki
On Fri, 21 Sep 2007 18:02:47 +0100 (BST) Hugh Dickins <[EMAIL PROTECTED]> wrote: > > 3. I want to *try* page->mapping overriding... store memory resource > > controller's > >information in page->mapping. By this, memory controller doesn't enlarge > > sizeof > >struct page. (works

Re: [RFC][PATCH] page->mapping clarification [1/3] base functions

2007-09-21 Thread KAMEZAWA Hiroyuki
On Fri, 21 Sep 2007 13:48:28 +0200 Peter Zijlstra <[EMAIL PROTECTED]> wrote: > > Followings are moved > > * page_mapping() ... returns swapper_space or address_space a page > > is on. > > (from mm.h) > > * page_index() ... returns position of a page in its

Re: [RFC][PATCH] page-mapping clarification [1/3] base functions

2007-09-21 Thread KAMEZAWA Hiroyuki
On Fri, 21 Sep 2007 13:48:28 +0200 Peter Zijlstra [EMAIL PROTECTED] wrote: Followings are moved * page_mapping() ... returns swapper_space or address_space a page is on. (from mm.h) * page_index() ... returns position of a page in its inode

Re: [RFC][PATCH] page-mapping clarification [1/3] base functions

2007-09-21 Thread KAMEZAWA Hiroyuki
On Fri, 21 Sep 2007 18:02:47 +0100 (BST) Hugh Dickins [EMAIL PROTECTED] wrote: 3. I want to *try* page-mapping overriding... store memory resource controller's information in page-mapping. By this, memory controller doesn't enlarge sizeof struct page. (works well in my small

[RFC][PATCH] make mis-configured cpu hotplug safer

2007-09-20 Thread KAMEZAWA Hiroyuki
to register cpu control if cpu is not in possible_map. Works as expected on ia64/cpu-hotplug-by-ACPI case. Consideration: handling this issue in cpu_up() is an another way. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- drivers/base/cpu.c | 11 +++ 1 file changed, 11 inse

Re: [RFC][PATCH] page->mapping clarification [1/3] base functions

2007-09-20 Thread KAMEZAWA Hiroyuki
On Thu, 20 Sep 2007 11:26:47 -0700 (PDT) Christoph Lameter <[EMAIL PROTECTED]> wrote: > On Wed, 19 Sep 2007, KAMEZAWA Hiroyuki wrote: > > > Any comments are welcome. > > I am still a bit confused as to what the benefit of this is. > Honestly, I have 3 purposes, 2 f

Re: [RFC][PATCH] page-mapping clarification [1/3] base functions

2007-09-20 Thread KAMEZAWA Hiroyuki
On Thu, 20 Sep 2007 11:26:47 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: On Wed, 19 Sep 2007, KAMEZAWA Hiroyuki wrote: Any comments are welcome. I am still a bit confused as to what the benefit of this is. Honestly, I have 3 purposes, 2 for readability/clarificaton and 1

[RFC][PATCH] make mis-configured cpu hotplug safer

2007-09-20 Thread KAMEZAWA Hiroyuki
to register cpu control if cpu is not in possible_map. Works as expected on ia64/cpu-hotplug-by-ACPI case. Consideration: handling this issue in cpu_up() is an another way. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] --- drivers/base/cpu.c | 11 +++ 1 file changed, 11 insertions

Re: [05/17] vunmap: return page array

2007-09-19 Thread KAMEZAWA Hiroyuki
On Wed, 19 Sep 2007 15:15:58 -0700 (PDT) Christoph Lameter <[EMAIL PROTECTED]> wrote: > On Wed, 19 Sep 2007, KAMEZAWA Hiroyuki wrote: > > > Hmm, I don't like returning array which someone allocated in past and > > forgot. > > But that is exactly the point.

Re: [05/17] vunmap: return page array

2007-09-19 Thread KAMEZAWA Hiroyuki
On Tue, 18 Sep 2007 20:36:10 -0700 Christoph Lameter <[EMAIL PROTECTED]> wrote: > Make vunmap return the page array that was used at vmap. This is useful > if one has no structures to track the page array but simply stores the > virtual address somewhere. The disposition of the page array can be

[RFC][PATCH] page->mapping clarification [2/3] changes in /mm

2007-09-19 Thread KAMEZAWA Hiroyuki
Make use of page-cache.h functions in /mm layer. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- mm/filemap.c| 19 ++- mm/memory.c |5 +++-- mm/migrate.c|8 ++-- mm/page-writeback.c |4 ++-- mm/rmap.c

[RFC][PATCH] page->mapping clarification [3/3] changes in /fs generic

2007-09-19 Thread KAMEZAWA Hiroyuki
Make use of page-cache.h in fs-generic layer. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/buffer.c | 43 ++- fs/fs-writeback.c |2 +- fs/libfs.c|2 +- fs/mpage.c| 13 +++-- 4 files chang

[RFC][PATCH] page->mapping clarification [1/3] base functions

2007-09-19 Thread KAMEZAWA Hiroyuki
oved related functions to page-cache.h - renamed some functions. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- include/linux/fs.h |6 +- include/linux/mm.h | 40 --- include/linux/page-cache.h | 118

[RFC][PATCH] page-mapping clarification [1/3] base functions

2007-09-19 Thread KAMEZAWA Hiroyuki
- renamed some functions. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] --- include/linux/fs.h |6 +- include/linux/mm.h | 40 --- include/linux/page-cache.h | 118 + include/linux/swap.h |1 4 files

[RFC][PATCH] page-mapping clarification [2/3] changes in /mm

2007-09-19 Thread KAMEZAWA Hiroyuki
Make use of page-cache.h functions in /mm layer. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] --- mm/filemap.c| 19 ++- mm/memory.c |5 +++-- mm/migrate.c|8 ++-- mm/page-writeback.c |4 ++-- mm/rmap.c | 36

[RFC][PATCH] page-mapping clarification [3/3] changes in /fs generic

2007-09-19 Thread KAMEZAWA Hiroyuki
Make use of page-cache.h in fs-generic layer. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] --- fs/buffer.c | 43 ++- fs/fs-writeback.c |2 +- fs/libfs.c|2 +- fs/mpage.c| 13 +++-- 4 files changed, 31

Re: [05/17] vunmap: return page array

2007-09-19 Thread KAMEZAWA Hiroyuki
On Tue, 18 Sep 2007 20:36:10 -0700 Christoph Lameter [EMAIL PROTECTED] wrote: Make vunmap return the page array that was used at vmap. This is useful if one has no structures to track the page array but simply stores the virtual address somewhere. The disposition of the page array can be

Re: [05/17] vunmap: return page array

2007-09-19 Thread KAMEZAWA Hiroyuki
On Wed, 19 Sep 2007 15:15:58 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: On Wed, 19 Sep 2007, KAMEZAWA Hiroyuki wrote: Hmm, I don't like returning array which someone allocated in past and forgot. But that is exactly the point. There is no need to keep track

Re: [PATCH] fix memory hot remove not configured case.

2007-09-18 Thread KAMEZAWA Hiroyuki
if there are requirements and testers. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- arch/i386/mm/init.c|5 arch/ia64/mm/init.c|3 +- arch/powerpc/mm/mem.c | 45 - arch/sh/mm/init.c

[PATCH] fix memory hot remove not configured case.

2007-09-18 Thread KAMEZAWA Hiroyuki
me other archs if there are requirements and testers. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- arch/i386/mm/init.c|5 arch/ia64/mm/init.c|3 +- arch/powerpc/mm/mem.c | 45 - arc

Re: [PATCH] Hookup group-scheduler with task container infrastructure

2007-09-18 Thread KAMEZAWA Hiroyuki
On Mon, 10 Sep 2007 22:40:49 +0530 Srivatsa Vaddagiri <[EMAIL PROTECTED]> wrote: > + tg->cfs_rq = kzalloc(sizeof(cfs_rq) * num_possible_cpus(), GFP_KERNEL); > + if (!tg->cfs_rq) > + goto err; > + tg->se = kzalloc(sizeof(se) * num_possible_cpus(), GFP_KERNEL); > + if

Re: [PATCH] Hookup group-scheduler with task container infrastructure

2007-09-18 Thread KAMEZAWA Hiroyuki
On Mon, 10 Sep 2007 22:40:49 +0530 Srivatsa Vaddagiri [EMAIL PROTECTED] wrote: + tg-cfs_rq = kzalloc(sizeof(cfs_rq) * num_possible_cpus(), GFP_KERNEL); + if (!tg-cfs_rq) + goto err; + tg-se = kzalloc(sizeof(se) * num_possible_cpus(), GFP_KERNEL); + if (!tg-se) +

[PATCH] fix memory hot remove not configured case.

2007-09-18 Thread KAMEZAWA Hiroyuki
if there are requirements and testers. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] --- arch/i386/mm/init.c|5 arch/ia64/mm/init.c|3 +- arch/powerpc/mm/mem.c | 45 - arch/sh/mm/init.c

Re: [PATCH] fix memory hot remove not configured case.

2007-09-18 Thread KAMEZAWA Hiroyuki
if there are requirements and testers. Signed-off-by: KAMEZAWA Hiroyuki [EMAIL PROTECTED] --- arch/i386/mm/init.c|5 arch/ia64/mm/init.c|3 +- arch/powerpc/mm/mem.c | 45 - arch/sh/mm/init.c |6

Re: [PATCH] CONFIG_ZONE_MOVABLE [2/2] config zone movable

2007-09-17 Thread KAMEZAWA Hiroyuki
On Mon, 17 Sep 2007 19:47:48 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote: > On Fri, 31 Aug 2007 19:14:15 +0900 KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> > wrote: > > > Makes ZONE_MOVABLE as configurable > > > > Based on "zone_ifdef_cleanup_by_renumberi

Re: [PATCH] CONFIG_ZONE_MOVABLE [2/2] config zone movable

2007-09-17 Thread KAMEZAWA Hiroyuki
On Mon, 17 Sep 2007 19:47:48 -0700 Andrew Morton [EMAIL PROTECTED] wrote: On Fri, 31 Aug 2007 19:14:15 +0900 KAMEZAWA Hiroyuki [EMAIL PROTECTED] wrote: Makes ZONE_MOVABLE as configurable Based on zone_ifdef_cleanup_by_renumbering.patch This patch causes my old dual-pIII machine

Re: [PATCH] add page->mapping handling interface [1/35] interface definitions

2007-09-13 Thread KAMEZAWA Hiroyuki
On Thu, 13 Sep 2007 22:19:20 +0200 Richard Knutsson <[EMAIL PROTECTED]> wrote: > > +static inline int page_is_pagecache(struct page *page) > > > Why return it as an 'int' instead of 'bool'? > > +{ > > + if (!page->mapping || (page->mapping & PAGE_MAPPING_ANON)) > > + return 0; > > +

Re: [PATCH] add page-mapping handling interface [1/35] interface definitions

2007-09-13 Thread KAMEZAWA Hiroyuki
On Thu, 13 Sep 2007 22:19:20 +0200 Richard Knutsson [EMAIL PROTECTED] wrote: +static inline int page_is_pagecache(struct page *page) Why return it as an 'int' instead of 'bool'? +{ + if (!page-mapping || (page-mapping PAGE_MAPPING_ANON)) + return 0; + return 1; +}

Re: [PATCH 4/6] Embed zone_id information within the zonelist->zones pointer

2007-09-12 Thread KAMEZAWA Hiroyuki
On Tue, 11 Sep 2007 22:31:27 +0100 (IST) Mel Gorman <[EMAIL PROTECTED]> wrote: > Using two zonelists per node requires very frequent use of zone_idx(). This > is costly as it involves a lookup of another structure and a substraction > operation. As struct zone is always word aligned and normally

Re: [PATCH 4/6] Embed zone_id information within the zonelist-zones pointer

2007-09-12 Thread KAMEZAWA Hiroyuki
On Tue, 11 Sep 2007 22:31:27 +0100 (IST) Mel Gorman [EMAIL PROTECTED] wrote: Using two zonelists per node requires very frequent use of zone_idx(). This is costly as it involves a lookup of another structure and a substraction operation. As struct zone is always word aligned and normally

Re: [PATCH] add page->mapping handling interface [22/35] changes in JFFS2

2007-09-10 Thread KAMEZAWA Hiroyuki
On Mon, 10 Sep 2007 11:19:51 +0100 David Woodhouse <[EMAIL PROTECTED]> wrote: > On Mon, 2007-09-10 at 19:16 +0900, KAMEZAWA Hiroyuki wrote: > > Changes page->mapping handling in JFFS2 > > > > Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> >

[PATCH] add page->mapping handling interface [35/35] changes in XFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Change page->mapping handling in XFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/xfs/linux-2.6/xfs_aops.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Index: test-2.6.23-rc4-mm1/fs/xfs/linux-2.6/x

[PATCH] add page->mapping handling interface [33/35] changes in UFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in UFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/ufs/dir.c | 10 +- fs/ufs/util.c |2 +- 2 files changed, 6 insertions(+), 6 deletions(-) Index: test-2.6.23-rc4-mm1/fs/

[PATCH] add page->mapping handling interface [34/35] changes in UNIONFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in UNIONFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/unionfs/mmap.c |8 1 file changed, 4 insertions(+), 4 deletions(-) Index: test-2.6.23-rc4-mm1/fs/union

[PATCH] add page->mapping handling interface [32/35] changes in UDFFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in UDFFS Signed-off-by: KAMEZAWA hiroyuki <[EMAIL PROTECTED]> --- fs/udf/file.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: test-2.6.23-rc4-mm1/fs/udf/file.c ===

[PATCH] add page->mapping handling interface [31/35] changes in SYSVFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handlingi in SYSVFS. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/sysv/dir.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) Index: test-2.6.23-rc4-mm1/fs/s

[PATCH] add page->mapping handling interface [30/35] changes ROMFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in ROMFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/romfs/inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: test-2.6.23-rc4-mm1/fs/romfs/inode.c ===

[PATCH] add page->mapping handling interface [28/35] changes in OCFS2

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in OCFS2 Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/ocfs2/aops.c |8 fs/ocfs2/mmap.c |3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) Index: test-2.6.23-rc4-mm1/fs/ocf

[PATCH] add page->mapping handling interface [29/35] changes in REISER4/REISERFS

2007-09-10 Thread KAMEZAWA Hiroyuki
t 1 of ‘page_inode’ discards qualifiers from pointer target type Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/reiser4/as_ops.c | 34 --- fs/reiser4/entd.c|6 ++--- fs/reiser4/jnode.c

[PATCH] add page->mapping handling interface [26/35] changes in NFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in NFS Singed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/nfs/file.c | 11 ++- fs/nfs/internal.h |2 +- fs/nfs/pagelist.c |2 +- fs/nfs/read.c |4 ++-- fs/nfs/write.c| 35 ++-

[PATCH] add page->mapping handling interface [27/35] changes in NTFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in NTFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/ntfs/aops.c | 14 +++--- fs/ntfs/compress.c |2 +- fs/ntfs/file.c |6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) Index: test-2.6.23-rc4-mm

[PATCH] add page->mapping handling interface [23/35] changes in JFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in JFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/jfs/jfs_metapage.c |8 1 file changed, 4 insertions(+), 4 deletions(-) Index: test-2.6.23-rc4-mm1/fs/jfs/jfs_m

[PATCH] add page->mapping handling interface [25/35] changes in NCPFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in NCPFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/ncpfs/symlink.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: test-2.6.23-rc4-mm1/fs/ncpfs/

[PATCH] add page->mapping handling interface [24/35] changes in MINIX FS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in MINIXFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/minix/dir.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) Index: test-2.6.23-rc4-mm1/fs/mi

[PATCH] add page->mapping handling interface [22/35] changes in JFFS2

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in JFFS2 Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/jffs2/file.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: test-2.6.23-rc4-mm1/fs/jffs2/file.c ===

[PATCH] add page->mapping handling interface [20/35] changes in ISOFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in ISOFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/isofs/rock.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: test-2.6.23-rc4-mm1/fs/isofs/rock.c ===

[PATCH] add page->mapping handling interface [21/35] changes in JBD

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in JBD Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/jbd/journal.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: test-2.6.23-rc4-mm1/fs/jbd/journal.c ===

[PATCH] add page->mapping handling interface [18/35] changes in HFSPLUS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in HFSPLUS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/hfsplus/inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: test-2.6.23-rc4-mm1/fs/hfsplu

[PATCH] add page->mapping handling interface [19/35] changes in HPFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in HPFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/hpfs/namei.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: test-2.6.23-rc4-mm1/fs/hpfs/namei.c ===

[PATCH] add page->mapping handling interface [17/35] changes in HFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in HFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/hfs/inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: test-2.6.23-rc4-mm1/fs/hfs/inode.c === --- te

[PATCH] add page->mapping handling interface [15/35] changes in FUSE

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in FUSE Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/fuse/file.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: test-2.6.23-rc4-mm1/fs/fuse/file.c ===

[PATCH] add page->mapping handling interface [16/35] changes in GFS2

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in GFS2 Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/gfs2/log.c |4 ++-- fs/gfs2/lops.c|2 +- fs/gfs2/meta_io.c |2 +- fs/gfs2/ops_address.c | 16 4 files changed, 12 insertions(+), 12

[PATCH] add page->mapping handling interface [14/35] changes in freevxfs

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in freevxfs. Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/freevxfs/vxfs_immed.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: test-2.6.23-rc4-mm1/fs/freevxfs/vxf

[PATCH] add page->mapping handling interface [13/35] changes in EXT4

2007-09-10 Thread KAMEZAWA Hiroyuki
Changes page->mapping handling in EXT4 Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/ext4/inode.c | 10 +- fs/ext4/writeback.c | 24 2 files changed, 17 insertions(+), 17 deletions(-) Index: test-2.6.23-rc4-mm1/fs/ext

[PATCH] add page->mapping handling interface [12/35] changes in EXT3

2007-09-10 Thread KAMEZAWA Hiroyuki
Change page->mapping handling in EXT3 Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/ext3/inode.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Index: test-2.6.23-rc4-mm1/fs/ext

[PATCH] add page->mapping handling interface [11/35] changes in EXT2

2007-09-10 Thread KAMEZAWA Hiroyuki
Change page->mapping handling in ext2 Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> --- fs/ext2/dir.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) Index: test-2.6.23-rc4-mm1/fs/e

[PATCH] add page->mapping handling interface [10/35] changes in EFS

2007-09-10 Thread KAMEZAWA Hiroyuki
Change page->mapping handling in EFS Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]> Index: test-2.6.23-rc4-mm1/fs/efs/symlink.c === --- test-2.6.23-rc4-mm1.orig/fs/efs/symlink.c +++ test-2.6.23-rc4-mm1/fs/efs/

<    4   5   6   7   8   9   10   11   12   13   >