Thread (47 messages) 47 messages, 6 authors, 2013-02-07

Re: [PATCH v5 04/14] memory-hotplug: remove /sys/firmware/memmap/X sysfs

From: Tang Chen <hidden>
Date: 2012-12-27 03:10:37
Also in: linux-acpi, linux-mm, linux-s390, linux-sh, lkml, sparclinux

On 12/26/2012 11:30 AM, Kamezawa Hiroyuki wrote:
quoted
@@ -41,6 +42,7 @@ struct firmware_map_entry {
   	const char		*type;	/* type of the memory range */
   	struct list_head	list;	/* entry for the linked list */
   	struct kobject		kobj;   /* kobject for each entry */
+	unsigned int		bootmem:1; /* allocated from bootmem */
   };
Can't we detect from which the object is allocated from, slab or bootmem ?

Hm, for example,

     PageReserved(virt_to_page(address_of_obj)) ?
     PageSlab(virt_to_page(address_of_obj)) ?
Hi Kamezawa-san,

I think we can detect it without a new member. I think bootmem:1 member
is just for convenience. I think I can remove it. :)

Thanks. :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help