aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ntfs/super.c')
-rw-r--r--fs/ntfs/super.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c
index bd5610d48242..9de2491f2926 100644
--- a/fs/ntfs/super.c
+++ b/fs/ntfs/super.c
@@ -19,6 +19,7 @@
19 * distribution in the file COPYING); if not, write to the Free Software 19 * distribution in the file COPYING); if not, write to the Free Software
20 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
22 23
23#include <linux/stddef.h> 24#include <linux/stddef.h>
24#include <linux/init.h> 25#include <linux/init.h>
@@ -1896,7 +1897,7 @@ get_ctx_vol_failed:
1896 vol->minor_ver = vi->minor_ver; 1897 vol->minor_ver = vi->minor_ver;
1897 ntfs_attr_put_search_ctx(ctx); 1898 ntfs_attr_put_search_ctx(ctx);
1898 unmap_mft_record(NTFS_I(vol->vol_ino)); 1899 unmap_mft_record(NTFS_I(vol->vol_ino));
1899 printk(KERN_INFO "NTFS volume version %i.%i.\n", vol->major_ver, 1900 pr_info("volume version %i.%i.\n", vol->major_ver,
1900 vol->minor_ver); 1901 vol->minor_ver);
1901 if (vol->major_ver < 3 && NVolSparseEnabled(vol)) { 1902 if (vol->major_ver < 3 && NVolSparseEnabled(vol)) {
1902 ntfs_warning(vol->sb, "Disabling sparse support due to NTFS " 1903 ntfs_warning(vol->sb, "Disabling sparse support due to NTFS "
@@ -3095,7 +3096,7 @@ static int __init init_ntfs_fs(void)
3095 int err = 0; 3096 int err = 0;
3096 3097
3097 /* This may be ugly but it results in pretty output so who cares. (-8 */ 3098 /* This may be ugly but it results in pretty output so who cares. (-8 */
3098 printk(KERN_INFO "NTFS driver " NTFS_VERSION " [Flags: R/" 3099 pr_info("driver " NTFS_VERSION " [Flags: R/"
3099#ifdef NTFS_RW 3100#ifdef NTFS_RW
3100 "W" 3101 "W"
3101#else 3102#else
@@ -3115,16 +3116,15 @@ static int __init init_ntfs_fs(void)
3115 sizeof(ntfs_index_context), 0 /* offset */, 3116 sizeof(ntfs_index_context), 0 /* offset */,
3116 SLAB_HWCACHE_ALIGN, NULL /* ctor */); 3117 SLAB_HWCACHE_ALIGN, NULL /* ctor */);
3117 if (!ntfs_index_ctx_cache) { 3118 if (!ntfs_index_ctx_cache) {
3118 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3119 pr_crit("Failed to create %s!\n", ntfs_index_ctx_cache_name);
3119 ntfs_index_ctx_cache_name);
3120 goto ictx_err_out; 3120 goto ictx_err_out;
3121 } 3121 }
3122 ntfs_attr_ctx_cache = kmem_cache_create(ntfs_attr_ctx_cache_name, 3122 ntfs_attr_ctx_cache = kmem_cache_create(ntfs_attr_ctx_cache_name,
3123 sizeof(ntfs_attr_search_ctx), 0 /* offset */, 3123 sizeof(ntfs_attr_search_ctx), 0 /* offset */,
3124 SLAB_HWCACHE_ALIGN, NULL /* ctor */); 3124 SLAB_HWCACHE_ALIGN, NULL /* ctor */);
3125 if (!ntfs_attr_ctx_cache) { 3125 if (!ntfs_attr_ctx_cache) {
3126 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3126 pr_crit("NTFS: Failed to create %s!\n",
3127 ntfs_attr_ctx_cache_name); 3127 ntfs_attr_ctx_cache_name);
3128 goto actx_err_out; 3128 goto actx_err_out;
3129 } 3129 }
3130 3130
@@ -3132,8 +3132,7 @@ static int __init init_ntfs_fs(void)
3132 (NTFS_MAX_NAME_LEN+1) * sizeof(ntfschar), 0, 3132 (NTFS_MAX_NAME_LEN+1) * sizeof(ntfschar), 0,
3133 SLAB_HWCACHE_ALIGN, NULL); 3133 SLAB_HWCACHE_ALIGN, NULL);
3134 if (!ntfs_name_cache) { 3134 if (!ntfs_name_cache) {
3135 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3135 pr_crit("Failed to create %s!\n", ntfs_name_cache_name);
3136 ntfs_name_cache_name);
3137 goto name_err_out; 3136 goto name_err_out;
3138 } 3137 }
3139 3138
@@ -3141,8 +3140,7 @@ static int __init init_ntfs_fs(void)
3141 sizeof(ntfs_inode), 0, 3140 sizeof(ntfs_inode), 0,
3142 SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, NULL); 3141 SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, NULL);
3143 if (!ntfs_inode_cache) { 3142 if (!ntfs_inode_cache) {
3144 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3143 pr_crit("Failed to create %s!\n", ntfs_inode_cache_name);
3145 ntfs_inode_cache_name);
3146 goto inode_err_out; 3144 goto inode_err_out;
3147 } 3145 }
3148 3146
@@ -3151,15 +3149,14 @@ static int __init init_ntfs_fs(void)
3151 SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 3149 SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD,
3152 ntfs_big_inode_init_once); 3150 ntfs_big_inode_init_once);
3153 if (!ntfs_big_inode_cache) { 3151 if (!ntfs_big_inode_cache) {
3154 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3152 pr_crit("Failed to create %s!\n", ntfs_big_inode_cache_name);
3155 ntfs_big_inode_cache_name);
3156 goto big_inode_err_out; 3153 goto big_inode_err_out;
3157 } 3154 }
3158 3155
3159 /* Register the ntfs sysctls. */ 3156 /* Register the ntfs sysctls. */
3160 err = ntfs_sysctl(1); 3157 err = ntfs_sysctl(1);
3161 if (err) { 3158 if (err) {
3162 printk(KERN_CRIT "NTFS: Failed to register NTFS sysctls!\n"); 3159 pr_crit("Failed to register NTFS sysctls!\n");
3163 goto sysctl_err_out; 3160 goto sysctl_err_out;
3164 } 3161 }
3165 3162
@@ -3168,7 +3165,7 @@ static int __init init_ntfs_fs(void)
3168 ntfs_debug("NTFS driver registered successfully."); 3165 ntfs_debug("NTFS driver registered successfully.");
3169 return 0; /* Success! */ 3166 return 0; /* Success! */
3170 } 3167 }
3171 printk(KERN_CRIT "NTFS: Failed to register NTFS filesystem driver!\n"); 3168 pr_crit("Failed to register NTFS filesystem driver!\n");
3172 3169
3173 /* Unregister the ntfs sysctls. */ 3170 /* Unregister the ntfs sysctls. */
3174 ntfs_sysctl(0); 3171 ntfs_sysctl(0);
@@ -3184,8 +3181,7 @@ actx_err_out:
3184 kmem_cache_destroy(ntfs_index_ctx_cache); 3181 kmem_cache_destroy(ntfs_index_ctx_cache);
3185ictx_err_out: 3182ictx_err_out:
3186 if (!err) { 3183 if (!err) {
3187 printk(KERN_CRIT "NTFS: Aborting NTFS filesystem driver " 3184 pr_crit("Aborting NTFS filesystem driver registration...\n");
3188 "registration...\n");
3189 err = -ENOMEM; 3185 err = -ENOMEM;
3190 } 3186 }
3191 return err; 3187 return err;