Home
last modified time | relevance | path

Searched refs:min_io_size (Results 1 – 15 of 15) sorted by relevance

/fs/ubifs/
Dsb.c158 tmp = ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size); in create_default_filesystem()
170 sup->min_io_size = cpu_to_le32(c->min_io_size); in create_default_filesystem()
219 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size)); in create_default_filesystem()
236 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
237 tmp64 -= ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
240 tmp64 = ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
241 ino_waste = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size) - in create_default_filesystem()
268 idx = kzalloc(ALIGN(tmp, c->min_io_size), GFP_KERNEL); in create_default_filesystem()
291 tmp = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
327 tmp = ALIGN(UBIFS_CS_NODE_SZ, c->min_io_size); in create_default_filesystem()
[all …]
Dsuper.c515 c->min_io_size = c->di.min_io_size; in init_constants_early()
516 c->min_io_shift = fls(c->min_io_size) - 1; in init_constants_early()
532 if (!is_power_of_2(c->min_io_size)) { in init_constants_early()
533 ubifs_err("bad min. I/O size %d", c->min_io_size); in init_constants_early()
541 if (c->max_write_size < c->min_io_size || in init_constants_early()
542 c->max_write_size % c->min_io_size || in init_constants_early()
545 c->max_write_size, c->min_io_size); in init_constants_early()
554 if (c->min_io_size < 8) { in init_constants_early()
555 c->min_io_size = 8; in init_constants_early()
557 if (c->max_write_size < c->min_io_size) { in init_constants_early()
[all …]
Dio.c397 pad = ALIGN(len, c->min_io_size) - len; in ubifs_prepare_node()
507 ubifs_assert(wbuf->size >= c->min_io_size); in ubifs_wbuf_sync_nolock()
509 ubifs_assert(wbuf->size % c->min_io_size == 0); in ubifs_wbuf_sync_nolock()
521 sync_len = ALIGN(wbuf->used, c->min_io_size); in ubifs_wbuf_sync_nolock()
575 ubifs_assert(offs % c->min_io_size == 0 && !(offs & 7)); in ubifs_wbuf_seek_nolock()
684 ubifs_assert(wbuf->offs >= 0 && wbuf->offs % c->min_io_size == 0); in ubifs_wbuf_write_nolock()
687 ubifs_assert(wbuf->size >= c->min_io_size); in ubifs_wbuf_write_nolock()
689 ubifs_assert(wbuf->size % c->min_io_size == 0); in ubifs_wbuf_write_nolock()
861 int err, buf_len = ALIGN(len, c->min_io_size); in ubifs_write_node()
867 ubifs_assert(offs % c->min_io_size == 0 && offs < c->leb_size); in ubifs_write_node()
Dlog.c366 max_len = ALIGN(max_len, c->min_io_size); in ubifs_log_start_commit()
402 ubifs_pad(c, buf + len, ALIGN(len, c->min_io_size) - len); in ubifs_log_start_commit()
417 len = ALIGN(len, c->min_io_size); in ubifs_log_start_commit()
617 int sz = ALIGN(*offs, c->min_io_size), err; in add_node()
696 int sz = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
702 offs = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
Dscan.c180 ubifs_assert(offs % c->min_io_size == 0); in ubifs_end_scan()
182 sleb->endpt = ALIGN(offs, c->min_io_size); in ubifs_end_scan()
326 if (offs % c->min_io_size) { in ubifs_scan()
Dlpt_commit.c234 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
277 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
297 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
314 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
416 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
475 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
501 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
525 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
532 err = dbg_chk_lpt_sz(c, 3, ALIGN(offs, c->min_io_size)); in write_cnodes()
537 c->nhead_offs = ALIGN(offs, c->min_io_size); in write_cnodes()
[all …]
Dtnc_commit.c147 c->ileb_len = ALIGN(gap_pos, c->min_io_size); in fill_gap()
428 buf_len = ALIGN(buf_len, c->min_io_size); in layout_in_empty_space()
508 blen = ALIGN(wlen, c->min_io_size); in layout_in_empty_space()
826 buf_len = ALIGN(c->max_idx_node_sz, c->min_io_size); in write_index()
948 blen = ALIGN(wlen, c->min_io_size); in write_index()
Dmaster.c121 c->lhead_offs & (c->min_io_size - 1)) { in validate_master()
144 c->ihead_offs % c->min_io_size || c->ihead_offs < 0 || in validate_master()
163 c->nhead_offs < 0 || c->nhead_offs % c->min_io_size || in validate_master()
Dlpt.c127 tot_wastage += ALIGN(sz, c->min_io_size) - sz; in do_calc_lpt_geom()
662 iopos = ALIGN(node_sz, c->min_io_size); in ubifs_create_dflt_lpt()
668 iopos = ALIGN(node_sz, c->min_io_size); in ubifs_create_dflt_lpt()
701 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
730 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
778 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
803 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
818 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
831 c->nhead_offs = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
1152 if (free < 0 || free > c->leb_size || free % c->min_io_size || in validate_pnode()
Drecovery.c449 empty_offs = ALIGN(*offs, c->min_io_size); in clean_buf()
540 int len = ALIGN(endpt, c->min_io_size); in fix_unclean_leb()
715 min_io_unit = round_down(offs, c->min_io_size); in ubifs_recover_leb()
1063 len = ALIGN(ucleb->endpt, c->min_io_size); in clean_an_unclean_leb()
1473 len = ALIGN(len + 1, c->min_io_size); in fix_size_in_place()
Dubifs-media.h628 __le32 min_io_size; member
Dreplay.c676 ubifs_assert(sleb->endpt % c->min_io_size == 0); in replay_bud()
800 offs & (c->min_io_size - 1)) in validate_ref()
Dorphan.c249 len = ALIGN(len, c->min_io_size); in do_write_orph_node()
323 c->ohead_offs += ALIGN(len, c->min_io_size); in write_orph_node()
Dubifs.h1313 int min_io_size; member
Ddebug.c341 pr_err("\tmin_io_size %u\n", le32_to_cpu(sup->min_io_size)); in ubifs_dump_node()