Skip to content

Commit 182ec4e

Browse files
KAGA-KOKOThomas Gleixner
authored andcommitted
[JFFS2] Clean up trailing white spaces
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 97894cd commit 182ec4e

36 files changed

Lines changed: 604 additions & 605 deletions

‎fs/Kconfig‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,10 +1084,10 @@ config JFFS2_ZLIB
10841084
default y
10851085
help
10861086
Zlib is designed to be a free, general-purpose, legally unencumbered,
1087-
lossless data-compression library for use on virtually any computer
1087+
lossless data-compression library for use on virtually any computer
10881088
hardware and operating system. See <http://www.gzip.org/zlib/> for
10891089
further information.
1090-
1090+
10911091
Say 'Y' if unsure.
10921092

10931093
config JFFS2_RTIME
@@ -1109,7 +1109,7 @@ choice
11091109
default JFFS2_CMODE_PRIORITY
11101110
depends on JFFS2_FS
11111111
help
1112-
You can set here the default compression mode of JFFS2 from
1112+
You can set here the default compression mode of JFFS2 from
11131113
the available compression modes. Don't touch if unsure.
11141114

11151115
config JFFS2_CMODE_NONE
@@ -1120,13 +1120,13 @@ config JFFS2_CMODE_NONE
11201120
config JFFS2_CMODE_PRIORITY
11211121
bool "priority"
11221122
help
1123-
Tries the compressors in a predefinied order and chooses the first
1123+
Tries the compressors in a predefinied order and chooses the first
11241124
successful one.
11251125

11261126
config JFFS2_CMODE_SIZE
11271127
bool "size (EXPERIMENTAL)"
11281128
help
1129-
Tries all compressors and chooses the one which has the smallest
1129+
Tries all compressors and chooses the one which has the smallest
11301130
result.
11311131

11321132
endchoice

‎fs/jffs2/background.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c)
5151
D1(printk(KERN_DEBUG "JFFS2: Garbage collect thread is pid %d\n", pid));
5252
wait_for_completion(&c->gc_thread_start);
5353
}
54-
54+
5555
return ret;
5656
}
5757

@@ -101,7 +101,7 @@ static int jffs2_garbage_collect_thread(void *_c)
101101

102102
cond_resched();
103103

104-
/* Put_super will send a SIGKILL and then wait on the sem.
104+
/* Put_super will send a SIGKILL and then wait on the sem.
105105
*/
106106
while (signal_pending(current)) {
107107
siginfo_t info;

‎fs/jffs2/build.c‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* For licensing information, see the file 'LICENCE' in this directory.
99
*
10-
* $Id: build.c,v 1.84 2005/09/27 13:40:49 dedekind Exp $
10+
* $Id: build.c,v 1.85 2005/11/07 11:14:38 gleixner Exp $
1111
*
1212
*/
1313

@@ -129,10 +129,10 @@ static int jffs2_build_filesystem(struct jffs2_sb_info *c)
129129
for_each_inode(i, c, ic) {
130130
if (ic->nlink)
131131
continue;
132-
132+
133133
jffs2_build_remove_unlinked_inode(c, ic, &dead_fds);
134134
cond_resched();
135-
}
135+
}
136136

137137
dbg_fsbuild("pass 2a starting\n");
138138

@@ -149,7 +149,7 @@ static int jffs2_build_filesystem(struct jffs2_sb_info *c)
149149

