Commit 52ca0e84 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

hugetlbfs: lessen the impact of a deprecation warning

WARN_ONCE is a bit strong for a deprecation warning, given that it spews a
huge backtrace.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 27d20fdd
...@@ -932,8 +932,7 @@ struct file *hugetlb_file_setup(const char *name, size_t size, int acctflag, ...@@ -932,8 +932,7 @@ struct file *hugetlb_file_setup(const char *name, size_t size, int acctflag,
if (creat_flags == HUGETLB_SHMFS_INODE && !can_do_hugetlb_shm()) { if (creat_flags == HUGETLB_SHMFS_INODE && !can_do_hugetlb_shm()) {
*user = current_user(); *user = current_user();
if (user_shm_lock(size, *user)) { if (user_shm_lock(size, *user)) {
WARN_ONCE(1, printk_once(KERN_WARNING "Using mlock ulimits for SHM_HUGETLB is deprecated\n");
"Using mlock ulimits for SHM_HUGETLB deprecated\n");
} else { } else {
*user = NULL; *user = NULL;
return ERR_PTR(-EPERM); return ERR_PTR(-EPERM);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment