diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:36:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:10 -0400 |
commit | a19189e5535ed8fd191d8989fc39da1637cfa224 (patch) | |
tree | 015539572a32a74d37a72f8ef9dd35c0d9c1a0e0 /fs/hpfs | |
parent | 1749a10e02a9c6ed1a5c0a2860fb9ed132f2cc42 (diff) |
fs/hpfs: increase pr_warn level
This patch applies a suggestion by Mikulas Patocka asking to increase
all pr_warn without commented ones to pr_err
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hpfs')
-rw-r--r-- | fs/hpfs/buffer.c | 12 | ||||
-rw-r--r-- | fs/hpfs/dir.c | 2 | ||||
-rw-r--r-- | fs/hpfs/dnode.c | 24 | ||||
-rw-r--r-- | fs/hpfs/ea.c | 6 | ||||
-rw-r--r-- | fs/hpfs/inode.c | 2 | ||||
-rw-r--r-- | fs/hpfs/map.c | 14 | ||||
-rw-r--r-- | fs/hpfs/name.c | 6 | ||||
-rw-r--r-- | fs/hpfs/super.c | 28 |
8 files changed, 47 insertions, 47 deletions
diff --git a/fs/hpfs/buffer.c b/fs/hpfs/buffer.c index 07e0b0fc4548..8057fe4e6574 100644 --- a/fs/hpfs/buffer.c +++ b/fs/hpfs/buffer.c | |||
@@ -55,7 +55,7 @@ void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_head | |||
55 | if (bh != NULL) | 55 | if (bh != NULL) |
56 | return bh->b_data; | 56 | return bh->b_data; |
57 | else { | 57 | else { |
58 | pr_warn("%s(): read error\n", __func__); | 58 | pr_err("%s(): read error\n", __func__); |
59 | return NULL; | 59 | return NULL; |
60 | } | 60 | } |
61 | } | 61 | } |
@@ -76,7 +76,7 @@ void *hpfs_get_sector(struct super_block *s, unsigned secno, struct buffer_head | |||
76 | set_buffer_uptodate(bh); | 76 | set_buffer_uptodate(bh); |
77 | return bh->b_data; | 77 | return bh->b_data; |
78 | } else { | 78 | } else { |
79 | pr_warn("%s(): getblk failed\n", __func__); | 79 | pr_err("%s(): getblk failed\n", __func__); |
80 | return NULL; | 80 | return NULL; |
81 | } | 81 | } |
82 | } | 82 | } |
@@ -93,7 +93,7 @@ void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffe | |||
93 | cond_resched(); | 93 | cond_resched(); |
94 | 94 | ||
95 | if (secno & 3) { | 95 | if (secno & 3) { |
96 | pr_warn("%s(): unaligned read\n", __func__); | 96 | pr_err("%s(): unaligned read\n", __func__); |
97 | return NULL; | 97 | return NULL; |
98 | } | 98 | } |
99 | 99 | ||
@@ -112,7 +112,7 @@ void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffe | |||
112 | 112 | ||
113 | qbh->data = data = kmalloc(2048, GFP_NOFS); | 113 | qbh->data = data = kmalloc(2048, GFP_NOFS); |
114 | if (!data) { | 114 | if (!data) { |
115 | pr_warn("%s(): out of memory\n", __func__); | 115 | pr_err("%s(): out of memory\n", __func__); |
116 | goto bail4; | 116 | goto bail4; |
117 | } | 117 | } |
118 | 118 | ||
@@ -145,7 +145,7 @@ void *hpfs_get_4sectors(struct super_block *s, unsigned secno, | |||
145 | hpfs_lock_assert(s); | 145 | hpfs_lock_assert(s); |
146 | 146 | ||
147 | if (secno & 3) { | 147 | if (secno & 3) { |
148 | pr_warn("%s(): unaligned read\n", __func__); | 148 | pr_err("%s(): unaligned read\n", __func__); |
149 | return NULL; | 149 | return NULL; |
150 | } | 150 | } |
151 | 151 | ||
@@ -161,7 +161,7 @@ void *hpfs_get_4sectors(struct super_block *s, unsigned secno, | |||
161 | } | 161 | } |
162 | 162 | ||
163 | if (!(qbh->data = kmalloc(2048, GFP_NOFS))) { | 163 | if (!(qbh->data = kmalloc(2048, GFP_NOFS))) { |
164 | pr_warn("%s(): out of memory\n", __func__); | 164 | pr_err("%s(): out of memory\n", __func__); |
165 | goto bail4; | 165 | goto bail4; |
166 | } | 166 | } |
167 | return qbh->data; | 167 | return qbh->data; |
diff --git a/fs/hpfs/dir.c b/fs/hpfs/dir.c index 3377eba73c13..2a8e07425de0 100644 --- a/fs/hpfs/dir.c +++ b/fs/hpfs/dir.c | |||
@@ -127,7 +127,7 @@ static int hpfs_readdir(struct file *file, struct dir_context *ctx) | |||
127 | if (ctx->pos == 12) | 127 | if (ctx->pos == 12) |
128 | goto out; | 128 | goto out; |
129 | if (ctx->pos == 3 || ctx->pos == 4 || ctx->pos == 5) { | 129 | if (ctx->pos == 3 || ctx->pos == 4 || ctx->pos == 5) { |
130 | pr_warn("pos==%d\n", (int)ctx->pos); | 130 | pr_err("pos==%d\n", (int)ctx->pos); |
131 | goto out; | 131 | goto out; |
132 | } | 132 | } |
133 | if (ctx->pos == 0) { | 133 | if (ctx->pos == 0) { |
diff --git a/fs/hpfs/dnode.c b/fs/hpfs/dnode.c index d10c5e91c5b2..f36fc010fccb 100644 --- a/fs/hpfs/dnode.c +++ b/fs/hpfs/dnode.c | |||
@@ -32,7 +32,7 @@ void hpfs_add_pos(struct inode *inode, loff_t *pos) | |||
32 | if (hpfs_inode->i_rddir_off[i] == pos) return; | 32 | if (hpfs_inode->i_rddir_off[i] == pos) return; |
33 | if (!(i&0x0f)) { | 33 | if (!(i&0x0f)) { |
34 | if (!(ppos = kmalloc((i+0x11) * sizeof(loff_t*), GFP_NOFS))) { | 34 | if (!(ppos = kmalloc((i+0x11) * sizeof(loff_t*), GFP_NOFS))) { |
35 | pr_warn("out of memory for position list\n"); | 35 | pr_err("out of memory for position list\n"); |
36 | return; | 36 | return; |
37 | } | 37 | } |
38 | if (hpfs_inode->i_rddir_off) { | 38 | if (hpfs_inode->i_rddir_off) { |
@@ -94,7 +94,7 @@ static void hpfs_pos_ins(loff_t *p, loff_t d, loff_t c) | |||
94 | if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { | 94 | if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { |
95 | int n = (*p & 0x3f) + c; | 95 | int n = (*p & 0x3f) + c; |
96 | if (n > 0x3f) | 96 | if (n > 0x3f) |
97 | pr_warn("%s(): %08x + %d\n", | 97 | pr_err("%s(): %08x + %d\n", |
98 | __func__, (int)*p, (int)c >> 8); | 98 | __func__, (int)*p, (int)c >> 8); |
99 | else | 99 | else |
100 | *p = (*p & ~0x3f) | n; | 100 | *p = (*p & ~0x3f) | n; |
@@ -106,7 +106,7 @@ static void hpfs_pos_del(loff_t *p, loff_t d, loff_t c) | |||
106 | if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { | 106 | if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { |
107 | int n = (*p & 0x3f) - c; | 107 | int n = (*p & 0x3f) - c; |
108 | if (n < 1) | 108 | if (n < 1) |
109 | pr_warn("%s(): %08x - %d\n", | 109 | pr_err("%s(): %08x - %d\n", |
110 | __func__, (int)*p, (int)c >> 8); | 110 | __func__, (int)*p, (int)c >> 8); |
111 | else | 111 | else |
112 | *p = (*p & ~0x3f) | n; | 112 | *p = (*p & ~0x3f) | n; |
@@ -246,7 +246,7 @@ static int hpfs_add_to_dnode(struct inode *i, dnode_secno dno, | |||
246 | struct fnode *fnode; | 246 | struct fnode *fnode; |
247 | int c1, c2 = 0; | 247 | int c1, c2 = 0; |
248 | if (!(nname = kmalloc(256, GFP_NOFS))) { | 248 | if (!(nname = kmalloc(256, GFP_NOFS))) { |
249 | pr_warn("out of memory, can't add to dnode\n"); | 249 | pr_err("out of memory, can't add to dnode\n"); |
250 | return 1; | 250 | return 1; |
251 | } | 251 | } |
252 | go_up: | 252 | go_up: |
@@ -288,7 +288,7 @@ static int hpfs_add_to_dnode(struct inode *i, dnode_secno dno, | |||
288 | not be any error while splitting dnodes, otherwise the | 288 | not be any error while splitting dnodes, otherwise the |
289 | whole directory, not only file we're adding, would | 289 | whole directory, not only file we're adding, would |
290 | be lost. */ | 290 | be lost. */ |
291 | pr_warn("out of memory for dnode splitting\n"); | 291 | pr_err("out of memory for dnode splitting\n"); |
292 | hpfs_brelse4(&qbh); | 292 | hpfs_brelse4(&qbh); |
293 | kfree(nname); | 293 | kfree(nname); |
294 | return 1; | 294 | return 1; |
@@ -604,7 +604,7 @@ static void delete_empty_dnode(struct inode *i, dnode_secno dno) | |||
604 | if (!de_next->down) goto endm; | 604 | if (!de_next->down) goto endm; |
605 | ndown = de_down_pointer(de_next); | 605 | ndown = de_down_pointer(de_next); |
606 | if (!(de_cp = kmalloc(le16_to_cpu(de->length), GFP_NOFS))) { | 606 | if (!(de_cp = kmalloc(le16_to_cpu(de->length), GFP_NOFS))) { |
607 | pr_warn("out of memory for dtree balancing\n"); | 607 | pr_err("out of memory for dtree balancing\n"); |
608 | goto endm; | 608 | goto endm; |
609 | } | 609 | } |
610 | memcpy(de_cp, de, le16_to_cpu(de->length)); | 610 | memcpy(de_cp, de, le16_to_cpu(de->length)); |
@@ -645,15 +645,15 @@ static void delete_empty_dnode(struct inode *i, dnode_secno dno) | |||
645 | if (!dlp && down) { | 645 | if (!dlp && down) { |
646 | if (le32_to_cpu(d1->first_free) > 2044) { | 646 | if (le32_to_cpu(d1->first_free) > 2044) { |
647 | if (hpfs_sb(i->i_sb)->sb_chk >= 2) { | 647 | if (hpfs_sb(i->i_sb)->sb_chk >= 2) { |
648 | pr_warn("unbalanced dnode tree, see hpfs.txt 4 more info\n"); | 648 | pr_err("unbalanced dnode tree, see hpfs.txt 4 more info\n"); |
649 | pr_warn("terminating balancing operation\n"); | 649 | pr_err("terminating balancing operation\n"); |
650 | } | 650 | } |
651 | hpfs_brelse4(&qbh1); | 651 | hpfs_brelse4(&qbh1); |
652 | goto endm; | 652 | goto endm; |
653 | } | 653 | } |
654 | if (hpfs_sb(i->i_sb)->sb_chk >= 2) { | 654 | if (hpfs_sb(i->i_sb)->sb_chk >= 2) { |
655 | pr_warn("unbalanced dnode tree, see hpfs.txt 4 more info\n"); | 655 | pr_err("unbalanced dnode tree, see hpfs.txt 4 more info\n"); |
656 | pr_warn("goin'on\n"); | 656 | pr_err("goin'on\n"); |
657 | } | 657 | } |
658 | le16_add_cpu(&del->length, 4); | 658 | le16_add_cpu(&del->length, 4); |
659 | del->down = 1; | 659 | del->down = 1; |
@@ -667,7 +667,7 @@ static void delete_empty_dnode(struct inode *i, dnode_secno dno) | |||
667 | *(__le32 *) ((void *) del + le16_to_cpu(del->length) - 4) = cpu_to_le32(down); | 667 | *(__le32 *) ((void *) del + le16_to_cpu(del->length) - 4) = cpu_to_le32(down); |
668 | } else goto endm; | 668 | } else goto endm; |
669 | if (!(de_cp = kmalloc(le16_to_cpu(de_prev->length), GFP_NOFS))) { | 669 | if (!(de_cp = kmalloc(le16_to_cpu(de_prev->length), GFP_NOFS))) { |
670 | pr_warn("out of memory for dtree balancing\n"); | 670 | pr_err("out of memory for dtree balancing\n"); |
671 | hpfs_brelse4(&qbh1); | 671 | hpfs_brelse4(&qbh1); |
672 | goto endm; | 672 | goto endm; |
673 | } | 673 | } |
@@ -1008,7 +1008,7 @@ struct hpfs_dirent *map_fnode_dirent(struct super_block *s, fnode_secno fno, | |||
1008 | int d1, d2 = 0; | 1008 | int d1, d2 = 0; |
1009 | name1 = f->name; | 1009 | name1 = f->name; |
1010 | if (!(name2 = kmalloc(256, GFP_NOFS))) { | 1010 | if (!(name2 = kmalloc(256, GFP_NOFS))) { |
1011 | pr_warn("out of memory, can't map dirent\n"); | 1011 | pr_err("out of memory, can't map dirent\n"); |
1012 | return NULL; | 1012 | return NULL; |
1013 | } | 1013 | } |
1014 | if (f->len <= 15) | 1014 | if (f->len <= 15) |
diff --git a/fs/hpfs/ea.c b/fs/hpfs/ea.c index 817805975457..ce3f98ba993a 100644 --- a/fs/hpfs/ea.c +++ b/fs/hpfs/ea.c | |||
@@ -51,7 +51,7 @@ static char *get_indirect_ea(struct super_block *s, int ano, secno a, int size) | |||
51 | { | 51 | { |
52 | char *ret; | 52 | char *ret; |
53 | if (!(ret = kmalloc(size + 1, GFP_NOFS))) { | 53 | if (!(ret = kmalloc(size + 1, GFP_NOFS))) { |
54 | pr_warn("out of memory for EA\n"); | 54 | pr_err("out of memory for EA\n"); |
55 | return NULL; | 55 | return NULL; |
56 | } | 56 | } |
57 | if (hpfs_ea_read(s, a, ano, 0, size, ret)) { | 57 | if (hpfs_ea_read(s, a, ano, 0, size, ret)) { |
@@ -139,7 +139,7 @@ char *hpfs_get_ea(struct super_block *s, struct fnode *fnode, char *key, int *si | |||
139 | if (ea_indirect(ea)) | 139 | if (ea_indirect(ea)) |
140 | return get_indirect_ea(s, ea_in_anode(ea), ea_sec(ea), *size = ea_len(ea)); | 140 | return get_indirect_ea(s, ea_in_anode(ea), ea_sec(ea), *size = ea_len(ea)); |
141 | if (!(ret = kmalloc((*size = ea_valuelen(ea)) + 1, GFP_NOFS))) { | 141 | if (!(ret = kmalloc((*size = ea_valuelen(ea)) + 1, GFP_NOFS))) { |
142 | pr_warn("out of memory for EA\n"); | 142 | pr_err("out of memory for EA\n"); |
143 | return NULL; | 143 | return NULL; |
144 | } | 144 | } |
145 | memcpy(ret, ea_data(ea), ea_valuelen(ea)); | 145 | memcpy(ret, ea_data(ea), ea_valuelen(ea)); |
@@ -165,7 +165,7 @@ char *hpfs_get_ea(struct super_block *s, struct fnode *fnode, char *key, int *si | |||
165 | if (ea_indirect(ea)) | 165 | if (ea_indirect(ea)) |
166 | return get_indirect_ea(s, ea_in_anode(ea), ea_sec(ea), *size = ea_len(ea)); | 166 | return get_indirect_ea(s, ea_in_anode(ea), ea_sec(ea), *size = ea_len(ea)); |
167 | if (!(ret = kmalloc((*size = ea_valuelen(ea)) + 1, GFP_NOFS))) { | 167 | if (!(ret = kmalloc((*size = ea_valuelen(ea)) + 1, GFP_NOFS))) { |
168 | pr_warn("out of memory for EA\n"); | 168 | pr_err("out of memory for EA\n"); |
169 | return NULL; | 169 | return NULL; |
170 | } | 170 | } |
171 | if (hpfs_ea_read(s, a, ano, pos + 4 + ea->namelen + 1, ea_valuelen(ea), ret)) { | 171 | if (hpfs_ea_read(s, a, ano, pos + 4 + ea->namelen + 1, ea_valuelen(ea), ret)) { |
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c index 89e5a0b75ea7..7ce4b74234a1 100644 --- a/fs/hpfs/inode.c +++ b/fs/hpfs/inode.c | |||
@@ -184,7 +184,7 @@ void hpfs_write_inode(struct inode *i) | |||
184 | if (i->i_ino == hpfs_sb(i->i_sb)->sb_root) return; | 184 | if (i->i_ino == hpfs_sb(i->i_sb)->sb_root) return; |
185 | if (hpfs_inode->i_rddir_off && !atomic_read(&i->i_count)) { | 185 | if (hpfs_inode->i_rddir_off && !atomic_read(&i->i_count)) { |
186 | if (*hpfs_inode->i_rddir_off) | 186 | if (*hpfs_inode->i_rddir_off) |
187 | pr_warn("write_inode: some position still there\n"); | 187 | pr_err("write_inode: some position still there\n"); |
188 | kfree(hpfs_inode->i_rddir_off); | 188 | kfree(hpfs_inode->i_rddir_off); |
189 | hpfs_inode->i_rddir_off = NULL; | 189 | hpfs_inode->i_rddir_off = NULL; |
190 | } | 190 | } |
diff --git a/fs/hpfs/map.c b/fs/hpfs/map.c index 6ac8f7a74efc..442770edcdc7 100644 --- a/fs/hpfs/map.c +++ b/fs/hpfs/map.c | |||
@@ -65,13 +65,13 @@ unsigned char *hpfs_load_code_page(struct super_block *s, secno cps) | |||
65 | struct code_page_directory *cp = hpfs_map_sector(s, cps, &bh, 0); | 65 | struct code_page_directory *cp = hpfs_map_sector(s, cps, &bh, 0); |
66 | if (!cp) return NULL; | 66 | if (!cp) return NULL; |
67 | if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { | 67 | if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { |
68 | pr_warn("Code page directory magic doesn't match (magic = %08x)\n", | 68 | pr_err("Code page directory magic doesn't match (magic = %08x)\n", |
69 | le32_to_cpu(cp->magic)); | 69 | le32_to_cpu(cp->magic)); |
70 | brelse(bh); | 70 | brelse(bh); |
71 | return NULL; | 71 | return NULL; |
72 | } | 72 | } |
73 | if (!le32_to_cpu(cp->n_code_pages)) { | 73 | if (!le32_to_cpu(cp->n_code_pages)) { |
74 | pr_warn("n_code_pages == 0\n"); | 74 | pr_err("n_code_pages == 0\n"); |
75 | brelse(bh); | 75 | brelse(bh); |
76 | return NULL; | 76 | return NULL; |
77 | } | 77 | } |
@@ -80,19 +80,19 @@ unsigned char *hpfs_load_code_page(struct super_block *s, secno cps) | |||
80 | brelse(bh); | 80 | brelse(bh); |
81 | 81 | ||
82 | if (cpi >= 3) { | 82 | if (cpi >= 3) { |
83 | pr_warn("Code page index out of array\n"); | 83 | pr_err("Code page index out of array\n"); |
84 | return NULL; | 84 | return NULL; |
85 | } | 85 | } |
86 | 86 | ||
87 | if (!(cpd = hpfs_map_sector(s, cpds, &bh, 0))) return NULL; | 87 | if (!(cpd = hpfs_map_sector(s, cpds, &bh, 0))) return NULL; |
88 | if (le16_to_cpu(cpd->offs[cpi]) > 0x178) { | 88 | if (le16_to_cpu(cpd->offs[cpi]) > 0x178) { |
89 | pr_warn("Code page index out of sector\n"); | 89 | pr_err("Code page index out of sector\n"); |
90 | brelse(bh); | 90 | brelse(bh); |
91 | return NULL; | 91 | return NULL; |
92 | } | 92 | } |
93 | ptr = (unsigned char *)cpd + le16_to_cpu(cpd->offs[cpi]) + 6; | 93 | ptr = (unsigned char *)cpd + le16_to_cpu(cpd->offs[cpi]) + 6; |
94 | if (!(cp_table = kmalloc(256, GFP_KERNEL))) { | 94 | if (!(cp_table = kmalloc(256, GFP_KERNEL))) { |
95 | pr_warn("out of memory for code page table\n"); | 95 | pr_err("out of memory for code page table\n"); |
96 | brelse(bh); | 96 | brelse(bh); |
97 | return NULL; | 97 | return NULL; |
98 | } | 98 | } |
@@ -115,7 +115,7 @@ __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) | |||
115 | int i; | 115 | int i; |
116 | __le32 *b; | 116 | __le32 *b; |
117 | if (!(b = kmalloc(n * 512, GFP_KERNEL))) { | 117 | if (!(b = kmalloc(n * 512, GFP_KERNEL))) { |
118 | pr_warn("can't allocate memory for bitmap directory\n"); | 118 | pr_err("can't allocate memory for bitmap directory\n"); |
119 | return NULL; | 119 | return NULL; |
120 | } | 120 | } |
121 | for (i=0;i<n;i++) { | 121 | for (i=0;i<n;i++) { |
@@ -283,7 +283,7 @@ struct dnode *hpfs_map_dnode(struct super_block *s, unsigned secno, | |||
283 | goto bail; | 283 | goto bail; |
284 | } | 284 | } |
285 | if (b == 3) | 285 | if (b == 3) |
286 | pr_warn("unbalanced dnode tree, dnode %08x; see hpfs.txt 4 more info\n", | 286 | pr_err("unbalanced dnode tree, dnode %08x; see hpfs.txt 4 more info\n", |
287 | secno); | 287 | secno); |
288 | } | 288 | } |
289 | return dnode; | 289 | return dnode; |
diff --git a/fs/hpfs/name.c b/fs/hpfs/name.c index 91f4cc172e38..b00d396d22c6 100644 --- a/fs/hpfs/name.c +++ b/fs/hpfs/name.c | |||
@@ -56,15 +56,15 @@ unsigned char *hpfs_translate_name(struct super_block *s, unsigned char *from, | |||
56 | unsigned char *to; | 56 | unsigned char *to; |
57 | int i; | 57 | int i; |
58 | if (hpfs_sb(s)->sb_chk >= 2) if (hpfs_is_name_long(from, len) != lng) { | 58 | if (hpfs_sb(s)->sb_chk >= 2) if (hpfs_is_name_long(from, len) != lng) { |
59 | pr_warn("Long name flag mismatch - name "); | 59 | pr_err("Long name flag mismatch - name "); |
60 | for (i = 0; i < len; i++) | 60 | for (i = 0; i < len; i++) |
61 | pr_cont("%c", from[i]); | 61 | pr_cont("%c", from[i]); |
62 | pr_cont(" misidentified as %s.\n", lng ? "short" : "long"); | 62 | pr_cont(" misidentified as %s.\n", lng ? "short" : "long"); |
63 | pr_warn("It's nothing serious. It could happen because of bug in OS/2.\nSet checks=normal to disable this message.\n"); | 63 | pr_err("It's nothing serious. It could happen because of bug in OS/2.\nSet checks=normal to disable this message.\n"); |
64 | } | 64 | } |
65 | if (!lc) return from; | 65 | if (!lc) return from; |
66 | if (!(to = kmalloc(len, GFP_KERNEL))) { | 66 | if (!(to = kmalloc(len, GFP_KERNEL))) { |
67 | pr_warn("can't allocate memory for name conversion buffer\n"); | 67 | pr_err("can't allocate memory for name conversion buffer\n"); |
68 | return from; | 68 | return from; |
69 | } | 69 | } |
70 | for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); | 70 | for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); |
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index 92fd3cebeba4..7cd00d3a7c9b 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -438,7 +438,7 @@ static int hpfs_remount_fs(struct super_block *s, int *flags, char *data) | |||
438 | 438 | ||
439 | if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, | 439 | if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, |
440 | &eas, &chk, &errs, &chkdsk, ×hift))) { | 440 | &eas, &chk, &errs, &chkdsk, ×hift))) { |
441 | pr_warn("bad mount options.\n"); | 441 | pr_err("bad mount options.\n"); |
442 | goto out_err; | 442 | goto out_err; |
443 | } | 443 | } |
444 | if (o == 2) { | 444 | if (o == 2) { |
@@ -446,7 +446,7 @@ static int hpfs_remount_fs(struct super_block *s, int *flags, char *data) | |||
446 | goto out_err; | 446 | goto out_err; |
447 | } | 447 | } |
448 | if (timeshift != sbi->sb_timeshift) { | 448 | if (timeshift != sbi->sb_timeshift) { |
449 | pr_warn("timeshift can't be changed using remount.\n"); | 449 | pr_err("timeshift can't be changed using remount.\n"); |
450 | goto out_err; | 450 | goto out_err; |
451 | } | 451 | } |
452 | 452 | ||
@@ -527,7 +527,7 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
527 | 527 | ||
528 | if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, | 528 | if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, |
529 | &eas, &chk, &errs, &chkdsk, ×hift))) { | 529 | &eas, &chk, &errs, &chkdsk, ×hift))) { |
530 | pr_warn("bad mount options.\n"); | 530 | pr_err("bad mount options.\n"); |
531 | goto bail0; | 531 | goto bail0; |
532 | } | 532 | } |
533 | if (o==2) { | 533 | if (o==2) { |
@@ -547,16 +547,16 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
547 | ||*/ le32_to_cpu(superblock->magic) != SB_MAGIC | 547 | ||*/ le32_to_cpu(superblock->magic) != SB_MAGIC |
548 | || le32_to_cpu(spareblock->magic) != SP_MAGIC) { | 548 | || le32_to_cpu(spareblock->magic) != SP_MAGIC) { |
549 | if (!silent) | 549 | if (!silent) |
550 | pr_warn("Bad magic ... probably not HPFS\n"); | 550 | pr_err("Bad magic ... probably not HPFS\n"); |
551 | goto bail4; | 551 | goto bail4; |
552 | } | 552 | } |
553 | 553 | ||
554 | /* Check version */ | 554 | /* Check version */ |
555 | if (!(s->s_flags & MS_RDONLY) && | 555 | if (!(s->s_flags & MS_RDONLY) && |
556 | superblock->funcversion != 2 && superblock->funcversion != 3) { | 556 | superblock->funcversion != 2 && superblock->funcversion != 3) { |
557 | pr_warn("Bad version %d,%d. Mount readonly to go around\n", | 557 | pr_err("Bad version %d,%d. Mount readonly to go around\n", |
558 | (int)superblock->version, (int)superblock->funcversion); | 558 | (int)superblock->version, (int)superblock->funcversion); |
559 | pr_warn("please try recent version of HPFS driver at http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/hpfs/index-e.cgi and if it still can't understand this format, contact author - mikulas@artax.karlin.mff.cuni.cz\n"); | 559 | pr_err("please try recent version of HPFS driver at http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/hpfs/index-e.cgi and if it still can't understand this format, contact author - mikulas@artax.karlin.mff.cuni.cz\n"); |
560 | goto bail4; | 560 | goto bail4; |
561 | } | 561 | } |
562 | 562 | ||
@@ -602,7 +602,7 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
602 | /* Check for general fs errors*/ | 602 | /* Check for general fs errors*/ |
603 | if (spareblock->dirty && !spareblock->old_wrote) { | 603 | if (spareblock->dirty && !spareblock->old_wrote) { |
604 | if (errs == 2) { | 604 | if (errs == 2) { |
605 | pr_warn("Improperly stopped, not mounted\n"); | 605 | pr_err("Improperly stopped, not mounted\n"); |
606 | goto bail4; | 606 | goto bail4; |
607 | } | 607 | } |
608 | hpfs_error(s, "improperly stopped"); | 608 | hpfs_error(s, "improperly stopped"); |
@@ -616,25 +616,25 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
616 | 616 | ||
617 | if (spareblock->hotfixes_used || spareblock->n_spares_used) { | 617 | if (spareblock->hotfixes_used || spareblock->n_spares_used) { |
618 | if (errs >= 2) { | 618 | if (errs >= 2) { |
619 | pr_warn("Hotfixes not supported here, try chkdsk\n"); | 619 | pr_err("Hotfixes not supported here, try chkdsk\n"); |
620 | mark_dirty(s, 0); | 620 | mark_dirty(s, 0); |
621 | goto bail4; | 621 | goto bail4; |
622 | } | 622 | } |
623 | hpfs_error(s, "hotfixes not supported here, try chkdsk"); | 623 | hpfs_error(s, "hotfixes not supported here, try chkdsk"); |
624 | if (errs == 0) | 624 | if (errs == 0) |
625 | pr_warn("Proceeding, but your filesystem will be probably corrupted by this driver...\n"); | 625 | pr_err("Proceeding, but your filesystem will be probably corrupted by this driver...\n"); |
626 | else | 626 | else |
627 | pr_warn("This driver may read bad files or crash when operating on disk with hotfixes.\n"); | 627 | pr_err("This driver may read bad files or crash when operating on disk with hotfixes.\n"); |
628 | } | 628 | } |
629 | if (le32_to_cpu(spareblock->n_dnode_spares) != le32_to_cpu(spareblock->n_dnode_spares_free)) { | 629 | if (le32_to_cpu(spareblock->n_dnode_spares) != le32_to_cpu(spareblock->n_dnode_spares_free)) { |
630 | if (errs >= 2) { | 630 | if (errs >= 2) { |
631 | pr_warn("Spare dnodes used, try chkdsk\n"); | 631 | pr_err("Spare dnodes used, try chkdsk\n"); |
632 | mark_dirty(s, 0); | 632 | mark_dirty(s, 0); |
633 | goto bail4; | 633 | goto bail4; |
634 | } | 634 | } |
635 | hpfs_error(s, "warning: spare dnodes used, try chkdsk"); | 635 | hpfs_error(s, "warning: spare dnodes used, try chkdsk"); |
636 | if (errs == 0) | 636 | if (errs == 0) |
637 | pr_warn("Proceeding, but your filesystem could be corrupted if you delete files or directories\n"); | 637 | pr_err("Proceeding, but your filesystem could be corrupted if you delete files or directories\n"); |
638 | } | 638 | } |
639 | if (chk) { | 639 | if (chk) { |
640 | unsigned a; | 640 | unsigned a; |
@@ -654,12 +654,12 @@ static int hpfs_fill_super(struct super_block *s, void *options, int silent) | |||
654 | } | 654 | } |
655 | sbi->sb_dirband_size = a; | 655 | sbi->sb_dirband_size = a; |
656 | } else | 656 | } else |
657 | pr_warn("You really don't want any checks? You are crazy...\n"); | 657 | pr_err("You really don't want any checks? You are crazy...\n"); |
658 | 658 | ||
659 | /* Load code page table */ | 659 | /* Load code page table */ |
660 | if (le32_to_cpu(spareblock->n_code_pages)) | 660 | if (le32_to_cpu(spareblock->n_code_pages)) |
661 | if (!(sbi->sb_cp_table = hpfs_load_code_page(s, le32_to_cpu(spareblock->code_page_dir)))) | 661 | if (!(sbi->sb_cp_table = hpfs_load_code_page(s, le32_to_cpu(spareblock->code_page_dir)))) |
662 | pr_warn("code page support is disabled\n"); | 662 | pr_err("code page support is disabled\n"); |
663 | 663 | ||
664 | brelse(bh2); | 664 | brelse(bh2); |
665 | brelse(bh1); | 665 | brelse(bh1); |