150150
dbg_fsbuild("pass 2a complete\n");
151151
dbg_fsbuild("freeing temporary data structures\n");
152-
152+
153153
/* Finally, we can scan again and free the dirent structs */
154154
for_each_inode(i, c, ic) {
155155
while(ic->scan_dents) {
@@ -161,7 +161,7 @@ static int jffs2_build_filesystem(struct jffs2_sb_info *c)
161161
cond_resched();
162162
}
163163
c->flags &= ~JFFS2_SB_FLAG_BUILDING;
164-
164+
165165
dbg_fsbuild("FS build complete\n");
166166

167167
/* Rotate the lists by some number to ensure wear levelling */
@@ -191,7 +191,7 @@ static void jffs2_build_remove_unlinked_inode(struct jffs2_sb_info *c,
191191
struct jffs2_full_dirent *fd;
192192

193193
dbg_fsbuild("removing ino #%u with nlink == zero.\n", ic->ino);
194-
194+
195195
raw = ic->nodes;
196196
while (raw != (void *)ic) {
197197
struct jffs2_raw_node_ref *next = raw->next_in_ino;
@@ -220,7 +220,7 @@ static void jffs2_build_remove_unlinked_inode(struct jffs2_sb_info *c,
220220
whinged = 1;
221221

222222
dbg_fsbuild("removing child \"%s\", ino #%u\n", fd->name, fd->ino);
223-
223+
224224
child_ic = jffs2_get_ino_cache(c, fd->ino);
225225
if (!child_ic) {
226226
dbg_fsbuild("cannot remove child \"%s\", ino #%u, because it doesn't exist\n",
@@ -229,11 +229,11 @@ static void jffs2_build_remove_unlinked_inode(struct jffs2_sb_info *c,
229229
continue;
230230
}
231231

232-
/* Reduce nlink of the child. If it's now zero, stick it on the
232+
/* Reduce nlink of the child. If it's now zero, stick it on the
233233
dead_fds list to be cleaned up later. Else just free the fd */
234234

235235
child_ic->nlink--;
236-
236+
237237
if (!child_ic->nlink) {
238238
dbg_fsbuild("inode #%u (\"%s\") has now got zero nlink, adding to dead_fds list.\n",
239239
fd->ino, fd->name);
@@ -248,7 +248,7 @@ static void jffs2_build_remove_unlinked_inode(struct jffs2_sb_info *c,
248248
}
249249

250250
/*
251-
We don't delete the inocache from the hash list and free it yet.
251+
We don't delete the inocache from the hash list and free it yet.
252252
The erase code will do that, when all the nodes are completely gone.
253253
*/
254254
}
@@ -262,7 +262,7 @@ static void jffs2_calc_trigger_levels(struct jffs2_sb_info *c)
262262
because there's not enough free space... */
263263
c->resv_blocks_deletion = 2;
264264

265-
/* Be conservative about how much space we need before we allow writes.
265+
/* Be conservative about how much space we need before we allow writes.
266266
On top of that which is required for deletia, require an extra 2%
267267
of the medium to be available, for overhead caused by nodes being
268268
split across blocks, etc. */
@@ -277,7 +277,7 @@ static void jffs2_calc_trigger_levels(struct jffs2_sb_info *c)
277277

278278
c->resv_blocks_gctrigger = c->resv_blocks_write + 1;
279279

280-
/* When do we allow garbage collection to merge nodes to make
280+
/* When do we allow garbage collection to merge nodes to make
281281
long-term progress at the expense of short-term space exhaustion? */
282282
c->resv_blocks_gcmerge = c->resv_blocks_deletion + 1;
283283

@@ -303,7 +303,7 @@ static void jffs2_calc_trigger_levels(struct jffs2_sb_info *c)
303303
c->resv_blocks_gcbad, c->resv_blocks_gcbad*c->sector_size/1024);
304304
dbg_fsbuild("Amount of dirty space required to GC: %d bytes\n",
305305
c->nospc_dirty_size);
306-
}
306+
}
307307

308308
int jffs2_do_mount_fs(struct jffs2_sb_info *c)
309309
{
@@ -355,7 +355,7 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c)
355355
#ifndef __ECOS
356356
if (jffs2_blocks_use_vmalloc(c))
357357
vfree(c->blocks);
358-
else
358+
else
359359
#endif
360360
kfree(c->blocks);
361361

‎fs/jffs2/compr.c‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* For licensing information, see the file 'LICENCE' in this directory.
1111
*
12-
* $Id: compr.c,v 1.45 2005/07/26 13:24:40 havasi Exp $
12+
* $Id: compr.c,v 1.46 2005/11/07 11:14:38 gleixner Exp $
1313
*
1414
*/
1515

@@ -36,16 +36,16 @@ static uint32_t none_stat_compr_blocks=0,none_stat_decompr_blocks=0,none_stat_co
3636
* data.
3737
*
3838
* Returns: Lower byte to be stored with data indicating compression type used.
39-
* Zero is used to show that the data could not be compressed - the
39+
* Zero is used to show that the data could not be compressed - the
4040
* compressed version was actually larger than the original.
4141
* Upper byte will be used later. (soon)
4242
*
4343
* If the cdata buffer isn't large enough to hold all the uncompressed data,
44-
* jffs2_compress should compress as much as will fit, and should set
44+
* jffs2_compress should compress as much as will fit, and should set
4545
* *datalen accordingly to show the amount of data which were compressed.
4646
*/
4747
uint16_t jffs2_compress(struct jffs2_sb_info *c, struct jffs2_inode_info *f,
48-
unsigned char *data_in, unsigned char **cpage_out,
48+
unsigned char *data_in, unsigned char **cpage_out,
4949
uint32_t *datalen, uint32_t *cdatalen)
5050
{
5151
int ret = JFFS2_COMPR_NONE;
@@ -164,7 +164,7 @@ uint16_t jffs2_compress(struct jffs2_sb_info *c, struct jffs2_inode_info *f,
164164
}
165165

166166
int jffs2_decompress(struct jffs2_sb_info *c, struct jffs2_inode_info *f,
167-
uint16_t comprtype, unsigned char *cdata_in,
167+
uint16_t comprtype, unsigned char *cdata_in,
168168
unsigned char *data_out, uint32_t cdatalen, uint32_t datalen)
169169
{
170170
struct jffs2_compressor *this;
@@ -298,7 +298,7 @@ char *jffs2_stats(void)
298298

299299
act_buf += sprintf(act_buf,"JFFS2 compressor statistics:\n");
300300
act_buf += sprintf(act_buf,"%10s ","none");
301-
act_buf += sprintf(act_buf,"compr: %d blocks (%d) decompr: %d blocks\n", none_stat_compr_blocks,
301+
act_buf += sprintf(act_buf,"compr: %d blocks (%d) decompr: %d blocks\n", none_stat_compr_blocks,
302302
none_stat_compr_size, none_stat_decompr_blocks);
303303
spin_lock(&jffs2_compressor_list_lock);
304304
list_for_each_entry(this, &jffs2_compressor_list, list) {
@@ -307,8 +307,8 @@ char *jffs2_stats(void)
307307
act_buf += sprintf(act_buf,"- ");
308308
else
309309
act_buf += sprintf(act_buf,"+ ");
310-
act_buf += sprintf(act_buf,"compr: %d blocks (%d/%d) decompr: %d blocks ", this->stat_compr_blocks,
311-
this->stat_compr_new_size, this->stat_compr_orig_size,
310+
act_buf += sprintf(act_buf,"compr: %d blocks (%d/%d) decompr: %d blocks ", this->stat_compr_blocks,
311+
this->stat_compr_new_size, this->stat_compr_orig_size,
312312
this->stat_decompr_blocks);
313313
act_buf += sprintf(act_buf,"\n");
314314
}
@@ -317,7 +317,7 @@ char *jffs2_stats(void)
317317
return buf;
318318
}
319319

320-
char *jffs2_get_compression_mode_name(void)
320+
char *jffs2_get_compression_mode_name(void)
321321
{
322322
switch (jffs2_compression_mode) {
323323
case JFFS2_COMPR_MODE_NONE:
@@ -330,7 +330,7 @@ char *jffs2_get_compression_mode_name(void)
330330
return "unkown";
331331
}
332332

333-
int jffs2_set_compression_mode_name(const char *name)
333+
int jffs2_set_compression_mode_name(const char *name)
334334
{
335335
if (!strcmp("none",name)) {
336336
jffs2_compression_mode = JFFS2_COMPR_MODE_NONE;
@@ -355,7 +355,7 @@ static int jffs2_compressor_Xable(const char *name, int disabled)
355355
if (!strcmp(this->name, name)) {
356356
this->disabled = disabled;
357357
spin_unlock(&jffs2_compressor_list_lock);
358-
return 0;
358+
return 0;
359359
}
360360
}
361361
spin_unlock(&jffs2_compressor_list_lock);
@@ -385,7 +385,7 @@ int jffs2_set_compressor_priority(const char *name, int priority)
385385
}
386386
}
387387
spin_unlock(&jffs2_compressor_list_lock);
388-
printk(KERN_WARNING "JFFS2: compressor %s not found.\n",name);
388+
printk(KERN_WARNING "JFFS2: compressor %s not found.\n",name);
389389
return 1;
390390
reinsert:
391391
/* list is sorted in the order of priority, so if
@@ -412,7 +412,7 @@ void jffs2_free_comprbuf(unsigned char *comprbuf, unsigned char *orig)
412412
kfree(comprbuf);
413413
}
414414

415-
int jffs2_compressors_init(void)
415+
int jffs2_compressors_init(void)
416416
{
417417
/* Registering compressors */
418418
#ifdef CONFIG_JFFS2_ZLIB
@@ -440,7 +440,7 @@ int jffs2_compressors_init(void)
440440
return 0;
441441
}
442442

443-
int jffs2_compressors_exit(void)
443+
int jffs2_compressors_exit(void)
444444
{
445445
/* Unregistering compressors */
446446
#ifdef CONFIG_JFFS2_RUBIN

‎fs/jffs2/compr.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* Copyright (C) 2004 Ferenc Havasi <havasi@inf.u-szeged.hu>,
55
* University of Szeged, Hungary
66
*
7-
* For licensing information, see the file 'LICENCE' in the
7+
* For licensing information, see the file 'LICENCE' in the
88
* jffs2 directory.
99
*
10-
* $Id: compr.h,v 1.8 2005/07/26 13:24:40 havasi Exp $
10+
* $Id: compr.h,v 1.9 2005/11/07 11:14:38 gleixner Exp $
1111
*
1212
*/
1313

‎fs/jffs2/compr_rtime.c‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
#include <linux/kernel.h>
2525
#include <linux/types.h>
2626
#include <linux/errno.h>
27-
#include <linux/string.h>
28-
#include <linux/jffs2.h>
27+
#include <linux/string.h>
28+
#include <linux/jffs2.h>
2929
#include "compr.h"
3030

3131
/* _compress returns the compressed size, -1 if bigger */
@@ -38,19 +38,19 @@ static int jffs2_rtime_compress(unsigned char *data_in,
3838
int outpos = 0;
3939
int pos=0;
4040

41-
memset(positions,0,sizeof(positions));
42-
41+
memset(positions,0,sizeof(positions));
42+
4343
while (pos < (*sourcelen) && outpos <= (*dstlen)-2) {
4444
int backpos, runlen=0;
4545
unsigned char value;
46-
46+
4747
value = data_in[pos];
4848

4949
cpage_out[outpos++] = data_in[pos++];
50-
50+
5151
backpos = positions[value];
5252
positions[value]=pos;
53-
53+
5454
while ((backpos < pos) && (pos < (*sourcelen)) &&
5555
(data_in[pos]==data_in[backpos++]) && (runlen<255)) {
5656
pos++;
@@ -63,12 +63,12 @@ static int jffs2_rtime_compress(unsigned char *data_in,
6363
/* We failed */
6464
return -1;
6565
}
66-
66+
6767
/* Tell the caller how much we managed to compress, and how much space it took */
6868
*sourcelen = pos;
6969
*dstlen = outpos;
7070
return 0;
71-
}
71+
}
7272

7373

7474
static int jffs2_rtime_decompress(unsigned char *data_in,
@@ -79,19 +79,19 @@ static int jffs2_rtime_decompress(unsigned char *data_in,
7979
short positions[256];
8080
int outpos = 0;
8181
int pos=0;
82-
83-
memset(positions,0,sizeof(positions));
84-
82+
83+
memset(positions,0,sizeof(positions));
84+
8585
while (outpos<destlen) {
8686
unsigned char value;
8787
int backoffs;
8888
int repeat;
89-
89+
9090
value = data_in[pos++];
9191
cpage_out[outpos++] = value; /* first the verbatim copied byte */
9292
repeat = data_in[pos++];
9393
backoffs = positions[value];
94-
94+
9595
positions[value]=outpos;
9696
if (repeat) {
9797
if (backoffs + repeat >= outpos) {
@@ -101,12 +101,12 @@ static int jffs2_rtime_decompress(unsigned char *data_in,
101101
}
102102
} else {
103103
memcpy(&cpage_out[outpos],&cpage_out[backoffs],repeat);
104-
outpos+=repeat;
104+
outpos+=repeat;
105105
}
106106
}
107107
}
108108
return 0;
109-
}
109+
}
110110

111111
static struct jffs2_compressor jffs2_rtime_comp = {
112112
.priority = JFFS2_RTIME_PRIORITY,

0 commit comments

Comments
 (0)