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 */
4747uint16_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
166166int 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 ;
390390reinsert :
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
0 commit comments