Lines Matching refs:this

11  * For licensing information, see the file 'LICENCE' in this directory.
21 /* Available compressors are on this list */
32 * Return 1 to use this compression
34 static int jffs2_is_best_compression(struct jffs2_compressor *this,
43 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > size))
47 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > (size * FAVOUR_LZO_PERCENT / 100)))
77 struct jffs2_compressor *this;
90 list_for_each_entry(this, &jffs2_compressor_list, list) {
92 if (!this->compress || this->disabled)
96 if (compr && (compr != this->compr))
103 this->usecount++;
108 err = this->compress(data_in, output_buf, datalen, cdatalen);
111 this->usecount--;
114 ret = this->compr;
115 this->stat_compr_blocks++;
116 this->stat_compr_orig_size += *datalen;
117 this->stat_compr_new_size += *cdatalen;
154 struct jffs2_compressor *this, *best=NULL;
176 list_for_each_entry(this, &jffs2_compressor_list, list) {
178 if ((!this->compress)||(this->disabled))
181 if ((this->compr_buf_size < orig_slen) && (this->compr_buf)) {
183 kfree(this->compr_buf);
185 this->compr_buf_size=0;
186 this->compr_buf=NULL;
188 if (!this->compr_buf) {
198 this->compr_buf = tmp_buf;
199 this->compr_buf_size = orig_slen;
202 this->usecount++;
206 compr_ret = this->compress(data_in, this->compr_buf, datalen, cdatalen);
208 this->usecount--;
210 if (((!best_dlen) || jffs2_is_best_compression(this, best, *cdatalen, best_dlen))
214 best = this;
257 struct jffs2_compressor *this;
276 list_for_each_entry(this, &jffs2_compressor_list, list) {
277 if (comprtype == this->compr) {
278 this->usecount++;
280 ret = this->decompress(cdata_in, data_out, cdatalen, datalen);
284 this->name, ret);
287 this->stat_decompr_blocks++;
289 this->usecount--;
303 struct jffs2_compressor *this;
320 list_for_each_entry(this, &jffs2_compressor_list, list) {
321 if (this->priority < comp->priority) {
322 list_add(&comp->list, this->list.prev);
328 D2(list_for_each_entry(this, &jffs2_compressor_list, list) {
329 printk(KERN_DEBUG "Compressor \"%s\", prio %d\n", this->name, this->priority);
339 D2(struct jffs2_compressor *this);
352 D2(list_for_each_entry(this, &jffs2_compressor_list, list) {
353 printk(KERN_DEBUG "Compressor \"%s\", prio %d\n", this->name, this->priority);