Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 803) sorted by relevance

12345678910>>...33

/fs/hpfs/
A Dinode.c22 i->i_size = -1; in hpfs_init_inode()
23 i->i_blocks = -1; in hpfs_init_inode()
139 i->i_blocks = ((i->i_size + 511) >> 9) + 1; in hpfs_read_inode()
141 hpfs_i(i)->mmu_private = i->i_size; in hpfs_read_inode()
166 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea()
168 && i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0222 : 0333)) in hpfs_write_inode_ea()
175 if (S_ISBLK(i->i_mode) || S_ISCHR(i->i_mode)) { in hpfs_write_inode_ea()
186 if (i->i_ino == hpfs_sb(i->i_sb)->sb_root) return; in hpfs_write_inode()
216 if (i->i_ino == hpfs_sb(i->i_sb)->sb_root) return; in hpfs_write_inode_nolock()
217 if (!(fnode = hpfs_map_fnode(i->i_sb, i->i_ino, &bh))) return; in hpfs_write_inode_nolock()
[all …]
A Dname.c44 int i; in hpfs_chk_name() local
48 for (i = 0; i < *len; i++) if (not_allowed_char(name[i])) return -EINVAL; in hpfs_chk_name()
58 int i; in hpfs_translate_name() local
61 for (i = 0; i < len; i++) in hpfs_translate_name()
71 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); in hpfs_translate_name()
80 unsigned i; in hpfs_compare_names() local
82 for (i = 0; i < l; i++) { in hpfs_compare_names()
95 int i,j; in hpfs_is_name_long() local
96 for (i = 0; i < len && name[i] != '.'; i++) in hpfs_is_name_long()
98 if (!i || i > 8) return 1; in hpfs_is_name_long()
[all …]
/fs/bcachefs/
A Deytzinger.h62 EYTZINGER_BUG_ON(i == 0 || i > size); in eytzinger1_next()
65 i = eytzinger1_right_child(i); in eytzinger1_next()
67 i <<= __fls(size) - __fls(i); in eytzinger1_next()
68 i >>= i > size; in eytzinger1_next()
70 i >>= ffz(i) + 1; in eytzinger1_next()
81 i = eytzinger1_left_child(i) + 1; in eytzinger1_prev()
83 i <<= __fls(size) - __fls(i); in eytzinger1_prev()
85 i >>= i > size; in eytzinger1_prev()
87 i >>= __ffs(i) + 1; in eytzinger1_prev()
107 EYTZINGER_BUG_ON(!i || i > size); in __eytzinger1_to_inorder()
[all …]
A Ddebug.c319 memmove(i->buf.buf, i->buf.buf + copied, i->buf.pos); in bch2_debugfs_flush_buf()
330 return i->size ? 0 : i->ret; in bch2_debugfs_flush_buf()
339 if (!i) in bch2_dump_open()
372 for_each_btree_key(trans, iter, i->id, i->from, in bch2_read_btree()
375 bch2_bkey_val_to_text(&i->buf, i->c, k); in bch2_read_btree()
381 i->ret; in bch2_read_btree()
409 bch2_btree_node_to_text(&i->buf, i->c, b); in bch2_read_btree_formats()
436 for_each_btree_key(trans, iter, i->id, i->from, in bch2_read_bfloat_failed()
445 bch2_btree_node_to_text(&i->buf, i->c, l->b); in bch2_read_bfloat_failed()
454 i->ret; in bch2_read_bfloat_failed()
[all …]
A Dbtree_trans_commit.c55 bch2_journal_keys_peek_slot(c, i->btree_id, i->level, i->k->k.p); in verify_update_old_key()
71 return (trans->paths + i->path)->l + i->level; in insert_l()
578 gc_visited(trans->c, gc_pos_btree(i->btree_id, i->level, i->k->k.p))) { in bch2_trans_commit_run_gc_triggers()
704 i = vstruct_next(i)) { in bch2_trans_commit_write_locked()
744 i->btree_id, i->level, in bch2_trans_commit_write_locked()
752 i->btree_id, i->level, in bch2_trans_commit_write_locked()
795 i = bkey_next(i)) in bch2_trans_commit_write_locked()
811 bch2_journal_key_overwritten(trans->c, i->btree_id, i->level, i->k->k.p); in bch2_drop_overwrites_from_journal()
966 int ret = bch2_journal_key_insert(c, i->btree_id, i->level, i->k); in do_bch2_trans_commit_to_journal_replay()
973 i = vstruct_next(i)) { in do_bch2_trans_commit_to_journal_replay()
[all …]
A Djournal_sb.c37 for (i = 0; i < nr; i++) in bch2_sb_journal_validate()
59 for (i = 0; i + 1 < nr; i++) in bch2_sb_journal_validate()
60 if (b[i] == b[i + 1]) { in bch2_sb_journal_validate()
78 for (i = 0; i < nr; i++) in bch2_sb_journal_to_text()
120 for (i = 0; i < nr; i++) { in bch2_sb_journal_v2_validate()
122 b[i].end = b[i].start + le64_to_cpu(journal->d[i].nr); in bch2_sb_journal_v2_validate()
153 for (i = 0; i + 1 < nr; i++) { in bch2_sb_journal_v2_validate()
156 b[i].start, b[i].end, b[i + 1].start, b[i + 1].end); in bch2_sb_journal_v2_validate()
179 for (i = 0; i < nr; i++) in bch2_sb_journal_v2_to_text()
206 for (i = 0; i + 1 < nr; i++) in bch2_journal_buckets_to_sb()
[all …]
A Dsb-errors.c38 for (i = 0; i < nr; i++) { in bch2_sb_errors_validate()
66 for (i = 0; i < nr; i++) { in bch2_sb_errors_to_text()
111 unsigned i; in bch2_sb_error_count() local
114 for (i = 0; i < e->nr; i++) { in bch2_sb_error_count()
136 unsigned i; in bch2_sb_errors_from_cpu() local
146 for (i = 0; i < src->nr; i++) { in bch2_sb_errors_from_cpu()
147 SET_BCH_SB_ERROR_ENTRY_ID(&dst->entries[i], src->data[i].id); in bch2_sb_errors_from_cpu()
148 SET_BCH_SB_ERROR_ENTRY_NR(&dst->entries[i], src->data[i].nr); in bch2_sb_errors_from_cpu()
173 for (i = 0; i < nr; i++) { in bch2_sb_errors_to_cpu()
174 dst->data[i].id = BCH_SB_ERROR_ENTRY_ID(&src->entries[i]); in bch2_sb_errors_to_cpu()
[all …]
A Dsb-members.c106 for (int i = c->disk_sb.sb->nr_devices - 1; i >= 0; --i) { in sb_members_v2_resize_entries() local
155 for (unsigned i = 0; i < disk_sb->sb->nr_devices; i++) in bch2_sb_members_cpy_v2_v1() local
240 for (unsigned i = 0; i < BCH_MEMBER_ERROR_NR; i++) in member_to_text() local
243 for (unsigned i = 0; i < BCH_IOPS_NR; i++) in member_to_text() local
312 for (i = 0; i < sb->nr_devices; i++) { in bch2_sb_members_v1_validate()
389 for (unsigned i = 0; i < sb->nr_devices; i++) { in bch2_sb_members_v2_validate() local
431 for (unsigned i = 0; i < BCH_MEMBER_ERROR_NR; i++) in bch2_dev_io_errors_to_text() local
441 for (unsigned i = 0; i < BCH_MEMBER_ERROR_NR; i++) in bch2_dev_io_errors_to_text() local
493 for (unsigned i = 0; i < 64; i++) in __bch2_dev_btree_bitmap_mark() local
528 for (unsigned i = 0; i < sb->nr_devices; i++) in bch2_sb_nr_devices() local
[all …]
A Dasync_objs.c49 if (!i) in bch2_async_obj_list_open()
53 i->from = POS_MIN; in bch2_async_obj_list_open()
54 i->iter = 0; in bch2_async_obj_list_open()
56 i->list = list; in bch2_async_obj_list_open()
68 i->ubuf = buf; in bch2_async_obj_list_read()
69 i->size = size; in bch2_async_obj_list_read()
70 i->ret = 0; in bch2_async_obj_list_read()
79 if (!i->size) in bch2_async_obj_list_read()
115 for (unsigned i = 0; i < ARRAY_SIZE(c->async_objs); i++) in bch2_fs_async_obj_exit() local
121 for (unsigned i = 0; i < ARRAY_SIZE(c->async_objs); i++) { in bch2_fs_async_obj_init() local
[all …]
A Dnocow_locking.c14 unsigned i; in bch2_bucket_nocow_is_locked() local
16 for (i = 0; i < ARRAY_SIZE(l->b); i++) in bch2_bucket_nocow_is_locked()
17 if (l->b[i] == dev_bucket && atomic_read(&l->l[i])) in bch2_bucket_nocow_is_locked()
29 unsigned i; in bch2_bucket_nocow_unlock() local
31 for (i = 0; i < ARRAY_SIZE(l->b); i++) in bch2_bucket_nocow_unlock()
48 unsigned i; in __bch2_bucket_nocow_trylock() local
52 for (i = 0; i < ARRAY_SIZE(l->b); i++) in __bch2_bucket_nocow_trylock()
56 for (i = 0; i < ARRAY_SIZE(l->b); i++) in __bch2_bucket_nocow_trylock()
58 l->b[i] = dev_bucket; in __bch2_bucket_nocow_trylock()
101 for (i = 0; i < ARRAY_SIZE(l->l); i++) in bch2_nocow_locks_to_text()
[all …]
/fs/ufs/
A Dutil.c35 for (i = 0; i < count; i++) in _ubh_bread_()
38 for (; i < UFS_MAXFRAG; i++) in _ubh_bread_()
60 for (i = 0; i < count; i++) in ubh_bread_uspi()
63 for (; i < UFS_MAXFRAG; i++) in ubh_bread_uspi()
77 for (i = 0; i < ubh->count; i++) in ubh_brelse()
87 for ( i = 0; i < USPI_UBH(uspi)->count; i++ ) { in ubh_brelse_uspi()
98 for ( i = 0; i < ubh->count; i++ ) in ubh_mark_buffer_dirty()
107 for (i = 0; i < ubh->count; i++) in ubh_sync_block()
110 for (i = 0; i < ubh->count; i++) in ubh_sync_block()
120 for ( i = 0; i < ubh->count; i++ ) if ( ubh->bh[i] ) in ubh_bforget()
[all …]
/fs/xfs/libxfs/
A Dxfs_iext_tree.c186 for (i = 1; i < KEYS_PER_NODE; i++) in xfs_iext_find_last_leaf()
316 for (i = 1; i < KEYS_PER_NODE; i++) in xfs_iext_find_level()
335 for (i = 1; i < KEYS_PER_NODE; i++) { in xfs_iext_node_pos()
350 for (i = 0; i < KEYS_PER_NODE; i++) { in xfs_iext_node_insert_pos()
425 for (i = 1; i < KEYS_PER_NODE; i++) in xfs_iext_grow()
478 for (i = 0; i < nr_move; i++) { in xfs_iext_split_node()
531 for (i = nr_entries; i > pos; i--) { in xfs_iext_insert_node()
565 for (i = 0; i < nr_move; i++) { in xfs_iext_split_leaf()
726 for (i = 0; i < nr_next; i++) { in xfs_iext_rebalance_node()
824 for (i = 0; i < nr_entries; i++) in xfs_iext_rebalance_leaf()
[all …]
/fs/smb/client/
A Dcifs_unicode.c195 for (i = 0; i < fromwords; i++) { in cifs_from_utf16()
228 i++; in cifs_from_utf16()
235 for (i = 0; i < nullsize; i++) in cifs_from_utf16()
252 int i; in cifs_strtoUTF16() local
307 int i; in cifs_utf16_bytes() local
313 for (i = 0; i < maxwords; i++) { in cifs_utf16_bytes()
470 for (i = 0; i < srclen; j++) { in cifsConvertToUTF16()
491 if ((i == 0 || source[i-1] == '\\') && in cifsConvertToUTF16()
496 (i == 1 || source[i-2] == '\\') && in cifsConvertToUTF16()
499 (i == srclen-1 || source[i+1] == '\\')) in cifsConvertToUTF16()
[all …]
/fs/f2fs/
A Dcompress.c102 for (i = 0; i < len; i++) { in f2fs_drop_rpages()
127 for (i = 0; i < cc->cluster_size; i++) { in f2fs_put_rpages_wbc()
610 for (i = 0; i < MAX_VMAP_RETRIES; i++) { in f2fs_vmap()
648 for (i = 0; i < cc->nr_cpages; i++) in f2fs_compress_pages()
712 for (i = 0; i < cc->nr_cpages; i++) { in f2fs_compress_pages()
881 for (i = 0; i < cc->cluster_size; i++) { in cluster_has_invalid_data()
1082 for (i = 0; i < cc->cluster_size; i++) in set_cluster_dirty()
1370 for (i = 0; i < cc->cluster_size; i++) in f2fs_write_compressed_pages()
1452 for (--i; i >= 0; i--) { in f2fs_write_compressed_pages()
1495 for (i = 0; i < cic->nr_rpages; i++) { in f2fs_compress_write_end_io()
[all …]
/fs/jfs/
A Djfs_unicode.c22 int i; in jfs_strfromUCS_le() local
28 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
40 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
42 to[i] = '?'; in jfs_strfromUCS_le()
55 to[i] = (char) (le16_to_cpu(from[i])); in jfs_strfromUCS_le()
57 outlen = i; in jfs_strfromUCS_le()
73 int i; in jfs_strtoUCS() local
88 for (i = 0; (i < len) && from[i]; i++) in jfs_strtoUCS()
89 to[i] = (wchar_t) from[i]; in jfs_strtoUCS()
92 to[i] = 0; in jfs_strtoUCS()
[all …]
/fs/jffs2/
A Dcompr_rubin.c143 for (i = 0; i < RUBIN_REG_SIZE; i++) { in end_rubin()
236 for (i=0; i<8; i++) { in out_byte()
253 for (i = 0; i < 8; i++) in in_byte()
255 rs->bits[i]) << i; in in_byte()
316 for (i=0; i<mysrclen; i++) in jffs2_dynrubin_compress()
319 for (i=0; i<256; i++) { in jffs2_dynrubin_compress()
338 for (i=0; i<8; i++) { in jffs2_dynrubin_compress()
339 bits[i] = (bits[i] * 256) / mysrclen; in jffs2_dynrubin_compress()
340 if (!bits[i]) bits[i] = 1; in jffs2_dynrubin_compress()
341 if (bits[i] > 255) bits[i] = 255; in jffs2_dynrubin_compress()
[all …]
/fs/ocfs2/
A Dblockcheck.c112 for (i = 0; (i = ocfs2_find_next_bit(data, d, i)) < d; i++) in ocfs2_hamming_encode()
187 for (i = 0; i < d; i++, b++) in ocfs2_hamming_fix()
444 int i; in ocfs2_block_check_compute_bhs() local
454 for (i = 0, crc = ~0, ecc = 0; i < nr; i++) { in ocfs2_block_check_compute_bhs()
463 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs()
507 for (i = 0, crc = ~0; i < nr; i++) in ocfs2_block_check_validate_bhs()
518 for (i = 0, ecc = 0; i < nr; i++) { in ocfs2_block_check_validate_bhs()
526 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs()
529 for (i = 0; i < nr; i++) { in ocfs2_block_check_validate_bhs()
535 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs()
[all …]
/fs/btrfs/
A Dprint-tree.c38 int i; in btrfs_root_name() local
46 for (i = 0; i < ARRAY_SIZE(root_map); i++) { in btrfs_root_name()
58 int i; in print_chunk() local
62 for (i = 0 ; i < num_stripes ; i++) { in print_chunk()
212 for (int i = 0; i < num_stripes; i++) in print_raid_stripe_key() local
214 i, btrfs_raid_stride_devid(eb, &stripe->strides[i]), in print_raid_stripe_key()
233 int i; in btrfs_print_leaf() local
257 for (i = 0 ; i < nr ; i++) { in btrfs_print_leaf()
262 btrfs_item_offset(l, i), btrfs_item_size(l, i)); in btrfs_print_leaf()
411 for (i = 0; i < nr; i++) { in btrfs_print_tree()
[all …]
/fs/unicode/tests/
A Dutf8_kunit.c152 int i; in check_utf8_nfdi() local
156 for (i = 0; i < ARRAY_SIZE(nfdi_test_data); i++) { in check_utf8_nfdi()
157 int len = strlen(nfdi_test_data[i].str); in check_utf8_nfdi()
158 int nlen = strlen(nfdi_test_data[i].dec); in check_utf8_nfdi()
174 c, nfdi_test_data[i].dec[j]); in check_utf8_nfdi()
184 int i; in check_utf8_nfdicf() local
188 for (i = 0; i < ARRAY_SIZE(nfdicf_test_data); i++) { in check_utf8_nfdicf()
206 c, nfdicf_test_data[i].ncf[j]); in check_utf8_nfdicf()
216 int i; in check_utf8_comparisons() local
219 for (i = 0; i < ARRAY_SIZE(nfdi_test_data); i++) { in check_utf8_comparisons()
[all …]
/fs/ubifs/
A Dlpt_commit.c36 for (i = 0; i < UBIFS_LPT_FANOUT; i++) { in first_dirty_cnode()
154 for (i = n; i < c->lpt_lebs; i++) { in alloc_lpt_leb()
164 for (i = 0; i < n; i++) { in alloc_lpt_leb()
338 for (i = n; i < c->lpt_lebs; i++) in realloc_lpt_leb()
345 for (i = 0; i < n; i++) in realloc_lpt_leb()
738 for (i = 0; i < c->lpt_lebs; i++) in lpt_tgc_end()
792 for (i = 0; i < heap->cnt; i++) { in populate_lsave()
798 for (i = 0; i < heap->cnt; i++) { in populate_lsave()
1464 for (i = 0; i < len; i++) in dbg_is_all_ff()
1516 for (i = 0; i < cnt; i++) { in dbg_is_pnode_dirty()
[all …]
/fs/ext4/
A Dmballoc-test.c260 for (i = 0; i < ngroups; i++) in mbt_ctx_init()
286 for (i = 0; i < ngroups; i++) in mbt_ctx_release()
472 for (i = 0; i < count; i++) { in mbt_generate_test_ranges()
544 for (i = 0; i < TEST_RANGE_COUNT; i++) in test_free_blocks_simple()
600 for (i = 0; i < TEST_RANGE_COUNT; i++) in test_mark_diskspace_used()
705 for (i = 0; i < MB_NUM_ORDERS(sb); i++) in do_test_generate_buddy()
739 for (i = 0; i < TEST_RANGE_COUNT; i++) { in test_mb_generate_buddy()
771 for (i = 0; i < MB_NUM_ORDERS(sb); i++) in test_mb_mark_used_range()
809 for (i = 0; i < TEST_RANGE_COUNT; i++) in test_mb_mark_used()
836 for (i = 0; i < MB_NUM_ORDERS(sb); i++) in test_mb_free_blocks_range()
[all …]
/fs/btrfs/tests/
A Draid-stripe-tree-tests.c67 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_punch_hole_3extents() local
88 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_punch_hole_3extents() local
109 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_punch_hole_3extents() local
243 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_delete_two_extents() local
264 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_delete_two_extents() local
285 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_delete_two_extents() local
386 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_punch_hole() local
526 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_front_delete_prev_item() local
547 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_front_delete_prev_item() local
666 for (int i = 0; i < RST_TEST_NUM_DEVICES; i++) { in test_front_delete() local
[all …]
/fs/nfs_common/
A Dcommon.c59 int i; in nfs_stat_to_errno() local
61 for (i = 0; i < ARRAY_SIZE(nfs_errtbl); i++) { in nfs_stat_to_errno()
63 return nfs_errtbl[i].errno; in nfs_stat_to_errno()
125 int i; in nfs4_stat_to_errno() local
128 for (i = 0; i < ARRAY_SIZE(nfs4_errtbl_common); i++) { in nfs4_stat_to_errno()
133 for (i = 0; i < ARRAY_SIZE(nfs4_errtbl); i++) { in nfs4_stat_to_errno()
134 if (nfs4_errtbl[i].stat == stat) in nfs4_stat_to_errno()
135 return nfs4_errtbl[i].errno; in nfs4_stat_to_errno()
182 int i; in nfs_localio_errno_to_nfs4_stat() local
185 for (i = 0; i < ARRAY_SIZE(nfs4_errtbl_common); i++) { in nfs_localio_errno_to_nfs4_stat()
[all …]
/fs/smb/server/
A Dunicode.c109 int i, j; in smb_utf16_bytes() local
115 for (i = 0; i < maxwords; i++) { in smb_utf16_bytes()
178 for (i = 0; i < fromwords; i++) { in smb_from_utf16()
211 i++; in smb_from_utf16()
214 i += 2; in smb_from_utf16()
218 for (i = 0; i < nullsize; i++) in smb_from_utf16()
237 int i; in smb_strtoUTF16() local
251 if (i >= 0) in smb_strtoUTF16()
273 return i; in smb_strtoUTF16()
356 for (i = 0, j = 0; i < srclen; j++) { in smbConvertToUTF16()
[all …]
/fs/afs/
A Dserver_list.c14 int i; in afs_put_serverlist() local
17 for (i = 0; i < slist->nr_servers; i++) in afs_put_serverlist()
43 for (i = 0; i < vldb->nr_servers; i++) { in afs_alloc_server_list()
71 for (i = 0; i < vldb->nr_servers; i++) { in afs_alloc_server_list()
137 int i; in afs_annotate_server_list() local
143 for (i = 0; i < old->nr_servers; i++) { in afs_annotate_server_list()
144 if (old->servers[i].server != new->servers[i].server) in afs_annotate_server_list()
162 unsigned int i; in afs_attach_volume_to_servers() local
166 for (i = 0; i < slist->nr_servers; i++) { in afs_attach_volume_to_servers()
237 unsigned int i; in afs_detach_volume_from_servers() local
[all …]

Completed in 57 milliseconds

12345678910>>...33