FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 05-13-2008, 07:30 PM
 
Default Use address_space.__nrpages for RT kernel

The patch mapping_nrpages.patch from RT kernel

Subject: mm/fs: abstract address_space::nrpages

Currently the tree_lock protects mapping->nrpages, this will not be
possible much longer. Hence abstract the access to this variable so that
it can be easily replaced by an atomic_ulong_t.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>

renames address_space.nrpages to address_space.__nrpages. This patch implements
that renaming for crash if address_space.nrpages is invalid.


Signed-off-by: Bernhard Walle <bwalle@suse.de>

---
memory.c | 3 +++
1 file changed, 3 insertions(+)

--- a/memory.c
+++ b/memory.c
@@ -320,6 +320,9 @@ vm_init(void)
MEMBER_OFFSET_INIT(block_device_bd_disk, "block_device", "bd_disk");
MEMBER_OFFSET_INIT(inode_i_mapping, "inode", "i_mapping");
MEMBER_OFFSET_INIT(address_space_nrpages, "address_space", "nrpages");
+ if (INVALID_MEMBER(address_space_nrpages))
+ MEMBER_OFFSET_INIT(address_space_nrpages, "address_space", "__nrpages");
+
MEMBER_OFFSET_INIT(gendisk_major, "gendisk", "major");
MEMBER_OFFSET_INIT(gendisk_fops, "gendisk", "fops");
MEMBER_OFFSET_INIT(gendisk_disk_name, "gendisk", "disk_name");

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 
Old 05-13-2008, 08:01 PM
Dave Anderson
 
Default Use address_space.__nrpages for RT kernel

Bernhard Walle wrote:

The patch mapping_nrpages.patch from RT kernel

Subject: mm/fs: abstract address_space::nrpages

Currently the tree_lock protects mapping->nrpages, this will not be

possible much longer. Hence abstract the access to this variable so that
it can be easily replaced by an atomic_ulong_t.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>


renames address_space.nrpages to address_space.__nrpages. This patch implements
that renaming for crash if address_space.nrpages is invalid.


Signed-off-by: Bernhard Walle <bwalle@suse.de>

---
memory.c | 3 +++
1 file changed, 3 insertions(+)

--- a/memory.c
+++ b/memory.c
@@ -320,6 +320,9 @@ vm_init(void)
MEMBER_OFFSET_INIT(block_device_bd_disk, "block_device", "bd_disk");
MEMBER_OFFSET_INIT(inode_i_mapping, "inode", "i_mapping");
MEMBER_OFFSET_INIT(address_space_nrpages, "address_space", "nrpages");
+ if (INVALID_MEMBER(address_space_nrpages))
+ MEMBER_OFFSET_INIT(address_space_nrpages, "address_space", "__nrpages");
+
MEMBER_OFFSET_INIT(gendisk_major, "gendisk", "major");
MEMBER_OFFSET_INIT(gendisk_fops, "gendisk", "fops");
MEMBER_OFFSET_INIT(gendisk_disk_name, "gendisk", "disk_name");

--


No problem here -- queued for the next release.

Thanks,
Dave

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 

Thread Tools




All times are GMT. The time now is 02:42 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org