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
477477 extern const struct file_operations hugetlbfs_file_operations;
478478 extern const struct vm_operations_struct hugetlb_vm_ops;
479479 struct file *hugetlb_file_setup(const char *name, size_t size, vm_flags_t acct,
480− struct ucounts **ucounts, int creat_flags,
481− int page_size_log);
480+ int creat_flags, int page_size_log);
482481
483482 static inline bool is_file_hugepages(struct file *file)
484483 {
@@ -497,8 +496,7 @@ static inline struct hstate *hstate_inode(struct inode *i) · 12 unmodified lines
497496 #define is_file_hugepages(file) false
498497 static inline struct file *
499498 hugetlb_file_setup(const char *name, size_t size, vm_flags_t acctflag,
500− struct ucounts **ucounts, int creat_flags,
501− int page_size_log)
499+ int creat_flags, int page_size_log)
502500 {
503501 return ERR_PTR(-ENOSYS);
504502 }

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