/fs/afs/ |
D | server_list.c | 36 int ret = -ENOMEM, nr_servers = 0, i, j; in afs_alloc_server_list() local 64 for (j = 0; j < slist->nr_servers; j++) in afs_alloc_server_list() 65 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list() 69 if (j < slist->nr_servers) { in afs_alloc_server_list() 70 if (slist->servers[j].server == server) { in afs_alloc_server_list() 76 memmove(slist->servers + j + 1, in afs_alloc_server_list() 77 slist->servers + j, in afs_alloc_server_list() 78 (slist->nr_servers - j) * sizeof(struct afs_server_entry)); in afs_alloc_server_list() 81 slist->servers[j].server = server; in afs_alloc_server_list() 105 int i, j; in afs_annotate_server_list() local [all …]
|
D | vl_list.c | 166 int ret = -ENOMEM, nr_servers, i, j; in afs_extract_vlserver_list() local 292 for (j = 0; j < vllist->nr_servers; j++) { in afs_extract_vlserver_list() 293 if (bs.priority < vllist->servers[j].priority) in afs_extract_vlserver_list() 295 if (bs.priority == vllist->servers[j].priority && in afs_extract_vlserver_list() 296 bs.weight > vllist->servers[j].weight) in afs_extract_vlserver_list() 300 if (j < vllist->nr_servers) { in afs_extract_vlserver_list() 301 memmove(vllist->servers + j + 1, in afs_extract_vlserver_list() 302 vllist->servers + j, in afs_extract_vlserver_list() 303 (vllist->nr_servers - j) * sizeof(struct afs_vlserver_entry)); in afs_extract_vlserver_list() 308 vllist->servers[j].priority = bs.priority; in afs_extract_vlserver_list() [all …]
|
D | security.c | 150 int i, j; in afs_cache_permit() local 230 i = j = 0; in afs_cache_permit() 233 if (j == i && permits->permits[i].key > key) { in afs_cache_permit() 234 new->permits[j].key = key; in afs_cache_permit() 235 new->permits[j].access = caller_access; in afs_cache_permit() 236 j++; in afs_cache_permit() 238 new->permits[j].key = permits->permits[i].key; in afs_cache_permit() 239 new->permits[j].access = permits->permits[i].access; in afs_cache_permit() 240 j++; in afs_cache_permit() 244 if (j == i) { in afs_cache_permit() [all …]
|
/fs/ufs/ |
D | cylinder.c | 36 unsigned i, j; in ufs_read_cylinder() local 73 for (j = 1; j < i; j++) in ufs_read_cylinder() 74 brelse (sbi->s_ucg[j]); in ufs_read_cylinder() 133 unsigned cg, i, j; in ufs_load_cylinder() local 177 for (j = i; j > 0; j--) { in ufs_load_cylinder() 178 sbi->s_cgno[j] = sbi->s_cgno[j-1]; in ufs_load_cylinder() 179 sbi->s_ucpi[j] = sbi->s_ucpi[j-1]; in ufs_load_cylinder() 193 for (j = sbi->s_cg_loaded - 1; j > 0; j--) { in ufs_load_cylinder() 194 sbi->s_cgno[j] = sbi->s_cgno[j-1]; in ufs_load_cylinder() 195 sbi->s_ucpi[j] = sbi->s_ucpi[j-1]; in ufs_load_cylinder()
|
D | util.c | 23 unsigned i, j ; in _ubh_bread_() local 42 for (j = 0; j < i; j++) in _ubh_bread_() 43 brelse (ubh->bh[j]); in _ubh_bread_() 51 unsigned i, j; in ubh_bread_uspi() local 67 for (j = 0; j < i; j++) in ubh_bread_uspi() 68 brelse (USPI_UBH(uspi)->bh[j]); in ubh_bread_uspi()
|
D | ialloc.c | 181 unsigned cg, bit, i, j, start; in ufs_new_inode() local 212 for ( j = 1; j < uspi->s_ncg; j <<= 1 ) { in ufs_new_inode() 213 i += j; in ufs_new_inode() 226 for (j = 2; j < uspi->s_ncg; j++) { in ufs_new_inode()
|
/fs/minix/ |
D | bitmap.c | 79 int j; in minix_new_block() local 82 j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); in minix_new_block() 83 if (j < bits_per_zone) { in minix_new_block() 84 minix_set_bit(j, bh->b_data); in minix_new_block() 87 j += i * bits_per_zone + sbi->s_firstdatazone-1; in minix_new_block() 88 if (j < sbi->s_firstdatazone || j >= sbi->s_nzones) in minix_new_block() 90 return j; in minix_new_block() 220 unsigned long j; in minix_new_inode() local 227 j = bits_per_zone; in minix_new_inode() 233 j = minix_find_first_zero_bit(bh->b_data, bits_per_zone); in minix_new_inode() [all …]
|
/fs/xfs/ |
D | xfs_stats.c | 21 int i, j; in xfs_stats_format() local 59 for (i = j = 0; i < ARRAY_SIZE(xstats); i++) { in xfs_stats_format() 63 for (; j < xstats[i].endpoint; j++) in xfs_stats_format() 65 counter_val(stats, j)); in xfs_stats_format() 122 int j; in xqmstat_proc_show() local 125 for (j = XFSSTAT_START_XQMSTAT; j < XFSSTAT_END_XQMSTAT; j++) in xqmstat_proc_show() 126 seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j)); in xqmstat_proc_show()
|
D | xfs_trans_dquot.c | 71 int i, j; in xfs_trans_dup_dqinfo() local 87 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { in xfs_trans_dup_dqinfo() 88 oqa = otp->t_dqinfo->dqs[j]; in xfs_trans_dup_dqinfo() 89 nqa = ntp->t_dqinfo->dqs[j]; in xfs_trans_dup_dqinfo() 309 int i, j; in xfs_trans_apply_dquot_deltas() local 320 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { in xfs_trans_apply_dquot_deltas() 321 qa = tp->t_dqinfo->dqs[j]; in xfs_trans_apply_dquot_deltas() 491 int i, j; in xfs_trans_unreserve_and_mod_dquots() local 499 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { in xfs_trans_unreserve_and_mod_dquots() 500 qa = tp->t_dqinfo->dqs[j]; in xfs_trans_unreserve_and_mod_dquots()
|
/fs/reiserfs/ |
D | hashes.c | 130 int j, pow; in yura_hash() local 144 for (pow = 1, j = i; j < len - 1; j++) in yura_hash() 151 for (pow = 1, j = i; j < len - 1; j++) in yura_hash() 158 for (pow = 1, j = i; j < len - 1; j++) in yura_hash()
|
D | item_ops.c | 136 int j = 0; in direct_print_item() local 140 while (j < ih_item_len(ih)) in direct_print_item() 141 printk("%c", item[j++]); in direct_print_item() 262 int j; in indirect_print_item() local 273 for (j = 0; j < I_UNFM_NUM(ih); j++) { in indirect_print_item() 274 if (sequence_finished(prev, &num, get_block_num(unp, j))) { in indirect_print_item() 276 start_new_sequence(&prev, &num, get_block_num(unp, j)); in indirect_print_item() 463 int i, j; in direntry_create_vi() local 483 j = old_entry_num(is_affected, i, vn->vn_pos_in_item, in direntry_create_vi() 486 (j ? deh_location(&deh[j - 1]) : ih_item_len(vi->vi_ih)) - in direntry_create_vi() [all …]
|
/fs/affs/ |
D | symlink.c | 20 int i, j; in affs_symlink_readpage() local 30 j = 0; in affs_symlink_readpage() 42 while (i < 1023 && lf->symname[j] != ':') in affs_symlink_readpage() 43 link[i++] = lf->symname[j++]; in affs_symlink_readpage() 46 j++; in affs_symlink_readpage() 49 while (i < 1023 && (c = lf->symname[j])) { in affs_symlink_readpage() 56 j++; in affs_symlink_readpage()
|
/fs/cifs/ |
D | cifs_unicode.c | 464 int j = 0; in cifsConvertToUTF16() local 477 for (i = 0; i < srclen; j++) { in cifsConvertToUTF16() 534 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 539 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 541 j++; in cifsConvertToUTF16() 542 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 545 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 547 j++; in cifsConvertToUTF16() 548 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 550 j++; in cifsConvertToUTF16() [all …]
|
D | cifs_debug.c | 202 int i, j; in cifs_debug_data_proc_show() local 381 j = 0; in cifs_debug_data_proc_show() 383 seq_printf(m, "\n\t%d) IPC: ", j); in cifs_debug_data_proc_show() 392 ++j; in cifs_debug_data_proc_show() 393 seq_printf(m, "\n\t%d) ", j); in cifs_debug_data_proc_show() 417 for (j = 0; j < ses->iface_count; j++) { in cifs_debug_data_proc_show() 418 seq_printf(m, "\t%d)", j); in cifs_debug_data_proc_show() 419 cifs_dump_iface(m, &ses->iface_list[j]); in cifs_debug_data_proc_show() 499 int j; in cifs_stats_proc_show() local 541 for (j = 0; j < NUMBER_OF_SMB2_COMMANDS; j++) in cifs_stats_proc_show() [all …]
|
D | transport.c | 323 unsigned int i, j; in __smb_send_rqst() local 351 for (j = 0; j < num_rqst; j++) in __smb_send_rqst() 352 send_length += smb_rqst_len(server, &rqst[j]); in __smb_send_rqst() 382 for (j = 0; j < num_rqst; j++) { in __smb_send_rqst() 383 iov = rqst[j].rq_iov; in __smb_send_rqst() 384 n_vec = rqst[j].rq_nvec; in __smb_send_rqst() 401 for (i = 0; i < rqst[j].rq_npages; i++) { in __smb_send_rqst() 404 bvec.bv_page = rqst[j].rq_pages[i]; in __smb_send_rqst() 405 rqst_page_get_length(&rqst[j], i, &bvec.bv_len, in __smb_send_rqst() 994 int i, j, optype, rc = 0; in compound_send_recv() local [all …]
|
/fs/unicode/ |
D | utf8-selftest.c | 179 int j = 0; in check_utf8_nfdi() local 189 test_f((c == nfdi_test_data[i].dec[j]), in check_utf8_nfdi() 191 c, nfdi_test_data[i].dec[j]); in check_utf8_nfdi() 192 j++; in check_utf8_nfdi() 195 test((j == nlen)); in check_utf8_nfdi() 215 int j = 0; in check_utf8_nfdicf() local 225 test_f((c == nfdicf_test_data[i].ncf[j]), in check_utf8_nfdicf() 227 c, nfdicf_test_data[i].ncf[j]); in check_utf8_nfdicf() 228 j++; in check_utf8_nfdicf() 231 test((j == nlen)); in check_utf8_nfdicf()
|
/fs/jbd2/ |
D | recovery.c | 174 static int jbd2_descriptor_block_csum_verify(journal_t *j, void *buf) in jbd2_descriptor_block_csum_verify() argument 180 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_descriptor_block_csum_verify() 183 tail = (struct jbd2_journal_block_tail *)(buf + j->j_blocksize - in jbd2_descriptor_block_csum_verify() 187 calculated = jbd2_chksum(j, j->j_csum_seed, buf, j->j_blocksize); in jbd2_descriptor_block_csum_verify() 378 static int jbd2_commit_block_csum_verify(journal_t *j, void *buf) in jbd2_commit_block_csum_verify() argument 384 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_commit_block_csum_verify() 390 calculated = jbd2_chksum(j, j->j_csum_seed, buf, j->j_blocksize); in jbd2_commit_block_csum_verify() 396 static int jbd2_block_tag_csum_verify(journal_t *j, journal_block_tag_t *tag, in jbd2_block_tag_csum_verify() argument 403 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_block_tag_csum_verify() 407 csum32 = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&seq, sizeof(seq)); in jbd2_block_tag_csum_verify() [all …]
|
/fs/udf/ |
D | partition.c | 158 int i, j, k, l; in udf_relocate_blocks() local 173 for (j = 0; j < 4; j++) in udf_relocate_blocks() 174 if (sdata->s_spar_map[j] != NULL) { in udf_relocate_blocks() 176 sdata->s_spar_map[j]->b_data; in udf_relocate_blocks() 192 for (; j < 4; j++) { in udf_relocate_blocks() 194 bh = sdata->s_spar_map[j]; in udf_relocate_blocks() 235 for (; j < 4; j++) { in udf_relocate_blocks() 236 bh = sdata->s_spar_map[j]; in udf_relocate_blocks()
|
/fs/squashfs/ |
D | cache.c | 199 int i, j; in squashfs_cache_delete() local 206 for (j = 0; j < cache->pages; j++) in squashfs_cache_delete() 207 kfree(cache->entry[i].data[j]); in squashfs_cache_delete() 226 int i, j; in squashfs_cache_init() local 264 for (j = 0; j < cache->pages; j++) { in squashfs_cache_init() 265 entry->data[j] = kmalloc(PAGE_SIZE, GFP_KERNEL); in squashfs_cache_init() 266 if (entry->data[j] == NULL) { in squashfs_cache_init()
|
/fs/nfs/filelayout/ |
D | filelayoutdev.c | 154 int j; in nfs4_fl_alloc_deviceid_node() local 162 for (j = 0; j < mp_count; j++) { in nfs4_fl_alloc_deviceid_node() 236 nfs4_fl_calc_ds_index(struct pnfs_layout_segment *lseg, u32 j) in nfs4_fl_calc_ds_index() argument 238 return FILELAYOUT_LSEG(lseg)->dsaddr->stripe_indices[j]; in nfs4_fl_calc_ds_index() 242 nfs4_fl_select_ds_fh(struct pnfs_layout_segment *lseg, u32 j) in nfs4_fl_select_ds_fh() argument 254 i = nfs4_fl_calc_ds_index(lseg, j); in nfs4_fl_select_ds_fh() 256 i = j; in nfs4_fl_select_ds_fh()
|
/fs/hpfs/ |
D | name.c | 95 int i,j; in hpfs_is_name_long() local 100 for (j = i + 1; j < len; j++) in hpfs_is_name_long() 101 if (name[j] == '.' || no_dos_char(name[i])) return 1; in hpfs_is_name_long() 102 return j - i > 4; in hpfs_is_name_long()
|
/fs/freevxfs/ |
D | vxfs_super.c | 214 u32 j; in vxfs_fill_super() local 250 j = fs32_to_cpu(infp, rsbp->vs_version); in vxfs_fill_super() 251 if ((j < 2 || j > 4) && !silent) { in vxfs_fill_super() 252 printk(KERN_NOTICE "vxfs: unsupported VxFS version (%d)\n", j); in vxfs_fill_super() 257 printk(KERN_DEBUG "vxfs: supported VxFS version (%d)\n", j); in vxfs_fill_super() 267 j = fs32_to_cpu(infp, rsbp->vs_bsize); in vxfs_fill_super() 268 if (!sb_set_blocksize(sbp, j)) { in vxfs_fill_super()
|
/fs/befs/ |
D | datastream.c | 310 int i, j; in befs_find_brun_indirect() local 339 for (j = 0; j < arraylen; ++j) { in befs_find_brun_indirect() 340 int len = fs16_to_cpu(sb, array[j].len); in befs_find_brun_indirect() 345 fs32_to_cpu(sb, array[j].allocation_group); in befs_find_brun_indirect() 347 fs16_to_cpu(sb, array[j].start) + offset; in befs_find_brun_indirect() 349 fs16_to_cpu(sb, array[j].len) - offset; in befs_find_brun_indirect() 356 j + (i * arraylen)); in befs_find_brun_indirect()
|
/fs/nilfs2/ |
D | alloc.c | 508 unsigned long i, j; in nilfs_palloc_prepare_alloc_entry() local 532 for (j = 0; j < n; j++, desc++, group++) { in nilfs_palloc_prepare_alloc_entry() 736 int i, j, k, ret; in nilfs_palloc_freev() local 739 for (i = 0; i < nitems; i = j) { in nilfs_palloc_freev() 761 j = i; in nilfs_palloc_freev() 769 (unsigned long long)entry_nrs[j]); in nilfs_palloc_freev() 774 j++; in nilfs_palloc_freev() 775 if (j >= nitems || entry_nrs[j] < group_min_nr || in nilfs_palloc_freev() 776 entry_nrs[j] >= group_min_nr + epg) { in nilfs_palloc_freev() 779 group_offset = entry_nrs[j] - group_min_nr; in nilfs_palloc_freev() [all …]
|
/fs/erofs/ |
D | decompressor.c | 40 unsigned int i, j, top; in z_erofs_lz4_prepare_destpages() local 43 for (i = j = 0; i < nr; ++i, ++j) { in z_erofs_lz4_prepare_destpages() 47 if (j >= LZ4_MAX_DISTANCE_PAGES) in z_erofs_lz4_prepare_destpages() 48 j = 0; in z_erofs_lz4_prepare_destpages() 51 if (test_bit(j, bounced)) { in z_erofs_lz4_prepare_destpages() 58 __clear_bit(j, bounced); in z_erofs_lz4_prepare_destpages() 70 __set_bit(j, bounced); in z_erofs_lz4_prepare_destpages()
|