Searched refs:compr_type (Results 1 – 10 of 10) sorted by relevance
/linux-4.4.14/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 in_len, void *out_buf, int *out_len, 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() 132 *compr_type = UBIFS_COMPR_NONE; in ubifs_compress() 148 int in_len, void *out_buf, 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() 700 int err, lnum, offs, compr_type, out_len; in ubifs_jnl_write_data() local 729 compr_type = UBIFS_COMPR_NONE; in ubifs_jnl_write_data() 731 compr_type = ui->compr_type; in ubifs_jnl_write_data() 734 ubifs_compress(c, buf, len, &data->data, &out_len, &compr_type); in ubifs_jnl_write_data() 738 data->compr_type = cpu_to_le16(compr_type); in ubifs_jnl_write_data() 1107 int err, len, compr_type, out_len; in recomp_data_node() local 1115 compr_type = le16_to_cpu(dn->compr_type); in recomp_data_node() 1116 err = ubifs_decompress(c, &dn->data, len, buf, &out_len, compr_type); in recomp_data_node() 1120 ubifs_compress(c, buf, *new_len, &dn->data, &out_len, &compr_type); in recomp_data_node() [all …]
|
D | ubifs-media.h | 511 __le16 compr_type; member 557 __le16 compr_type; member
|
D | super.c | 78 if (ui->compr_type >= UBIFS_COMPR_TYPES_CNT) { in validate_inode() 79 ubifs_err(c, "unknown compression type %d", ui->compr_type); in validate_inode() 92 if (!ubifs_compr_present(ui->compr_type)) { in validate_inode() 94 inode->i_ino, ubifs_compr_name(ui->compr_type)); in validate_inode() 149 ui->compr_type = le16_to_cpu(ino->compr_type); in ubifs_iget() 444 ubifs_compr_name(c->mount_opts.compr_type)); in ubifs_show_options() 1028 c->mount_opts.compr_type = UBIFS_COMPR_NONE; in ubifs_parse_options() 1030 c->mount_opts.compr_type = UBIFS_COMPR_LZO; in ubifs_parse_options() 1032 c->mount_opts.compr_type = UBIFS_COMPR_ZLIB; in ubifs_parse_options() 1040 c->default_compr = c->mount_opts.compr_type; in ubifs_parse_options()
|
D | ubifs.h | 415 unsigned int compr_type:2; member 840 int compr_type; member 951 unsigned int compr_type:2; member 1797 void *out_buf, int *out_len, int *compr_type); 1799 void *out, int *out_len, int compr_type);
|
D | dir.c | 139 ui->compr_type = c->default_compr; in ubifs_new_inode() 141 ui->compr_type = UBIFS_COMPR_NONE; in ubifs_new_inode()
|
D | file.c | 82 le16_to_cpu(dn->compr_type)); in read_block() 653 le16_to_cpu(dn->compr_type)); in populate_page()
|
D | sb.c | 184 sup->default_compr = cpu_to_le16(c->mount_opts.compr_type); in create_default_filesystem()
|
D | debug.c | 269 pr_err("\tcompr_type %d\n", ui->compr_type); in ubifs_dump_inode() 444 (int)le16_to_cpu(ino->compr_type)); in ubifs_dump_node() 483 (int)le16_to_cpu(dn->compr_type)); in ubifs_dump_node()
|