| /fs/bcachefs/ |
| A D | nocow_locking.c | 16 for (i = 0; i < ARRAY_SIZE(l->b); i++) in bch2_bucket_nocow_is_locked() 31 for (i = 0; i < ARRAY_SIZE(l->b); i++) in bch2_bucket_nocow_unlock() 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() 98 for (l = t->l; l < t->l + ARRAY_SIZE(t->l); l++) { in bch2_nocow_locks_to_text() 101 for (i = 0; i < ARRAY_SIZE(l->l); i++) in bch2_nocow_locks_to_text() 113 for (i = 0; i < ARRAY_SIZE(l->l); i++) { in bch2_nocow_locks_to_text() 131 for (struct nocow_lock_bucket *l = t->l; l < t->l + ARRAY_SIZE(t->l); l++) in bch2_fs_nocow_locking_exit() 132 for (unsigned j = 0; j < ARRAY_SIZE(l->l); j++) in bch2_fs_nocow_locking_exit() 140 for (struct nocow_lock_bucket *l = t->l; l < t->l + ARRAY_SIZE(t->l); l++) in bch2_fs_nocow_locking_init_early()
|
| A D | fast_list.c | 58 while (nr < ARRAY_SIZE(entries) && in fast_list_get_idx() 65 while (nr && lp->nr < ARRAY_SIZE(lp->entries)) in fast_list_get_idx() 128 if (unlikely(lp->nr == ARRAY_SIZE(lp->entries))) in fast_list_remove() 129 while (nr < ARRAY_SIZE(entries)) in fast_list_remove()
|
| A D | time_stats.c | 34 u + 1 < time_units + ARRAY_SIZE(time_units) && in bch2_pick_time_units() 46 while (i < ARRAY_SIZE(q->entries)) { in quantiles_update() 109 i < b->entries + ARRAY_SIZE(b->entries); in __bch2_time_stats_clear_buffer() 146 BUG_ON(b->nr >= ARRAY_SIZE(b->entries)); in __bch2_time_stats_update() 152 if (unlikely(b->nr == ARRAY_SIZE(b->entries))) in __bch2_time_stats_update()
|
| A D | fs.h | 89 bubble_sort(&a[1], ARRAY_SIZE(a) - 1, ptrcmp); \ 91 for (i = 1; i < ARRAY_SIZE(a); i++) \ 105 bubble_sort(&a[1], ARRAY_SIZE(a) - 1, ptrcmp); \ 107 for (i = 1; i < ARRAY_SIZE(a); i++) \
|
| A D | buckets_waiting_for_journal.c | 20 for (i = 0; i < ARRAY_SIZE(t->hash_seeds); i++) in bucket_table_init() 35 for (unsigned i = 0; i < ARRAY_SIZE(t->hash_seeds); i++) { in bch2_bucket_journal_seq_ready() 59 for (i = 0; i < ARRAY_SIZE(t->hash_seeds); i++) { in bucket_table_insert()
|
| A D | opts.c | 118 prt_str_opt_boundscheck(out, __bch2_##name##s, ARRAY_SIZE(__bch2_##name##s) - 1, #name, t);\ 243 .min = 0, .max = ARRAY_SIZE(_choices) - 1, \ 275 i < bch2_opt_table + ARRAY_SIZE(bch2_opt_table); in bch2_opt_lookup() 296 i < bch2_opt_synonyms + ARRAY_SIZE(bch2_opt_synonyms); in bch2_mount_opt_lookup() 320 i < bch2_opt_val_synonyms + ARRAY_SIZE(bch2_opt_val_synonyms); in bch2_opt_val_synonym_lookup() 839 for (i = 0; i < ARRAY_SIZE(inode_opt_list); i++) in bch2_opt_is_inode_opt()
|
| A D | alloc_foreground.c | 165 ARRAY_SIZE(c->open_buckets_partial)); in open_bucket_free_unused() 1032 for (i = 0; i < ARRAY_SIZE(c->write_points); i++) in bch2_open_buckets_stop() 1080 hash_long(write_point, ilog2(ARRAY_SIZE(c->write_points_hash))); in writepoint_hash() 1109 if (c->write_points_nr == ARRAY_SIZE(c->write_points) || in try_increase_writepoints() 1367 if (req->ptrs.nr < ARRAY_SIZE(req->ptrs.v)) in bch2_alloc_sectors_start_trans() 1422 c->write_points_nr = ARRAY_SIZE(c->write_points); in bch2_fs_allocator_foreground_init() 1428 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); ob++) { in bch2_fs_allocator_foreground_init() 1479 ob < c->open_buckets + ARRAY_SIZE(c->open_buckets); in bch2_open_buckets_to_text() 1547 wp < c->write_points + ARRAY_SIZE(c->write_points); in bch2_write_points_to_text() 1567 for (unsigned i = 0; i < ARRAY_SIZE(c->open_buckets); i++) in bch2_fs_alloc_debug_to_text() [all …]
|
| A D | async_objs.c | 115 for (unsigned i = 0; i < ARRAY_SIZE(c->async_objs); i++) in bch2_fs_async_obj_exit() 121 for (unsigned i = 0; i < ARRAY_SIZE(c->async_objs); i++) { in bch2_fs_async_obj_init()
|
| A D | sb-downgrade.c | 172 .nr_errors = ARRAY_SIZE(upgrade_##ver##_errors), \ 222 i < upgrade_table + ARRAY_SIZE(upgrade_table); in bch2_sb_set_upgrade() 247 .nr_errors = ARRAY_SIZE(downgrade_##ver##_errors), \ 379 src < downgrade_table + ARRAY_SIZE(downgrade_table); in bch2_sb_downgrade_update()
|
| A D | darray.h | 121 (_d)->size = ARRAY_SIZE((_d)->preallocated); \ 127 if (!ARRAY_SIZE((_d)->preallocated) || \
|
| /fs/nfs_common/ |
| A D | common.c | 61 for (i = 0; i < ARRAY_SIZE(nfs_errtbl); i++) { in nfs_stat_to_errno() 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() 185 for (i = 0; i < ARRAY_SIZE(nfs4_errtbl_common); i++) { in nfs_localio_errno_to_nfs4_stat() 190 for (i = 0; i < ARRAY_SIZE(nfs4_errtbl_localio); i++) { in nfs_localio_errno_to_nfs4_stat()
|
| /fs/btrfs/tests/ |
| A D | free-space-tree-tests.c | 161 extents, ARRAY_SIZE(extents)); in test_empty_block_group() 181 extents, ARRAY_SIZE(extents)); in test_remove_all() 203 extents, ARRAY_SIZE(extents)); in test_remove_beginning() 227 extents, ARRAY_SIZE(extents)); in test_remove_end() 251 extents, ARRAY_SIZE(extents)); in test_remove_middle() 287 extents, ARRAY_SIZE(extents)); in test_merge_left() 324 extents, ARRAY_SIZE(extents)); in test_merge_right() 367 extents, ARRAY_SIZE(extents)); in test_merge_both() 412 extents, ARRAY_SIZE(extents)); in test_merge_none() 571 for (i = 0; i < ARRAY_SIZE(tests); i++) { in btrfs_test_free_space_tree()
|
| /fs/nfs/ |
| A D | mount_clnt.c | 265 for (i = 0; i < ARRAY_SIZE(mnt_errtbl); i++) { in decode_status() 315 for (i = 0; i < ARRAY_SIZE(mnt3_errtbl); i++) { in decode_fhs_status() 440 static unsigned int mnt_counts[ARRAY_SIZE(mnt_procedures)]; 443 .nrprocs = ARRAY_SIZE(mnt_procedures), 448 static unsigned int mnt3_counts[ARRAY_SIZE(mnt3_procedures)]; 451 .nrprocs = ARRAY_SIZE(mnt3_procedures), 468 .nrvers = ARRAY_SIZE(mnt_version),
|
| /fs/unicode/tests/ |
| A D | utf8_kunit.c | 156 for (i = 0; i < ARRAY_SIZE(nfdi_test_data); i++) { in check_utf8_nfdi() 188 for (i = 0; i < ARRAY_SIZE(nfdicf_test_data); i++) { in check_utf8_nfdicf() 219 for (i = 0; i < ARRAY_SIZE(nfdi_test_data); i++) { in check_utf8_comparisons() 230 for (i = 0; i < ARRAY_SIZE(nfdicf_test_data); i++) { in check_utf8_comparisons()
|
| /fs/proc/ |
| A D | namespaces.c | 127 if (ctx->pos >= 2 + ARRAY_SIZE(ns_entries)) in proc_ns_dir_readdir() 130 last = &ns_entries[ARRAY_SIZE(ns_entries) - 1]; in proc_ns_dir_readdir() 161 last = &ns_entries[ARRAY_SIZE(ns_entries)]; in proc_ns_dir_lookup()
|
| A D | consoles.c | 29 char flags[ARRAY_SIZE(con_flags) + 1]; in show_console_dev() 53 for (a = 0; a < ARRAY_SIZE(con_flags); a++) in show_console_dev()
|
| /fs/smb/client/ |
| A D | netlink.c | 53 .n_ops = ARRAY_SIZE(cifs_genl_ops), 56 .n_mcgrps = ARRAY_SIZE(cifs_genl_mcgrps),
|
| /fs/smb/server/ |
| A D | smb2ops.c | 203 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb2_1_server() 220 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb3_0_server() 250 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb3_02_server() 279 conn->max_cmds = ARRAY_SIZE(smb2_0_server_cmds); in init_smb3_11_server()
|
| A D | smb_common.c | 103 int offt = ARRAY_SIZE(smb1_protos) - 1; in ksmbd_lookup_protocol_idx() 115 offt = ARRAY_SIZE(smb2_protos) - 1; in ksmbd_lookup_protocol_idx() 205 for (i = ARRAY_SIZE(smb1_protos) - 1; i >= 0; i--) { in ksmbd_lookup_dialect_by_name() 239 for (i = ARRAY_SIZE(smb2_protos) - 1; i >= 0; i--) { in ksmbd_lookup_dialect_by_id() 409 conn->max_cmds = ARRAY_SIZE(smb1_server_cmds); in init_smb1_server()
|
| A D | server.c | 43 if (idx >= ARRAY_SIZE(server_conf.conf)) in ___server_conf_set() 337 for (i = 0; i < ARRAY_SIZE(server_conf.conf); i++) { in server_conf_free() 474 for (i = 0; i < ARRAY_SIZE(debug_type_strings); i++) { in debug_show() 491 for (i = 0; i < ARRAY_SIZE(debug_type_strings); i++) { in debug_store()
|
| /fs/lockd/ |
| A D | clntxdr.c | 581 static unsigned int nlm_version1_counts[ARRAY_SIZE(nlm_procedures)]; 584 .nrprocs = ARRAY_SIZE(nlm_procedures), 589 static unsigned int nlm_version3_counts[ARRAY_SIZE(nlm_procedures)]; 592 .nrprocs = ARRAY_SIZE(nlm_procedures), 610 .nrvers = ARRAY_SIZE(nlm_versions),
|
| A D | svc.c | 687 nlmsvc_version3_count[ARRAY_SIZE(nlmsvc_procedures)]); 690 .vs_nproc = ARRAY_SIZE(nlmsvc_procedures), 699 nlmsvc_version4_count[ARRAY_SIZE(nlmsvc_procedures4)]); 702 .vs_nproc = ARRAY_SIZE(nlmsvc_procedures4), 718 #define NLM_NRVERS ARRAY_SIZE(nlmsvc_version)
|
| /fs/tests/ |
| A D | binfmt_elf_kunit.c | 49 KUNIT_EXPECT_EQ(test, total_mapping_size(mount, ARRAY_SIZE(mount)), mount_size); in total_mapping_size_test() 51 KUNIT_EXPECT_EQ(test, total_mapping_size(unordered, ARRAY_SIZE(unordered)), mount_size); in total_mapping_size_test()
|
| /fs/verity/ |
| A D | hash_algs.c | 38 if (num >= ARRAY_SIZE(fsverity_hash_algs) || in fsverity_get_hash_alg() 161 for (i = 0; i < ARRAY_SIZE(fsverity_hash_algs); i++) { in fsverity_check_hash_algs()
|
| /fs/crypto/ |
| A D | bio.c | 138 BUILD_BUG_ON(ARRAY_SIZE(pages) > BIO_MAX_VECS); in fscrypt_zeroout_range() 139 nr_pages = min_t(u64, ARRAY_SIZE(pages), in fscrypt_zeroout_range()
|