Searched refs:compr_type (Results 1 – 10 of 10) sorted by relevance
/linux-3.4.99/fs/ubifs/ |
D | compress.c | 35 .compr_type = UBIFS_COMPR_NONE, 44 .compr_type = UBIFS_COMPR_LZO, 51 .compr_type = UBIFS_COMPR_LZO, 61 .compr_type = UBIFS_COMPR_ZLIB, 69 .compr_type = UBIFS_COMPR_ZLIB, 96 int *compr_type) in ubifs_compress() argument 99 struct ubifs_compressor *compr = ubifs_compressors[*compr_type]; in ubifs_compress() 101 if (*compr_type == UBIFS_COMPR_NONE) in ubifs_compress() 133 *compr_type = UBIFS_COMPR_NONE; in ubifs_compress() 149 int *out_len, int compr_type) in ubifs_decompress() argument [all …]
|
D | misc.h | 112 static inline int ubifs_compr_present(int compr_type) in ubifs_compr_present() argument 114 ubifs_assert(compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_present() 115 return !!ubifs_compressors[compr_type]->capi_name; in ubifs_compr_present() 124 static inline const char *ubifs_compr_name(int compr_type) in ubifs_compr_name() argument 126 ubifs_assert(compr_type >= 0 && compr_type < UBIFS_COMPR_TYPES_CNT); in ubifs_compr_name() 127 return ubifs_compressors[compr_type]->name; in ubifs_compr_name()
|
D | journal.c | 478 ino->compr_type = cpu_to_le16(ui->compr_type); in pack_inode() 696 int err, lnum, offs, compr_type, out_len; in ubifs_jnl_write_data() local 725 compr_type = UBIFS_COMPR_NONE; in ubifs_jnl_write_data() 727 compr_type = ui->compr_type; in ubifs_jnl_write_data() 730 ubifs_compress(buf, len, &data->data, &out_len, &compr_type); in ubifs_jnl_write_data() 734 data->compr_type = cpu_to_le16(compr_type); in ubifs_jnl_write_data() 1104 int err, len, compr_type, out_len; in recomp_data_node() local 1112 compr_type = le16_to_cpu(dn->compr_type); in recomp_data_node() 1113 err = ubifs_decompress(&dn->data, len, buf, &out_len, compr_type); in recomp_data_node() 1117 ubifs_compress(buf, *new_len, &dn->data, &out_len, &compr_type); in recomp_data_node() [all …]
|
D | super.c | 77 if (ui->compr_type < 0 || ui->compr_type >= UBIFS_COMPR_TYPES_CNT) { in validate_inode() 78 ubifs_err("unknown compression type %d", ui->compr_type); in validate_inode() 91 if (!ubifs_compr_present(ui->compr_type)) { in validate_inode() 94 ubifs_compr_name(ui->compr_type)); in validate_inode() 146 ui->compr_type = le16_to_cpu(ino->compr_type); in ubifs_iget() 443 ubifs_compr_name(c->mount_opts.compr_type)); in ubifs_show_options() 1045 c->mount_opts.compr_type = UBIFS_COMPR_NONE; in ubifs_parse_options() 1047 c->mount_opts.compr_type = UBIFS_COMPR_LZO; in ubifs_parse_options() 1049 c->mount_opts.compr_type = UBIFS_COMPR_ZLIB; in ubifs_parse_options() 1057 c->default_compr = c->mount_opts.compr_type; in ubifs_parse_options()
|
D | ubifs-media.h | 511 __le16 compr_type; member 557 __le16 compr_type; member
|
D | ubifs.h | 404 unsigned int compr_type:2; member 829 int compr_type; member 938 unsigned int compr_type:2; member 1780 int *compr_type); 1782 int compr_type);
|
D | dir.c | 141 ui->compr_type = c->default_compr; in ubifs_new_inode() 143 ui->compr_type = UBIFS_COMPR_NONE; in ubifs_new_inode()
|
D | file.c | 83 le16_to_cpu(dn->compr_type)); in read_block() 652 le16_to_cpu(dn->compr_type)); in populate_page()
|
D | sb.c | 186 sup->default_compr = cpu_to_le16(c->mount_opts.compr_type); in create_default_filesystem()
|
D | debug.c | 271 printk(KERN_ERR "\tcompr_type %d\n", ui->compr_type); in dbg_dump_inode() 496 (int)le16_to_cpu(ino->compr_type)); in dbg_dump_node() 538 (int)le16_to_cpu(dn->compr_type)); in dbg_dump_node()
|