Re: [7/7, v9] NUMA Hotplug Emulator: Implement per-node add_memory debugfs interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shaohui Zheng
Date: Wednesday, December 22, 2010 - 7:00 pm

On Wed, Dec 22, 2010 at 04:27:36PM -0800, Andrew Morton wrote:

Yes, It is a my habit to initialize variable when define it. I will check them 
one by one.


An explicit typecast looks much better.


We ignored the warning for function simple_strtoull in the whole patchset.
We will solve it one by one.


Yes, I added the usage information when create the add_memory entry, it seems
that I should also add comment here.

/* the nid information was represented by the offset of pointer(NULL+nid) */
	if (!debugfs_create_file("add_memory", S_IWUSR, node_debug_root,
			NULL + nid, &add_memory_file_ops))


Totally agree. I see that the simliar call on debugfs_create_dir. For the failure,
most of them assume ENOMEM, some of them assume as EINVAL.


Good catching.


-- 
Thanks & Regards,
Shaohui

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[0/7, v9] NUMA Hotplug Emulator (v9), shaohui.zheng, (Fri Dec 10, 12:31 am)
[1/7, v9] NUMA Hotplug Emulator: Documentation, shaohui.zheng, (Fri Dec 10, 12:31 am)
[2/7, v9] NUMA Hotplug Emulator: Add numa=possible option, shaohui.zheng, (Fri Dec 10, 12:31 am)
Re: [7/7, v9] NUMA Hotplug Emulator: Implement per-node ad ..., Shaohui Zheng, (Wed Dec 22, 7:00 pm)
[patch] mm: add node hotplug emulation, David Rientjes, (Tue Dec 28, 12:34 am)