Skip to content
  • Tejun Heo's avatar
    hugetlb_cgroup: convert away from cftype->read() · 716f479d
    Tejun Heo authored
    
    
    In preparation of conversion to kernfs, cgroup file handling is being
    consolidated so that it can be easily mapped to the seq_file based
    interface of kernfs.
    
    All users of cftype->read() can be easily served, usually better, by
    seq_file and other methods.  Update hugetlb_cgroup_read() to return
    u64 instead of printing itself and rename it to
    hugetlb_cgroup_read_u64().
    
    This patch doesn't make any visible behavior changes.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Reviewed-by: default avatarMichal Hocko <mhocko@suse.cz>
    Acked-by: default avatarLi Zefan <lizefan@huawei.com>
    Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    716f479d