Home
last modified time | relevance | path

Searched refs:offs (Results 1 – 25 of 51) sorted by relevance

123

/fs/ubifs/
A Dscan.c92 lnum, offs); in ubifs_scan_a_node()
102 offs, offs + node_len + pad_len); in ubifs_scan_a_node()
107 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node()
141 err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0); in ubifs_start_scan()
144 c->leb_size - offs, lnum, offs, err); in ubifs_start_scan()
194 snod->offs = offs; in ubifs_add_snod()
270 lnum, offs, len); in ubifs_scan()
277 offs += ret; in ubifs_scan()
308 offs += node_len; in ubifs_scan()
316 offs); in ubifs_scan()
[all …]
A Dio.c252 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_check_node()
609 wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; in ubifs_wbuf_sync_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()
646 wbuf->offs = offs; in ubifs_wbuf_seek_nolock()
650 wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; in ubifs_wbuf_seek_nolock()
999 int offs) in ubifs_write_node() argument
1029 ubifs_assert(c, !(offs & 7) && offs < c->leb_size); in ubifs_read_node_wbuf()
1033 overlap = (lnum == wbuf->lnum && offs + len > wbuf->offs); in ubifs_read_node_wbuf()
1041 rlen = wbuf->offs - offs; in ubifs_read_node_wbuf()
[all …]
A Drecovery.c113 offs = 0; in get_master_node()
121 offs += sz; in get_master_node()
126 if (offs) { in get_master_node()
129 offs -= sz; in get_master_node()
135 offs -= sz; in get_master_node()
154 offs += sz; in get_master_node()
165 offs += sz; in get_master_node()
465 skip = ALIGN(offs + UBIFS_CH_SZ, c->max_write_size) - offs; in no_more_nodes()
477 skip = ALIGN(offs + dlen, c->max_write_size) - offs; in no_more_nodes()
576 *offs = snod->offs; in drop_last_group()
[all …]
A Dlpt_commit.c229 offs = 0; in layout_cnodes()
253 cnode->parent->nbranch[cnode->iip].offs = offs; in layout_cnodes()
258 offs += len; in layout_cnodes()
272 offs = 0; in layout_cnodes()
292 offs = 0; in layout_cnodes()
371 from = offs; in write_cnodes()
872 if (branch->lnum != lnum || branch->offs != offs) in make_nnode_dirty()
919 if (branch->lnum != lnum || branch->offs != offs) in make_pnode_dirty()
1040 pad_len = ALIGN(offs, c->min_io_size) - offs; in get_pad_len()
1489 if (branch->lnum != lnum || branch->offs != offs) in dbg_is_nnode_dirty()
[all …]
A Dtnc.c61 else if (old_idx->offs < o->offs) in do_insert_old_idx()
106 old_idx->offs = offs; in insert_old_idx()
303 old_idx->offs = zbr->offs; in dirty_cow_znode()
483 int offs = zbr->offs; in try_read_node() local
1498 *offs = zt->offs; in ubifs_tnc_locate()
2325 zbr.offs = offs; in ubifs_tnc_add()
2336 zbr->offs = offs; in ubifs_tnc_add()
2387 zbr->offs = offs; in ubifs_tnc_replace()
2416 zbr->offs = offs; in ubifs_tnc_replace()
2488 zbr->offs = offs; in ubifs_tnc_add_nm()
[all …]
A Dreplay.c47 int offs; member
403 r->offs = offs; in insert_node()
459 r->offs = offs; in insert_dent()
911 bud->start = offs; in add_replay_bud()
948 unsigned int offs = le32_to_cpu(ref->offs); in validate_ref() local
958 offs & (c->min_io_size - 1)) in validate_ref()
1023 lnum, offs); in replay_log_leb()
1028 lnum, offs, in replay_log_leb()
1059 if (snod->offs != 0) { in replay_log_leb()
1107 if (snod->offs != 0) { in replay_log_leb()
[all …]
A Dlog.c225 bud->start = offs; in ubifs_add_bud_to_log()
323 bud->start = wbuf->offs; in remove_buds()
395 int offs = c->jheads[i].wbuf.offs; in ubifs_log_start_commit() local
405 ref->offs = cpu_to_le32(offs); in ubifs_log_start_commit()
620 ubifs_pad(c, buf + *offs, sz - *offs); in add_node()
625 *offs = 0; in add_node()
628 *offs += ALIGN(len, 8); in add_node()
696 if (offs) { in ubifs_consolidate_log()
699 ubifs_pad(c, buf + offs, sz - offs); in ubifs_consolidate_log()
703 offs = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
[all …]
A Dtnc_commit.c42 br->offs = cpu_to_le32(zbr->offs); in make_idx_node()
58 znode->offs = offs; in make_idx_node()
70 zbr->offs = offs; in make_idx_node()
75 c->zroot.offs = offs; in make_idx_node()
175 else if (offs < o->offs) in find_old_idx()
177 else if (offs > o->offs) in find_old_idx()
472 znode->offs = offs; in layout_in_empty_space()
484 zbr->offs = offs; in layout_in_empty_space()
488 c->zroot.offs = offs; in layout_in_empty_space()
877 br->offs = cpu_to_le32(zbr->offs); in write_index()
[all …]
A Dmaster.c97 int lnum, offs = 0, nodes_cnt, err; in scan_for_master() local
111 offs = snod->offs; in scan_for_master()
127 if (snod->offs != offs) in scan_for_master()
132 c->mst_offs = offs; in scan_for_master()
162 snod->type, lnum, snod->offs); in scan_for_master()
203 c->zroot.offs >= c->leb_size || c->zroot.offs & 7) { in validate_master()
439 int err, lnum, offs, len; in ubifs_write_master() local
446 offs = c->mst_offs + c->mst_node_alsz; in ubifs_write_master()
453 offs = 0; in ubifs_write_master()
456 c->mst_offs = offs; in ubifs_write_master()
[all …]
A Dtnc_misc.c291 int offs = zzbr->offs; in read_znode() local
300 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in read_znode()
308 ubifs_bad_hash(c, idx, zzbr->hash, lnum, offs); in read_znode()
317 lnum, offs, znode->level, znode->child_cnt); in read_znode()
334 zbr->offs = le32_to_cpu(br->offs); in read_znode()
342 zbr->lnum >= c->leb_cnt || zbr->offs < 0 || in read_znode()
343 zbr->offs + zbr->len > c->leb_size || zbr->offs & 7) { in read_znode()
496 zbr->lnum, zbr->offs); in ubifs_tnc_read_node()
499 zbr->offs); in ubifs_tnc_read_node()
510 zbr->lnum, zbr->offs); in ubifs_tnc_read_node()
[all …]
A Dubifs.h277 int offs; member
303 int offs; member
587 int offs; member
684 int offs; member
749 int offs; member
786 int offs; member
1736 int lnum, int offs);
1738 int lnum, int offs);
1740 int offs);
1767 int lnum, int offs);
[all …]
A Djournal.c183 offs = 0; in reserve_space()
277 *offs = c->jheads[jhead].wbuf.offs + c->jheads[jhead].wbuf.used; in write_head()
977 int err, lnum, offs; in ubifs_jnl_write_inode() local
1296 offs += aligned_dlen1; in ubifs_jnl_xrename()
1302 offs += aligned_dlen2; in ubifs_jnl_xrename()
1310 offs += ALIGN(plen, 8); in ubifs_jnl_xrename()
1529 offs += aligned_dlen1; in ubifs_jnl_rename()
1546 offs += aligned_dlen2; in ubifs_jnl_rename()
1552 offs += ALIGN(ilen, 8); in ubifs_jnl_rename()
1561 offs += ALIGN(wlen, 8); in ubifs_jnl_rename()
[all …]
A Dcommit.c175 c->mst_node->root_offs = cpu_to_le32(zroot.offs); in do_commit()
528 int lnum, offs, len, err = 0; in dbg_old_index_check_init() local
533 offs = d->old_zroot.offs; in dbg_old_index_check_init()
540 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in dbg_old_index_check_init()
566 int lnum, offs, len, err = 0, last_level, child_cnt; in dbg_check_old_index() local
586 offs = d->old_zroot.offs; in dbg_check_old_index()
608 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in dbg_check_old_index()
697 offs = le32_to_cpu(br->offs); in dbg_check_old_index()
A Dgc.c72 wbuf->lnum, wbuf->offs + wbuf->used, gc_lnum, in switch_gc_head()
73 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head()
261 snod->offs, 0); in sort_nodes()
306 int err, new_lnum = wbuf->lnum, new_offs = wbuf->offs + wbuf->used; in move_node()
314 snod->offs, new_lnum, new_offs, in move_node()
358 avail = c->leb_size - wbuf->offs - wbuf->used - in move_nodes()
380 avail = c->leb_size - wbuf->offs - wbuf->used - in move_nodes()
498 ubifs_assert(c, c->gc_lnum != -1 || wbuf->offs + wbuf->used == 0 || in ubifs_garbage_collect_leb()
557 snod->offs); in ubifs_garbage_collect_leb()
745 space_before = c->leb_size - wbuf->offs - wbuf->used; in ubifs_garbage_collect()
[all …]
A Ddebug.c857 snod->offs, snod->len); in ubifs_dump_leb()
1458 znode->zbranch[n].offs != 0) { in dbg_check_znode()
1645 err, zbr->lnum, zbr->offs); in dbg_walk_index()
1973 zbr->lnum, zbr->offs, err); in read_add_inode()
2016 zbr->len, zbr->lnum, zbr->offs); in check_leaf()
2027 zbr->lnum, zbr->offs, err); in check_leaf()
2045 type, zbr->lnum, zbr->offs); in check_leaf()
2083 zbr->lnum, zbr->offs, fscki->size); in check_leaf()
2268 zbr->lnum, zbr->offs, err); in check_inodes()
2598 int offs, int len) in dbg_leb_write() argument
[all …]
A Dlpt.c758 nnode->nbranch[j].offs = boffs; in ubifs_create_dflt_lpt()
763 nnode->nbranch[j].offs = 0; in ubifs_create_dflt_lpt()
1124 int offs = nnode->nbranch[i].offs; in validate_nnode() local
1127 if (offs != 0) in validate_nnode()
1133 if (offs < 0 || offs > max_offs) in validate_nnode()
1208 int err, lnum, offs; in ubifs_read_nnode() local
1213 offs = branch->offs; in ubifs_read_nnode()
1216 offs = c->lpt_offs; in ubifs_read_nnode()
1276 int err, lnum, offs; in read_pnode() local
1280 offs = branch->offs; in read_pnode()
[all …]
/fs/crypto/
A Dcrypto.c113 unsigned int len, unsigned int offs) in fscrypt_crypt_data_unit() argument
132 sg_set_page(&dst, dest_page, len, offs); in fscrypt_crypt_data_unit()
134 sg_set_page(&src, src_page, len, offs); in fscrypt_crypt_data_unit()
173 size_t len, size_t offs, gfp_t gfp_flags) in fscrypt_encrypt_pagecache_blocks() argument
181 (offs >> du_bits); in fscrypt_encrypt_pagecache_blocks()
196 for (i = offs; i < offs + len; i += du_size, index++) { in fscrypt_encrypt_pagecache_blocks()
230 unsigned int len, unsigned int offs, in fscrypt_encrypt_block_inplace() argument
255 size_t offs) in fscrypt_decrypt_pagecache_blocks() argument
262 (offs >> du_bits); in fscrypt_decrypt_pagecache_blocks()
272 for (i = offs; i < offs + len; i += du_size, index++) { in fscrypt_decrypt_pagecache_blocks()
[all …]
/fs/nilfs2/
A Ddir.c114 size_t offs, rec_len; in nilfs_check_folio() local
126 for (offs = 0; offs <= limit - NILFS_DIR_REC_LEN(1); offs += rec_len) { in nilfs_check_folio()
127 p = (struct nilfs_dir_entry *)(kaddr + offs); in nilfs_check_folio()
136 if (((offs + rec_len - 1) ^ offs) & ~(chunk_size-1)) in nilfs_check_folio()
142 if (offs != limit) in nilfs_check_folio()
172 dir->i_ino, error, (folio->index << PAGE_SHIFT) + offs, in nilfs_check_folio()
177 p = (struct nilfs_dir_entry *)(kaddr + offs); in nilfs_check_folio()
180 dir->i_ino, (folio->index << PAGE_SHIFT) + offs, in nilfs_check_folio()
/fs/ufs/
A Ddir.c113 unsigned offs, rec_len; in ufs_check_folio() local
126 for (offs = 0; offs <= limit - UFS_DIR_REC_LEN(1); offs += rec_len) { in ufs_check_folio()
127 p = (struct ufs_dir_entry *)(kaddr + offs); in ufs_check_folio()
136 if (((offs + rec_len - 1) ^ offs) & ~chunk_mask) in ufs_check_folio()
142 if (offs != limit) in ufs_check_folio()
173 dir->i_ino, error, folio_pos(folio) + offs, in ufs_check_folio()
177 p = (struct ufs_dir_entry *)(kaddr + offs); in ufs_check_folio()
181 dir->i_ino, folio_pos(folio) + offs); in ufs_check_folio()
/fs/ext2/
A Ddir.c105 unsigned offs, rec_len; in ext2_check_folio() local
117 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_folio()
118 p = (ext2_dirent *)(kaddr + offs); in ext2_check_folio()
127 if (unlikely(((offs + rec_len - 1) ^ offs) & ~(chunk_size-1))) in ext2_check_folio()
132 if (offs != limit) in ext2_check_folio()
164 dir->i_ino, error, folio_pos(folio) + offs, in ext2_check_folio()
170 p = (ext2_dirent *)(kaddr + offs); in ext2_check_folio()
174 dir->i_ino, folio_pos(folio) + offs, in ext2_check_folio()
/fs/ceph/
A Dcrypto.h152 unsigned int offs, u64 lblk_num);
155 unsigned int offs, u64 lblk_num);
231 unsigned int offs, u64 lblk_num) in ceph_fscrypt_decrypt_block_inplace() argument
238 unsigned int offs, u64 lblk_num) in ceph_fscrypt_encrypt_block_inplace() argument
A Dcrypto.c480 unsigned int offs, u64 lblk_num) in ceph_fscrypt_decrypt_block_inplace() argument
485 ceph_vinop(inode), len, offs, lblk_num); in ceph_fscrypt_decrypt_block_inplace()
486 return fscrypt_decrypt_block_inplace(inode, page, len, offs, lblk_num); in ceph_fscrypt_decrypt_block_inplace()
491 unsigned int offs, u64 lblk_num) in ceph_fscrypt_encrypt_block_inplace() argument
496 ceph_vinop(inode), len, offs, lblk_num); in ceph_fscrypt_encrypt_block_inplace()
497 return fscrypt_encrypt_block_inplace(inode, page, len, offs, lblk_num); in ceph_fscrypt_encrypt_block_inplace()
/fs/xfs/scrub/
A Drtsummary.c178 xfs_rtsumoff_t offs; in xchk_rtsum_record_free() local
190 offs = xfs_rtsumoffs(mp, lenlog, rbmoff); in xchk_rtsum_record_free()
201 error = xfsum_load(sc, offs, &v); in xchk_rtsum_record_free()
207 lenlog, offs, value); in xchk_rtsum_record_free()
209 return xfsum_store(sc, offs, v); in xchk_rtsum_record_free()
/fs/jffs2/
A Ddebug.h215 __jffs2_dbg_dump_buffer(unsigned char *buf, int len, uint32_t offs);
251 #define jffs2_dbg_dump_buffer(buf, len, offs) \ argument
252 __jffs2_dbg_dump_buffer(*buf, len, offs);
262 #define jffs2_dbg_dump_buffer(buf, len, offs) argument
A Ddebug.c737 __jffs2_dbg_dump_buffer(unsigned char *buf, int len, uint32_t offs) in __jffs2_dbg_dump_buffer() argument
743 offs, offs + len, len); in __jffs2_dbg_dump_buffer()
744 i = skip = offs % JFFS2_BUFDUMP_BYTES_PER_LINE; in __jffs2_dbg_dump_buffer()
745 offs = offs & ~(JFFS2_BUFDUMP_BYTES_PER_LINE - 1); in __jffs2_dbg_dump_buffer()
748 printk(JFFS2_DBG "%#08x: ", offs); in __jffs2_dbg_dump_buffer()
757 offs += JFFS2_BUFDUMP_BYTES_PER_LINE; in __jffs2_dbg_dump_buffer()
758 printk(JFFS2_DBG "%0#8x: ", offs); in __jffs2_dbg_dump_buffer()

Completed in 84 milliseconds

123