diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-06-04 19:07:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:00 -0400 |
commit | 9b857d26d08f00971997cd21aa491e27e0c84ce3 (patch) | |
tree | 9d4cda6dd7090f88543c20430e9e0cd98196b78b /fs/hugetlbfs | |
parent | 03afc0e25f7fc03537014a770f4c54ebbe63a24c (diff) |
fs/hugetlbfs/inode.c: complete conversion to pr_foo()
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hugetlbfs')
-rw-r--r-- | fs/hugetlbfs/inode.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index e19d4c0cacae..261182468ea2 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -6,6 +6,8 @@ | |||
6 | * Copyright (C) 2002 Linus Torvalds. | 6 | * Copyright (C) 2002 Linus Torvalds. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
10 | |||
9 | #include <linux/module.h> | 11 | #include <linux/module.h> |
10 | #include <linux/thread_info.h> | 12 | #include <linux/thread_info.h> |
11 | #include <asm/current.h> | 13 | #include <asm/current.h> |
@@ -823,8 +825,7 @@ hugetlbfs_parse_options(char *options, struct hugetlbfs_config *pconfig) | |||
823 | ps = memparse(args[0].from, &rest); | 825 | ps = memparse(args[0].from, &rest); |
824 | pconfig->hstate = size_to_hstate(ps); | 826 | pconfig->hstate = size_to_hstate(ps); |
825 | if (!pconfig->hstate) { | 827 | if (!pconfig->hstate) { |
826 | printk(KERN_ERR | 828 | pr_err("Unsupported page size %lu MB\n", |
827 | "hugetlbfs: Unsupported page size %lu MB\n", | ||
828 | ps >> 20); | 829 | ps >> 20); |
829 | return -EINVAL; | 830 | return -EINVAL; |
830 | } | 831 | } |
@@ -832,8 +833,7 @@ hugetlbfs_parse_options(char *options, struct hugetlbfs_config *pconfig) | |||
832 | } | 833 | } |
833 | 834 | ||
834 | default: | 835 | default: |
835 | printk(KERN_ERR "hugetlbfs: Bad mount option: \"%s\"\n", | 836 | pr_err("Bad mount option: \"%s\"\n", p); |
836 | p); | ||
837 | return -EINVAL; | 837 | return -EINVAL; |
838 | break; | 838 | break; |
839 | } | 839 | } |
@@ -853,8 +853,7 @@ hugetlbfs_parse_options(char *options, struct hugetlbfs_config *pconfig) | |||
853 | return 0; | 853 | return 0; |
854 | 854 | ||
855 | bad_val: | 855 | bad_val: |
856 | printk(KERN_ERR "hugetlbfs: Bad value '%s' for mount option '%s'\n", | 856 | pr_err("Bad value '%s' for mount option '%s'\n", args[0].from, p); |
857 | args[0].from, p); | ||
858 | return -EINVAL; | 857 | return -EINVAL; |
859 | } | 858 | } |
860 | 859 | ||
@@ -970,8 +969,7 @@ struct file *hugetlb_file_setup(const char *name, size_t size, | |||
970 | *user = current_user(); | 969 | *user = current_user(); |
971 | if (user_shm_lock(size, *user)) { | 970 | if (user_shm_lock(size, *user)) { |
972 | task_lock(current); | 971 | task_lock(current); |
973 | printk_once(KERN_WARNING | 972 | pr_warn_once("%s (%d): Using mlock ulimits for SHM_HUGETLB is deprecated\n", |
974 | "%s (%d): Using mlock ulimits for SHM_HUGETLB is deprecated\n", | ||
975 | current->comm, current->pid); | 973 | current->comm, current->pid); |
976 | task_unlock(current); | 974 | task_unlock(current); |
977 | } else { | 975 | } else { |
@@ -1031,7 +1029,7 @@ static int __init init_hugetlbfs_fs(void) | |||
1031 | int i; | 1029 | int i; |
1032 | 1030 | ||
1033 | if (!hugepages_supported()) { | 1031 | if (!hugepages_supported()) { |
1034 | pr_info("hugetlbfs: disabling because there are no supported hugepage sizes\n"); | 1032 | pr_info("disabling because there are no supported hugepage sizes\n"); |
1035 | return -ENOTSUPP; | 1033 | return -ENOTSUPP; |
1036 | } | 1034 | } |
1037 | 1035 | ||
@@ -1060,7 +1058,7 @@ static int __init init_hugetlbfs_fs(void) | |||
1060 | buf); | 1058 | buf); |
1061 | 1059 | ||
1062 | if (IS_ERR(hugetlbfs_vfsmount[i])) { | 1060 | if (IS_ERR(hugetlbfs_vfsmount[i])) { |
1063 | pr_err("hugetlb: Cannot mount internal hugetlbfs for " | 1061 | pr_err("Cannot mount internal hugetlbfs for " |
1064 | "page size %uK", ps_kb); | 1062 | "page size %uK", ps_kb); |
1065 | error = PTR_ERR(hugetlbfs_vfsmount[i]); | 1063 | error = PTR_ERR(hugetlbfs_vfsmount[i]); |
1066 | hugetlbfs_vfsmount[i] = NULL; | 1064 | hugetlbfs_vfsmount[i] = NULL; |