[PATCH 05/10] tmpfs: mem_cgroup charge fault to vm_mm not current mm

2016-04-05 Thread Hugh Dickins
From: Andres Lagar-Cavilla Although shmem_fault() has been careful to count a major fault to vm_mm, shmem_getpage_gfp() has been careless in charging a remote access fault to current->mm owner's memcg instead of to vma->vm_mm owner's memcg: that is inconsistent with all the

[PATCH 05/10] tmpfs: mem_cgroup charge fault to vm_mm not current mm

2016-04-05 Thread Hugh Dickins
From: Andres Lagar-Cavilla Although shmem_fault() has been careful to count a major fault to vm_mm, shmem_getpage_gfp() has been careless in charging a remote access fault to current->mm owner's memcg instead of to vma->vm_mm owner's memcg: that is inconsistent with all the mem_cgroup charging