• Glauber Costa's avatar
    Partial revert "Basic kernel memory functionality for the Memory Controller" · 65c64ce8
    Glauber Costa authored
    This reverts commit e5671dfa.
    
    After a follow up discussion with Michal, it was agreed it would
    be better to leave the kmem controller with just the tcp files,
    deferring the behavior of the other general memory.kmem.* files
    for a later time, when more caches are controlled. This is because
    generic kmem files are not used by tcp accounting and it is
    not clear how other slab caches would fit into the scheme.
    
    We are reverting the original commit so we can track the reference.
    Part of the patch is kept, because it was used by the later tcp
    code. Conflicts are shown in the bottom. init/Kconfig is removed from
    the revert entirely.
    Signed-off-by: default avatarGlauber Costa <glommer@parallels.com>
    Acked-by: default avatarMichal Hocko <mhocko@suse.cz>
    CC: Kirill A. Shutemov <kirill@shutemov.name>
    CC: Paul Menage <paul@paulmenage.org>
    CC: Greg Thelen <gthelen@google.com>
    CC: Johannes Weiner <jweiner@redhat.com>
    CC: David S. Miller <davem@davemloft.net>
    
    Conflicts:
    
    	Documentation/cgroups/memory.txt
    	mm/memcontrol.c
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    65c64ce8
memcontrol.c 145 KB