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.
Showing the changes to include (1 of 5 files). Show all
Unified · Split
| @@ -477,8 +477,7 @@ static inline struct hugetlbfs_inode_info *HUGETLBFS_I(struct inode *inode) · 476 unmodified lines | ||
| 477 | 477 | extern const struct file_operations hugetlbfs_file_operations; |
| 478 | 478 | extern const struct vm_operations_struct hugetlb_vm_ops; |
| 479 | 479 | 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); | |
| 482 | 481 | |
| 483 | 482 | static 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 | 496 | #define is_file_hugepages(file) false |
| 498 | 497 | static inline struct file * |
| 499 | 498 | 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) | |
| 502 | 500 | { |
| 503 | 501 | return ERR_PTR(-ENOSYS); |
| 504 | 502 | } |