Thank you for review and comments. totally updated. Problem: /sys/devices/system/memory/memoryX/removable file shows whether the section can be offlined or not. Returns "1" if it seems removable. Now, the file uses a similar logic to one offline_pages() uses. Then, it's better to use unified logic. The biggest change from previous one is this patch just unifies is_removable() and offline code's logic. No functional change in offline() code. (is_removable code is updated to be better.) Brief patch description: 1. bugfix for is_removable() check. I think this should be back ported. (updated) 2. bugfix for callback at counting immobile pages. (no change) 3. the unified new logic for is_remobable. (updated) Because I'm moving house, my response may be delayd. Thanks, -Kame -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>