Skip to content
  • Alex Chiang's avatar
    mm: add numa node symlink for memory section in sysfs · dee5d0d5
    Alex Chiang authored
    Commit c04fc586
    
     (mm: show node to memory section relationship with
    symlinks in sysfs) created symlinks from nodes to memory sections, e.g.
    
    /sys/devices/system/node/node1/memory135 -> ../../memory/memory135
    
    If you're examining the memory section though and are wondering what node
    it might belong to, you can find it by grovelling around in sysfs, but
    it's a little cumbersome.
    
    Add a reverse symlink for each memory section that points back to the
    node to which it belongs.
    
    Signed-off-by: default avatarAlex Chiang <achiang@hp.com>
    Cc: Gary Hade <garyhade@us.ibm.com>
    Cc: Badari Pulavarty <pbadari@us.ibm.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Acked-by: default avatarDavid Rientjes <rientjes@google.com>
    Cc: Greg KH <greg@kroah.com>
    Cc: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: David Rientjes <rientjes@google.com>
    Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    dee5d0d5