Lines Matching refs:ubifs_assert

110 	ubifs_assert(c, !c->ro_media && !c->ro_mount);  in ubifs_leb_write()
130 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_change()
150 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_unmap()
169 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_leb_map()
251 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_check_node()
252 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_node()
332 ubifs_assert(c, pad >= 0); in ubifs_pad()
383 ubifs_assert(c, len >= UBIFS_CH_SZ); in ubifs_init_node()
476 ubifs_assert(c, len >= UBIFS_CH_SZ); in ubifs_prep_grp_node()
520 ubifs_assert(c, !hrtimer_active(&wbuf->timer)); in new_wbuf_timer_nolock()
521 ubifs_assert(c, delta <= ULONG_MAX); in new_wbuf_timer_nolock()
570 ubifs_assert(c, !(wbuf->avail & 7)); in ubifs_wbuf_sync_nolock()
571 ubifs_assert(c, wbuf->offs + wbuf->size <= c->leb_size); in ubifs_wbuf_sync_nolock()
572 ubifs_assert(c, wbuf->size >= c->min_io_size); in ubifs_wbuf_sync_nolock()
573 ubifs_assert(c, wbuf->size <= c->max_write_size); in ubifs_wbuf_sync_nolock()
574 ubifs_assert(c, wbuf->size % c->min_io_size == 0); in ubifs_wbuf_sync_nolock()
575 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_wbuf_sync_nolock()
577 ubifs_assert(c, !((wbuf->offs + wbuf->size) % c->max_write_size)); in ubifs_wbuf_sync_nolock()
638 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt); in ubifs_wbuf_seek_nolock()
639 ubifs_assert(c, offs >= 0 && offs <= c->leb_size); in ubifs_wbuf_seek_nolock()
640 ubifs_assert(c, offs % c->min_io_size == 0 && !(offs & 7)); in ubifs_wbuf_seek_nolock()
641 ubifs_assert(c, lnum != wbuf->lnum); in ubifs_wbuf_seek_nolock()
642 ubifs_assert(c, wbuf->used == 0); in ubifs_wbuf_seek_nolock()
672 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_bg_wbufs_sync()
748 ubifs_assert(c, len > 0 && wbuf->lnum >= 0 && wbuf->lnum < c->leb_cnt); in ubifs_wbuf_write_nolock()
749 ubifs_assert(c, wbuf->offs >= 0 && wbuf->offs % c->min_io_size == 0); in ubifs_wbuf_write_nolock()
750 ubifs_assert(c, !(wbuf->offs & 7) && wbuf->offs <= c->leb_size); in ubifs_wbuf_write_nolock()
751 ubifs_assert(c, wbuf->avail > 0 && wbuf->avail <= wbuf->size); in ubifs_wbuf_write_nolock()
752 ubifs_assert(c, wbuf->size >= c->min_io_size); in ubifs_wbuf_write_nolock()
753 ubifs_assert(c, wbuf->size <= c->max_write_size); in ubifs_wbuf_write_nolock()
754 ubifs_assert(c, wbuf->size % c->min_io_size == 0); in ubifs_wbuf_write_nolock()
755 ubifs_assert(c, mutex_is_locked(&wbuf->io_mutex)); in ubifs_wbuf_write_nolock()
756 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_wbuf_write_nolock()
757 ubifs_assert(c, !c->space_fixup); in ubifs_wbuf_write_nolock()
759 ubifs_assert(c, !((wbuf->offs + wbuf->size) % c->max_write_size)); in ubifs_wbuf_write_nolock()
778 ubifs_assert(c, aligned_len - len < 8); in ubifs_wbuf_write_nolock()
883 ubifs_assert(c, n - len < 8); in ubifs_wbuf_write_nolock()
905 ubifs_assert(c, aligned_len - len < 8); in ubifs_wbuf_write_nolock()
965 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_write_node_hmac()
966 ubifs_assert(c, offs % c->min_io_size == 0 && offs < c->leb_size); in ubifs_write_node_hmac()
967 ubifs_assert(c, !c->ro_media && !c->ro_mount); in ubifs_write_node_hmac()
968 ubifs_assert(c, !c->space_fixup); in ubifs_write_node_hmac()
1028 ubifs_assert(c, wbuf && lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node_wbuf()
1029 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_read_node_wbuf()
1030 ubifs_assert(c, type >= 0 && type < UBIFS_NODE_TYPES_CNT); in ubifs_read_node_wbuf()
1103 ubifs_assert(c, lnum >= 0 && lnum < c->leb_cnt && offs >= 0); in ubifs_read_node()
1104 ubifs_assert(c, len >= UBIFS_CH_SZ && offs + len <= c->leb_size); in ubifs_read_node()
1105 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_read_node()
1106 ubifs_assert(c, type >= 0 && type < UBIFS_NODE_TYPES_CNT); in ubifs_read_node()