Home
last modified time | relevance | path

Searched refs:clen (Results 1 – 22 of 22) sorted by relevance

/fs/ocfs2/
Dreservations.c282 unsigned int clen, char *disk_bitmap) in ocfs2_resmap_restart() argument
290 resmap->m_bitmap_len = clen; in ocfs2_resmap_restart()
465 unsigned int cstart, clen; in __ocfs2_resv_find_window() local
486 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
488 &cstart, &clen); in __ocfs2_resv_find_window()
494 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window()
496 if (clen == 0) in __ocfs2_resv_find_window()
500 resv->r_len = clen; in __ocfs2_resv_find_window()
539 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
541 &cstart, &clen); in __ocfs2_resv_find_window()
[all …]
Dreservations.h101 unsigned int clen, char *disk_bitmap);
128 int *cstart, int *clen);
147 u32 cstart, u32 clen);
Dextent_map.c868 u32 cpos, cend, clen, hole_size; in ocfs2_seek_data_hole_offset() local
894 clen = 0; in ocfs2_seek_data_hole_offset()
910 clen = hole_size; in ocfs2_seek_data_hole_offset()
913 clen = le16_to_cpu(rec.e_leaf_clusters) - in ocfs2_seek_data_hole_offset()
926 cpos += clen; in ocfs2_seek_data_hole_offset()
932 extlen = clen; in ocfs2_seek_data_hole_offset()
Ddir.c849 unsigned int cend, clen; in ocfs2_dx_dir_lookup() local
855 &clen); in ocfs2_dx_dir_lookup()
861 cend = cpos + clen; in ocfs2_dx_dir_lookup()
864 blkno += ocfs2_clusters_to_blocks(inode->i_sb, clen - 1); in ocfs2_dx_dir_lookup()
865 cpos += clen - 1; in ocfs2_dx_dir_lookup()
4394 unsigned int clen; in ocfs2_dx_dir_truncate() local
4424 major_hash, &cpos, &blkno, &clen); in ocfs2_dx_dir_truncate()
4432 ret = ocfs2_remove_btree_range(dir, &et, cpos, p_cpos, clen, 0, in ocfs2_dx_dir_truncate()
Docfs2_trace.h1915 TP_PROTO(unsigned int cstart, unsigned int cend, unsigned int clen,
1918 TP_ARGS(cstart, cend, clen, r_start, r_end,
1923 __field(unsigned int, clen)
1933 __entry->clen = clen;
1941 __entry->cstart, __entry->cend, __entry->clen,
/fs/ubifs/
Dcrypto.c58 unsigned int clen = le16_to_cpu(dn->compr_size); in ubifs_decrypt() local
61 if (clen <= 0 || clen > UBIFS_BLOCK_SIZE || clen > dlen) { in ubifs_decrypt()
62 ubifs_err(c, "bad compr_size: %i", clen); in ubifs_decrypt()
74 *out_len = clen; in ubifs_decrypt()
/fs/ntfs3/
Dattrib.c124 CLST vcn_next, vcn0 = vcn, lcn, clen, dn = 0; in run_deallocate_ex() local
130 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in run_deallocate_ex()
138 if (clen > len) in run_deallocate_ex()
139 clen = len; in run_deallocate_ex()
141 if (!clen) { in run_deallocate_ex()
147 mark_as_free_ex(sbi, lcn, clen, trim); in run_deallocate_ex()
148 dn += clen; in run_deallocate_ex()
151 len -= clen; in run_deallocate_ex()
155 vcn_next = vcn + clen; in run_deallocate_ex()
156 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in run_deallocate_ex()
[all …]
Dfsntfs.c1083 CLST lcn, clen, vcn = vbo >> cluster_bits, vcn_next; in ntfs_sb_write_run() local
1087 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) in ntfs_sb_write_run()
1094 len = ((u64)clen << cluster_bits) - off; in ntfs_sb_write_run()
1107 vcn_next = vcn + clen; in ntfs_sb_write_run()
1108 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in ntfs_sb_write_run()
1119 len = ((u64)clen << cluster_bits); in ntfs_sb_write_run()
1151 CLST lcn, clen; in ntfs_read_run_nb() local
1166 } else if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in ntfs_read_run_nb()
1176 len = ((u64)clen << cluster_bits) - off; in ntfs_read_run_nb()
1225 vcn_next = vcn + clen; in ntfs_read_run_nb()
[all …]
Dfile.c119 CLST vcn, lcn, clen; in ntfs_extend_initialized_size() local
125 err = attr_data_get_block(ni, vcn, 0, &lcn, &clen, in ntfs_extend_initialized_size()
132 loff_t to = vbo + ((loff_t)clen << bits); in ntfs_extend_initialized_size()
678 CLST lcn, clen; in ntfs_fallocate() local
687 for (; vcn < cend; vcn += clen) { in ntfs_fallocate()
689 &lcn, &clen, &new); in ntfs_fallocate()
707 min(vcn_v - vcn, clen)); in ntfs_fallocate()
922 CLST lcn, clen; in ntfs_compress_write() local
929 &clen, NULL); in ntfs_compress_write()
935 frame_vbo + ((u64)clen << sbi->cluster_bits); in ntfs_compress_write()
Dfrecord.c1867 CLST lcn, clen; in ni_fiemap() local
1917 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in ni_fiemap()
1921 ok = run_get_entry(run, ++idx, &vcn, &lcn, &clen) && in ni_fiemap()
1941 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in ni_fiemap()
1949 if (!clen) { in ni_fiemap()
1955 vcn += clen; in ni_fiemap()
1977 bytes = (u64)clen << cluster_bits; in ni_fiemap()
1980 vcn += clen; in ni_fiemap()
2134 CLST vcn, cend, lcn, clen, end; in ni_decompress_file() local
2181 for (vcn = vbo >> sbi->cluster_bits; vcn < end; vcn += clen) { in ni_decompress_file()
[all …]
Dbitmap.c515 CLST lcn, clen; in wnd_rescan() local
551 &lcn, &clen, NULL)) { in wnd_rescan()
557 len = ((u64)clen << cluster_bits) - off; in wnd_rescan()
690 CLST lcn, clen; in wnd_map() local
699 if (!run_lookup_entry(&wnd->run, vbo >> sbi->cluster_bits, &lcn, &clen, in wnd_map()
Dindex.c379 CLST lcn, clen, vcn, vcn_next; in scan_nres_bitmap() local
393 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in scan_nres_bitmap()
408 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in scan_nres_bitmap()
414 blen = (sector_t)clen * sbi->blocks_per_cluster; in scan_nres_bitmap()
449 vcn_next = vcn + clen; in scan_nres_bitmap()
451 ok = run_get_entry(run, ++idx, &vcn, &lcn, &clen) && vcn == vcn_next; in scan_nres_bitmap()
Dntfs_fs.h428 int attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn,
Dfslog.c3737 CLST rno, lcn, lcn0, len0, clen; in log_replay() local
5042 &lcn, &clen, NULL); in log_replay()
5049 if (is_mapped && lcn != SPARSE_LCN && clen >= t16) in log_replay()
/fs/f2fs/
Dcompress.c182 cc->clen = lzo1x_worst_compress(PAGE_SIZE << cc->log_cluster_size); in lzo_init_compress_ctx()
197 &cc->clen, cc->private); in lzo_compress_pages()
210 ret = lzo1x_decompress_safe(dic->cbuf->cdata, dic->clen, in lzo_decompress_pages()
256 cc->clen = cc->rlen - PAGE_SIZE - COMPRESS_HEADER_SIZE; in lz4_init_compress_ctx()
275 cc->clen, level, cc->private); in lz4hc_compress_pages()
278 cc->clen, cc->private); in lz4hc_compress_pages()
282 cc->clen = len; in lz4hc_compress_pages()
295 cc->clen, cc->private); in lz4_compress_pages()
299 cc->clen = len; in lz4_compress_pages()
308 dic->clen, dic->rlen); in lz4_decompress_pages()
[all …]
Df2fs.h1509 __le32 clen; /* compressed data size */ member
1535 size_t clen; /* valid data length in cbuf */ member
1564 size_t clen; /* valid data length in cbuf */ member
/fs/cifs/
Ddfs_cache.c430 int i, clen; in cache_entry_hash() local
435 for (i = 0; i < size; i += clen) { in cache_entry_hash()
436 clen = cache_cp->char2uni(&s[i], size - i, &c); in cache_entry_hash()
437 if (unlikely(clen < 0)) { in cache_entry_hash()
439 return clen; in cache_entry_hash()
Dsmb2pdu.c727 int clen; in smb311_decode_neg_context() local
736 clen = le16_to_cpu(pctx->DataLength); in smb311_decode_neg_context()
737 if (clen > len_of_ctxts) in smb311_decode_neg_context()
761 clen = (clen + 7) & ~0x7; in smb311_decode_neg_context()
762 offset += clen + sizeof(struct smb2_neg_context); in smb311_decode_neg_context()
763 len_of_ctxts -= clen; in smb311_decode_neg_context()
Dfile.c2812 size_t clen; in get_numpages() local
2814 clen = min_t(const size_t, len, wsize); in get_numpages()
2815 num_pages = DIV_ROUND_UP(clen, PAGE_SIZE); in get_numpages()
2818 *cur_len = clen; in get_numpages()
/fs/fat/
Ddir.c193 fat_short2uni(struct nls_table *t, unsigned char *c, int clen, wchar_t *uni) in fat_short2uni() argument
197 charlen = t->char2uni(c, clen, uni); in fat_short2uni()
207 int clen, wchar_t *uni) in fat_short2lower_uni() argument
212 charlen = t->char2uni(c, clen, &wc); in fat_short2lower_uni()
/fs/ext4/
Dmballoc.c3933 unsigned int clen, clen_changed, thisgrp_len; in ext4_mb_mark_bb() local
3948 clen = EXT4_NUM_B2C(sbi, thisgrp_len); in ext4_mb_mark_bb()
3964 for (i = 0; i < clen; i++) in ext4_mb_mark_bb()
3969 clen_changed = clen - already; in ext4_mb_mark_bb()
3971 ext4_set_bits(bitmap_bh->b_data, blkoff, clen); in ext4_mb_mark_bb()
3973 mb_test_and_clear_bits(bitmap_bh->b_data, blkoff, clen); in ext4_mb_mark_bb()
3981 clen = ext4_free_group_clusters(sb, gdp) - clen_changed; in ext4_mb_mark_bb()
3983 clen = ext4_free_group_clusters(sb, gdp) + clen_changed; in ext4_mb_mark_bb()
3985 ext4_free_group_clusters_set(sb, gdp, clen); in ext4_mb_mark_bb()
/fs/ksmbd/
Dsmb2pdu.c1026 int clen, ctxt_len; in deassemble_neg_contexts() local
1032 clen = le16_to_cpu(pctx->DataLength); in deassemble_neg_contexts()
1033 ctxt_len = clen + sizeof(struct smb2_neg_context); in deassemble_neg_contexts()