/fs/smb/server/ |
D | unicode.c | 109 int i, j; in smb_utf16_bytes() local 119 for (j = 1; j <= 2; j++) { in smb_utf16_bytes() 120 if (i + j < maxwords) in smb_utf16_bytes() 121 ftmp[j] = get_unaligned_le16(&from[i + j]); in smb_utf16_bytes() 123 ftmp[j] = 0; in smb_utf16_bytes() 163 int i, j, charlen, safelen; in smb_from_utf16() local 182 for (j = 1; j <= 2; j++) { in smb_from_utf16() 183 if (i + j < fromwords) in smb_from_utf16() 184 ftmp[j] = get_unaligned_le16(&from[i + j]); in smb_from_utf16() 186 ftmp[j] = 0; in smb_from_utf16() [all …]
|
/fs/afs/ |
D | server_list.c | 34 int ret = -ENOMEM, nr_servers = 0, i, j; in afs_alloc_server_list() local 66 for (j = 0; j < slist->nr_servers; j++) in afs_alloc_server_list() 67 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list() 71 if (j < slist->nr_servers) { in afs_alloc_server_list() 72 if (slist->servers[j].server == server) { in afs_alloc_server_list() 78 memmove(slist->servers + j + 1, in afs_alloc_server_list() 79 slist->servers + j, in afs_alloc_server_list() 80 (slist->nr_servers - j) * sizeof(struct afs_server_entry)); in afs_alloc_server_list() 83 slist->servers[j].server = server; in afs_alloc_server_list() 107 int i, j; in afs_annotate_server_list() local [all …]
|
D | vl_list.c | 160 int ret = -ENOMEM, nr_servers, i, j; in afs_extract_vlserver_list() local 286 for (j = 0; j < vllist->nr_servers; j++) { in afs_extract_vlserver_list() 287 if (bs.priority < vllist->servers[j].priority) in afs_extract_vlserver_list() 289 if (bs.priority == vllist->servers[j].priority && in afs_extract_vlserver_list() 290 bs.weight > vllist->servers[j].weight) in afs_extract_vlserver_list() 294 if (j < vllist->nr_servers) { in afs_extract_vlserver_list() 295 memmove(vllist->servers + j + 1, in afs_extract_vlserver_list() 296 vllist->servers + j, in afs_extract_vlserver_list() 297 (vllist->nr_servers - j) * sizeof(struct afs_vlserver_entry)); in afs_extract_vlserver_list() 302 vllist->servers[j].priority = bs.priority; in afs_extract_vlserver_list() [all …]
|
D | security.c | 150 int i, j; in afs_cache_permit() local 228 i = j = 0; in afs_cache_permit() 231 if (j == i && permits->permits[i].key > key) { in afs_cache_permit() 232 new->permits[j].key = key; in afs_cache_permit() 233 new->permits[j].access = caller_access; in afs_cache_permit() 234 j++; in afs_cache_permit() 236 new->permits[j].key = permits->permits[i].key; in afs_cache_permit() 237 new->permits[j].access = permits->permits[i].access; in afs_cache_permit() 238 j++; in afs_cache_permit() 242 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()
|
/fs/erofs/ |
D | zutil.c | 70 int last, i, j; in z_erofs_gbuf_growsize() local 85 for (j = 0; j < gbuf->nrpages; ++j) in z_erofs_gbuf_growsize() 86 tmp_pages[j] = gbuf->pages[j]; in z_erofs_gbuf_growsize() 88 last = j; in z_erofs_gbuf_growsize() 89 j = alloc_pages_bulk_array(GFP_KERNEL, nrpages, in z_erofs_gbuf_growsize() 91 if (last == j) in z_erofs_gbuf_growsize() 93 } while (j != nrpages); in z_erofs_gbuf_growsize() 112 for (j = 0; j < nrpages; ++j) in z_erofs_gbuf_growsize() 113 if (tmp_pages[j] && tmp_pages[j] != gbuf->pages[j]) in z_erofs_gbuf_growsize() 114 __free_page(tmp_pages[j]); in z_erofs_gbuf_growsize() [all …]
|
D | decompressor_deflate.c | 113 int no = -1, ni = 0, j = 0, zerr, err; in z_erofs_deflate_decompress() local 187 j = strm->z.next_out - kout; in z_erofs_deflate_decompress() 198 strm->z.next_out = kout + j; in z_erofs_deflate_decompress() 214 for (j = ni + 1; j < nrpages_in; ++j) { in z_erofs_deflate_decompress() 217 if (rq->out[no] != rq->in[j]) in z_erofs_deflate_decompress() 221 rq->in[j])); in z_erofs_deflate_decompress() 228 copy_highpage(tmppage, rq->in[j]); in z_erofs_deflate_decompress() 229 rq->in[j] = tmppage; in z_erofs_deflate_decompress()
|
/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 225 j = bits_per_zone; in minix_new_inode() 230 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 60 for (i = j = 0; i < ARRAY_SIZE(xstats); i++) { in xfs_stats_format() 64 for (; j < xstats[i].endpoint; j++) in xfs_stats_format() 66 counter_val(stats, j)); in xfs_stats_format() 126 int j; in xqmstat_proc_show() local 129 for (j = XFSSTAT_START_XQMSTAT; j < XFSSTAT_END_XQMSTAT; j++) in xqmstat_proc_show() 130 seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j)); in xqmstat_proc_show()
|
D | xfs_trans_dquot.c | 79 int i, j; in xfs_trans_dup_dqinfo() local 88 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { in xfs_trans_dup_dqinfo() 89 oqa = otp->t_dqinfo->dqs[j]; in xfs_trans_dup_dqinfo() 90 nqa = ntp->t_dqinfo->dqs[j]; in xfs_trans_dup_dqinfo() 336 int i, j; in xfs_trans_apply_dquot_deltas() local 346 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { in xfs_trans_apply_dquot_deltas() 347 qa = tp->t_dqinfo->dqs[j]; in xfs_trans_apply_dquot_deltas() 479 int i, j; in xfs_trans_unreserve_and_mod_dquots() local 487 for (j = 0; j < XFS_QM_TRANS_DQTYPES; j++) { in xfs_trans_unreserve_and_mod_dquots() 488 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()
|
/fs/affs/ |
D | symlink.c | 20 int i, j; in affs_symlink_read_folio() local 30 j = 0; in affs_symlink_read_folio() 42 while (i < 1023 && lf->symname[j] != ':') in affs_symlink_read_folio() 43 link[i++] = lf->symname[j++]; in affs_symlink_read_folio() 46 j++; in affs_symlink_read_folio() 49 while (i < 1023 && (c = lf->symname[j])) { in affs_symlink_read_folio() 56 j++; in affs_symlink_read_folio()
|
/fs/smb/client/ |
D | cifs_unicode.c | 457 int j = 0; in cifsConvertToUTF16() local 470 for (i = 0; i < srclen; j++) { in cifsConvertToUTF16() 533 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 538 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 540 j++; in cifsConvertToUTF16() 541 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 544 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 546 j++; in cifsConvertToUTF16() 547 put_unaligned(dst_char, &target[j]); in cifsConvertToUTF16() 549 j++; in cifsConvertToUTF16() [all …]
|
D | cifs_debug.c | 311 int c, i, j; in cifs_debug_data_proc_show() local 549 for (j = 1; j < ses->chan_count; j++) { in cifs_debug_data_proc_show() 550 cifs_dump_channel(m, j, &ses->chans[j]); in cifs_debug_data_proc_show() 551 if (CIFS_CHAN_NEEDS_RECONNECT(ses, j)) in cifs_debug_data_proc_show() 553 if (CIFS_CHAN_IN_RECONNECT(ses, j)) in cifs_debug_data_proc_show() 560 j = 0; in cifs_debug_data_proc_show() 562 seq_printf(m, "\n\t%d) IPC: ", j); in cifs_debug_data_proc_show() 569 ++j; in cifs_debug_data_proc_show() 570 seq_printf(m, "\n\t%d) ", j); in cifs_debug_data_proc_show() 586 j = 0; in cifs_debug_data_proc_show() [all …]
|
/fs/unicode/ |
D | utf8-selftest.c | 181 int j = 0; in check_utf8_nfdi() local 192 test_f((c == nfdi_test_data[i].dec[j]), in check_utf8_nfdi() 194 c, nfdi_test_data[i].dec[j]); in check_utf8_nfdi() 195 j++; in check_utf8_nfdi() 198 test((j == nlen)); in check_utf8_nfdi() 210 int j = 0; in check_utf8_nfdicf() local 223 test_f((c == nfdicf_test_data[i].ncf[j]), in check_utf8_nfdicf() 225 c, nfdicf_test_data[i].ncf[j]); in check_utf8_nfdicf() 226 j++; in check_utf8_nfdicf() 229 test((j == nlen)); in check_utf8_nfdicf()
|
/fs/ext4/ |
D | orphan.c | 13 int i, j, start; in ext4_orphan_file_add() local 56 j = 0; in ext4_orphan_file_add() 72 while (bdata[j]) { in ext4_orphan_file_add() 73 if (++j >= inodes_per_ob) { in ext4_orphan_file_add() 74 j = 0; in ext4_orphan_file_add() 78 } while (cmpxchg(&bdata[j], (__le32)0, cpu_to_le32(inode->i_ino)) != in ext4_orphan_file_add() 81 EXT4_I(inode)->i_orphan_idx = i * inodes_per_ob + j; in ext4_orphan_file_add() 385 int i, j; in ext4_orphan_cleanup() local 479 for (j = 0; j < inodes_per_ob; j++) { in ext4_orphan_cleanup() 480 if (!bdata[j]) in ext4_orphan_cleanup() [all …]
|
/fs/jbd2/ |
D | recovery.c | 179 static int jbd2_descriptor_block_csum_verify(journal_t *j, void *buf) in jbd2_descriptor_block_csum_verify() argument 185 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_descriptor_block_csum_verify() 189 j->j_blocksize - sizeof(struct jbd2_journal_block_tail)); in jbd2_descriptor_block_csum_verify() 192 calculated = jbd2_chksum(j, j->j_csum_seed, buf, j->j_blocksize); in jbd2_descriptor_block_csum_verify() 433 static int jbd2_commit_block_csum_verify(journal_t *j, void *buf) in jbd2_commit_block_csum_verify() argument 439 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_commit_block_csum_verify() 445 calculated = jbd2_chksum(j, j->j_csum_seed, buf, j->j_blocksize); in jbd2_commit_block_csum_verify() 451 static int jbd2_block_tag_csum_verify(journal_t *j, journal_block_tag_t *tag, in jbd2_block_tag_csum_verify() argument 458 if (!jbd2_journal_has_csum_v2or3(j)) in jbd2_block_tag_csum_verify() 462 csum32 = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&seq, sizeof(seq)); in jbd2_block_tag_csum_verify() [all …]
|
/fs/udf/ |
D | partition.c | 153 int i, j, k, l; in udf_relocate_blocks() local 168 for (j = 0; j < 4; j++) in udf_relocate_blocks() 169 if (sdata->s_spar_map[j] != NULL) { in udf_relocate_blocks() 171 sdata->s_spar_map[j]->b_data; in udf_relocate_blocks() 187 for (; j < 4; j++) { in udf_relocate_blocks() 189 bh = sdata->s_spar_map[j]; in udf_relocate_blocks() 230 for (; j < 4; j++) { in udf_relocate_blocks() 231 bh = sdata->s_spar_map[j]; in udf_relocate_blocks()
|
/fs/nfs/filelayout/ |
D | filelayoutdev.c | 152 int j; in nfs4_fl_alloc_deviceid_node() local 160 for (j = 0; j < mp_count; j++) { in nfs4_fl_alloc_deviceid_node() 234 nfs4_fl_calc_ds_index(struct pnfs_layout_segment *lseg, u32 j) in nfs4_fl_calc_ds_index() argument 236 return FILELAYOUT_LSEG(lseg)->dsaddr->stripe_indices[j]; in nfs4_fl_calc_ds_index() 240 nfs4_fl_select_ds_fh(struct pnfs_layout_segment *lseg, u32 j) in nfs4_fl_select_ds_fh() argument 252 i = nfs4_fl_calc_ds_index(lseg, j); in nfs4_fl_select_ds_fh() 254 i = j; in nfs4_fl_select_ds_fh()
|
/fs/f2fs/ |
D | gc.h | 84 int j; in free_segs_blk_count_zoned() local 87 for (j = 0; j < MAIN_SEGS(sbi); j++) in free_segs_blk_count_zoned() 88 if (!test_bit(j, free_i->free_segmap)) in free_segs_blk_count_zoned() 89 free_seg_blks += f2fs_usable_blks_in_seg(sbi, j); in free_segs_blk_count_zoned()
|
/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/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/smb/common/ |
D | cifs_arc4.c | 17 int i, j = 0, k = 0; in cifs_arc4_setkey() local 28 j = (j + in_key[k] + a) & 0xff; in cifs_arc4_setkey() 29 ctx->S[i] = ctx->S[j]; in cifs_arc4_setkey() 30 ctx->S[j] = a; in cifs_arc4_setkey()
|
/fs/freevxfs/ |
D | vxfs_super.c | 191 u32 j; in vxfs_fill_super() local 227 j = fs32_to_cpu(infp, rsbp->vs_version); in vxfs_fill_super() 228 if ((j < 2 || j > 4) && !silent) { in vxfs_fill_super() 229 printk(KERN_NOTICE "vxfs: unsupported VxFS version (%d)\n", j); in vxfs_fill_super() 234 printk(KERN_DEBUG "vxfs: supported VxFS version (%d)\n", j); in vxfs_fill_super() 244 j = fs32_to_cpu(infp, rsbp->vs_bsize); in vxfs_fill_super() 245 if (!sb_set_blocksize(sbp, j)) { in vxfs_fill_super()
|