• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jffs2/

Lines Matching refs:this

11  * For licensing information, see the file 'LICENCE' in this directory.
19 /* Available compressors are on this list */
30 * Return 1 to use this compression
32 static int jffs2_is_best_compression(struct jffs2_compressor *this,
41 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > size))
45 if ((this->compr == JFFS2_COMPR_LZO) && (bestsize > (size * FAVOUR_LZO_PERCENT / 100)))
80 struct jffs2_compressor *this, *best=NULL;
97 list_for_each_entry(this, &jffs2_compressor_list, list) {
99 if ((!this->compress)||(this->disabled))
102 this->usecount++;
106 compr_ret = this->compress(data_in, output_buf, datalen, cdatalen, NULL);
108 this->usecount--;
110 ret = this->compr;
111 this->stat_compr_blocks++;
112 this->stat_compr_orig_size += *datalen;
113 this->stat_compr_new_size += *cdatalen;
126 list_for_each_entry(this, &jffs2_compressor_list, list) {
128 if ((!this->compress)||(this->disabled))
131 if ((this->compr_buf_size < orig_slen) && (this->compr_buf)) {
133 kfree(this->compr_buf);
135 this->compr_buf_size=0;
136 this->compr_buf=NULL;
138 if (!this->compr_buf) {
147 this->compr_buf = tmp_buf;
148 this->compr_buf_size = orig_slen;
151 this->usecount++;
155 compr_ret = this->compress(data_in, this->compr_buf, datalen, cdatalen, NULL);
157 this->usecount--;
159 if (((!best_dlen) || jffs2_is_best_compression(this, best, *cdatalen, best_dlen))
163 best = this;
200 struct jffs2_compressor *this;
219 list_for_each_entry(this, &jffs2_compressor_list, list) {
220 if (comprtype == this->compr) {
221 this->usecount++;
223 ret = this->decompress(cdata_in, data_out, cdatalen, datalen, NULL);
226 printk(KERN_WARNING "Decompressor \"%s\" returned %d\n", this->name, ret);
229 this->stat_decompr_blocks++;
231 this->usecount--;
245 struct jffs2_compressor *this;
262 list_for_each_entry(this, &jffs2_compressor_list, list) {
263 if (this->priority < comp->priority) {
264 list_add(&comp->list, this->list.prev);
270 D2(list_for_each_entry(this, &jffs2_compressor_list, list) {
271 printk(KERN_DEBUG "Compressor \"%s\", prio %d\n", this->name, this->priority);
281 D2(struct jffs2_compressor *this;)
294 D2(list_for_each_entry(this, &jffs2_compressor_list, list) {
295 printk(KERN_DEBUG "Compressor \"%s\", prio %d\n", this->name, this->priority);