History

mm,hugetlb: remove mlock ulimit for SHM_HUGETLB

Commit 21a3c273f88c ("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 sees that message in log files on occasion, so maybe we should preserve this warning. Also remove hugetlbfs related user_shm_unlock in ipc/shm.c and remove the user_shm_unlock after out.

zhangyiru committed 5 years ago

Commit 83c1fd71 parent 51b8c1f5 files · +13 −31Browse files

Showing the changes to include (1 of 5 files). Show all

Unified · Split

include/linux/hugetlb.h+2−4
@@ -477,8 +477,7 @@ static inline struct hugetlbfs_inode_info *HUGETLBFS_I(struct inode *inode) · 476 unmodified lines
477extern const struct file_operations hugetlbfs_file_operations;477extern const struct file_operations hugetlbfs_file_operations;
478extern const struct vm_operations_struct hugetlb_vm_ops;478extern const struct vm_operations_struct hugetlb_vm_ops;
479struct file *hugetlb_file_setup(const char *name, size_t size, vm_flags_t acct,479struct file *hugetlb_file_setup(const char *name, size_t size, vm_flags_t acct,
480 struct ucounts **ucounts, int creat_flags,480 int creat_flags, int page_size_log);
481 int page_size_log);
482 481
483static inline bool is_file_hugepages(struct file *file)482static inline bool is_file_hugepages(struct file *file)
484{483{
@@ -497,8 +496,7 @@ static inline struct hstate *hstate_inode(struct inode *i) · 12 unmodified lines
497#define is_file_hugepages(file) false496#define is_file_hugepages(file) false
498static inline struct file *497static inline struct file *
499hugetlb_file_setup(const char *name, size_t size, vm_flags_t acctflag,498hugetlb_file_setup(const char *name, size_t size, vm_flags_t acctflag,
500 struct ucounts **ucounts, int creat_flags,499 int creat_flags, int page_size_log)
501 int page_size_log)
502{500{
503 return ERR_PTR(-ENOSYS);501 return ERR_PTR(-ENOSYS);
504}502}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t