mm,hugetlb: remove mlock ulimit for SHM_HUGETLB
Subsystems (2)
PATCH v2 1/1 mm,hugetlb: remove mlock ulimit for SHM_HUGETLB
commit 21a3c273f88c9cbbaf7e ("mm, hugetlb: add thread name and pid to SHM_HUGETLB mlock rlimit warning") marked this as deprecated in 2012, but it is not deleted yet.
Mike says he still see that message in log files on occasion, so maybe we should preserve this warning.
Signed-off-by zhangyiru <[email protected]>
---
Changelog:
v2: preserve warning message
v1: remove mlock ulimit for SHM_HUGETLB
--- fs/hugetlbfs/inode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
fs/hugetlbfs/inode.c +2 -3
@@ -1470,10 +1470,9 @@ struct file *hugetlb_file_setup(const char *name, size_t size,pr_warn_once ("%s (%d): Using mlock ulimits for SHM_HUGETLB is deprecated\n" , current->comm, current->pid);task_unlock (current); - }else { - *ucounts =NULL ; -return ERR_PTR (-EPERM ); } + *ucounts =NULL ; +return ERR_PTR (-EPERM ); } file =ERR_PTR (-ENOSPC );
Signature · 1 line
2.27.0