Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/fs/ntfs/
Drunlist.c151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable()
155 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable()
177 dst->length += src->length; in __ntfs_rl_merge()
238 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
242 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_append()
292 merged_length = dst[loc - 1].length; in ntfs_rl_insert()
294 merged_length += src->length; in ntfs_rl_insert()
325 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_insert()
328 dst[marker].length = dst[marker + 1].vcn - dst[marker].vcn; in ntfs_rl_insert()
333 dst[loc].vcn = dst[loc - 1].vcn + dst[loc - 1].length; in ntfs_rl_insert()
[all …]
/fs/squashfs/
Dblock.c81 struct address_space *cache_mapping, u64 index, int length, in squashfs_bio_read_cached() argument
111 else if (idx == page_count - 1 && index + length != read_end) in squashfs_bio_read_cached()
189 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, in squashfs_bio_read() argument
196 const u64 read_end = round_up(index + length, msblk->devblksize); in squashfs_bio_read()
242 length, read_start, read_end, in squashfs_bio_read()
268 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument
277 if (length) { in squashfs_read_data()
281 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data()
282 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data()
284 index, compressed ? "" : "un", length, output->length); in squashfs_read_data()
[all …]
Dcache.c53 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument
110 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get()
115 if (entry->length < 0) in squashfs_cache_get()
116 entry->error = entry->length; in squashfs_cache_get()
294 int offset, int length) in squashfs_copy_data() argument
296 int remaining = length; in squashfs_copy_data()
298 if (length == 0) in squashfs_copy_data()
301 return min(length, entry->length - offset); in squashfs_copy_data()
303 while (offset < entry->length) { in squashfs_copy_data()
306 int bytes = min_t(int, entry->length - offset, in squashfs_copy_data()
[all …]
Ddir.c43 int err, i, index, length = 0; in get_dir_index_using_offset() local
83 length = index; in get_dir_index_using_offset()
88 *next_offset = (length + *next_offset) % SQUASHFS_METADATA_SIZE; in get_dir_index_using_offset()
93 return length + 3; in get_dir_index_using_offset()
102 int offset = squashfs_i(inode)->offset, length, err; in squashfs_readdir() local
144 length = get_dir_index_using_offset(inode->i_sb, &block, &offset, in squashfs_readdir()
150 while (length < i_size_read(inode)) { in squashfs_readdir()
159 length += sizeof(dirh); in squashfs_readdir()
186 length += sizeof(*dire) + size; in squashfs_readdir()
188 if (ctx->pos >= length) in squashfs_readdir()
[all …]
Dnamei.c69 int i, length = 0, err; in get_dir_index_using_name() local
107 length = le32_to_cpu(index->index); in get_dir_index_using_name()
112 *next_offset = (length + *next_offset) % SQUASHFS_METADATA_SIZE; in get_dir_index_using_name()
122 return length + 3; in get_dir_index_using_name()
137 int err, length; in squashfs_lookup() local
153 length = get_dir_index_using_name(dir->i_sb, &block, &offset, in squashfs_lookup()
158 while (length < i_size_read(dir)) { in squashfs_lookup()
167 length += sizeof(dirh); in squashfs_lookup()
194 length += sizeof(*dire) + size; in squashfs_lookup()
Dsymlink.c41 int length = min_t(int, i_size_read(inode) - index, PAGE_SIZE); in squashfs_symlink_readpage() local
70 for (bytes = 0; bytes < length; offset = 0, bytes += copied) { in squashfs_symlink_readpage()
82 length - bytes); in squashfs_symlink_readpage()
83 if (copied == length - bytes) in squashfs_symlink_readpage()
84 memset(pageaddr + length, 0, PAGE_SIZE - length); in squashfs_symlink_readpage()
Dpage_actor.c44 int pages, int length) in squashfs_page_actor_init() argument
51 actor->length = length ? : pages * PAGE_SIZE; in squashfs_page_actor_init()
65 int max_pages = (actor->length + PAGE_SIZE - 1) >> PAGE_SHIFT; in handle_next_page()
106 struct page **page, int pages, int length) in squashfs_page_actor_init_special() argument
123 actor->length = length ? : pages * PAGE_SIZE; in squashfs_page_actor_init_special()
/fs/xfs/libxfs/
Dxfs_dir2_data.c154 if (!bf[0].length) { in __xfs_dir3_data_check()
159 if (!bf[1].length) { in __xfs_dir3_data_check()
164 if (!bf[2].length) { in __xfs_dir3_data_check()
170 if (be16_to_cpu(bf[0].length) < be16_to_cpu(bf[1].length)) in __xfs_dir3_data_check()
172 if (be16_to_cpu(bf[1].length) < be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
191 if (offset + be16_to_cpu(dup->length) > end) in __xfs_dir3_data_check()
205 if (be16_to_cpu(dup->length) > in __xfs_dir3_data_check()
206 be16_to_cpu(bf[2].length)) in __xfs_dir3_data_check()
209 offset += be16_to_cpu(dup->length); in __xfs_dir3_data_check()
479 if (dfp->length) in xfs_dir2_data_freefind_verify()
[all …]
Dxfs_cksum.h14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument
27 length - (cksum_offset + sizeof(__be32))); in xfs_start_cksum_safe()
35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument
41 return crc32c(XFS_CRC_SEED, buffer, length); in xfs_start_cksum_update()
64 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_update_cksum() argument
66 uint32_t crc = xfs_start_cksum_update(buffer, length, cksum_offset); in xfs_update_cksum()
75 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) in xfs_verify_cksum() argument
77 uint32_t crc = xfs_start_cksum_safe(buffer, length, cksum_offset); in xfs_verify_cksum()
/fs/verity/
Dread_metadata.c17 void __user *buf, u64 offset, int length) in fsverity_read_merkle_tree() argument
26 end_offset = min(offset + length, vi->tree_params.tree_size); in fsverity_read_merkle_tree()
81 static int fsverity_read_buffer(void __user *dst, u64 offset, int length, in fsverity_read_buffer() argument
89 length = min_t(size_t, length, src_length); in fsverity_read_buffer()
91 if (copy_to_user(dst, src, length)) in fsverity_read_buffer()
94 return length; in fsverity_read_buffer()
98 void __user *buf, u64 offset, int length) in fsverity_read_descriptor() argument
112 res = fsverity_read_buffer(buf, offset, length, desc, desc_size); in fsverity_read_descriptor()
119 void __user *buf, u64 offset, int length) in fsverity_read_signature() argument
138 res = fsverity_read_buffer(buf, offset, length, desc->signature, in fsverity_read_signature()
[all …]
/fs/orangefs/
Dxattr.c100 ssize_t length = 0; in orangefs_inode_getxattr() local
129 if (cx->length == -1) { in orangefs_inode_getxattr()
134 ret = cx->length; in orangefs_inode_getxattr()
137 if (cx->length > size) { in orangefs_inode_getxattr()
141 memcpy(buffer, cx->val, cx->length); in orangefs_inode_getxattr()
142 memset(buffer + cx->length, 0, size - cx->length); in orangefs_inode_getxattr()
143 ret = cx->length; in orangefs_inode_getxattr()
175 cx->length = -1; in orangefs_inode_getxattr()
188 length = new_op->downcall.resp.getxattr.val_sz; in orangefs_inode_getxattr()
194 ret = length; in orangefs_inode_getxattr()
[all …]
/fs/ntfs3/lib/
Dxpress_decompress.c92 u32 length; in xpress_decompress() local
102 length = sym & 0xf; in xpress_decompress()
110 if (length == 0xf) { in xpress_decompress()
111 length += bitstream_read_byte(&is); in xpress_decompress()
112 if (length == 0xf + 0xff) in xpress_decompress()
113 length = bitstream_read_u16(&is); in xpress_decompress()
115 length += XPRESS_MIN_MATCH_LEN; in xpress_decompress()
120 if (length > (size_t)(out_end - out_next)) in xpress_decompress()
123 out_next = lz_copy(out_next, length, offset, out_end, in xpress_decompress()
/fs/iomap/
Dseek.c16 loff_t length = iomap_length(iter); in iomap_seek_hole_iter() local
21 iter->pos, iter->pos + length, SEEK_HOLE); in iomap_seek_hole_iter()
22 if (*hole_pos == iter->pos + length) in iomap_seek_hole_iter()
23 return length; in iomap_seek_hole_iter()
29 return length; in iomap_seek_hole_iter()
62 loff_t length = iomap_length(iter); in iomap_seek_data_iter() local
66 return length; in iomap_seek_data_iter()
69 iter->pos, iter->pos + length, SEEK_DATA); in iomap_seek_data_iter()
71 return length; in iomap_seek_data_iter()
Dtrace.h61 __field(u64, length)
68 __entry->length = len;
75 __entry->length)
118 __field(u64, length)
128 __entry->length = iomap->length;
140 __entry->length,
160 __field(u64, length)
169 __entry->length = iomap_length(iter);
178 __entry->length,
Dbuffered-io.c89 loff_t *pos, loff_t length, unsigned *offp, unsigned *lenp) in iomap_adjust_read_range() argument
96 unsigned plen = min_t(loff_t, PAGE_SIZE - poff, length); in iomap_adjust_read_range()
133 if (orig_pos <= isize && orig_pos + length > isize) { in iomap_adjust_read_range()
224 if (WARN_ON_ONCE(size > iomap->length)) in iomap_read_inline_data()
252 loff_t length = iomap_length(iter) - offset; in iomap_readpage_iter() local
269 iomap_adjust_read_range(iter->inode, iop, &pos, length, &poff, &plen); in iomap_readpage_iter()
289 unsigned int nr_vecs = DIV_ROUND_UP(length, PAGE_SIZE); in iomap_readpage_iter()
363 loff_t length = iomap_length(iter); in iomap_readahead_iter() local
366 for (done = 0; done < length; done += ret) { in iomap_readahead_iter()
610 BUG_ON(pos + len > iter->iomap.offset + iter->iomap.length); in iomap_write_begin()
[all …]
/fs/xfs/
Dxfs_icreate_item.c96 xfs_agblock_t length, in xfs_icreate_log() argument
112 icp->ic_format.icl_length = cpu_to_be32(length); in xfs_icreate_log()
155 xfs_agblock_t length; in xlog_recover_icreate_commit_pass2() local
192 length = be32_to_cpu(icl->icl_length); in xlog_recover_icreate_commit_pass2()
193 if (!length || length >= mp->m_sb.sb_agblocks) { in xlog_recover_icreate_commit_pass2()
202 if (length != igeo->ialloc_blks && in xlog_recover_icreate_commit_pass2()
203 length != igeo->ialloc_min_blks) { in xlog_recover_icreate_commit_pass2()
210 if ((count >> mp->m_sb.sb_inopblog) != length) { in xlog_recover_icreate_commit_pass2()
224 nbufs = length / igeo->blocks_per_cluster; in xlog_recover_icreate_commit_pass2()
255 length, be32_to_cpu(icl->icl_gen)); in xlog_recover_icreate_commit_pass2()
Dxfs_dir2_readdir.c188 next_offset = offset + be16_to_cpu(dup->length); in xfs_dir2_block_getdents()
357 int length; /* temporary length value */ in xfs_dir2_leaf_getdents() local
421 length = be16_to_cpu(dup->length); in xfs_dir2_leaf_getdents()
422 offset += length; in xfs_dir2_leaf_getdents()
426 length = xfs_dir2_data_entsize(mp, in xfs_dir2_leaf_getdents()
428 offset += length; in xfs_dir2_leaf_getdents()
451 length = be16_to_cpu(dup->length); in xfs_dir2_leaf_getdents()
452 offset += length; in xfs_dir2_leaf_getdents()
453 curoff += length; in xfs_dir2_leaf_getdents()
458 length = xfs_dir2_data_entsize(mp, dep->namelen); in xfs_dir2_leaf_getdents()
[all …]
Dxfs_extent_busy.c38 new->length = len; in xfs_extent_busy_insert()
53 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert()
56 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert()
101 if (bno < busyp->bno + busyp->length) in xfs_extent_busy_search()
106 match = (busyp->length == len) ? 1 : -1; in xfs_extent_busy_search()
137 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_update_extent()
221 busyp->length = 0; in xfs_extent_busy_update_extent()
253 busyp->length = fbno - busyp->bno; in xfs_extent_busy_update_extent()
291 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_reuse()
343 xfs_agblock_t bend = bbno + busyp->length; in xfs_extent_busy_trim()
[all …]
Dxfs_pnfs.c80 u64 length, in xfs_fs_map_blocks() argument
129 if (offset > limit - length) in xfs_fs_map_blocks()
130 length = limit - offset; in xfs_fs_map_blocks()
139 end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)offset + length); in xfs_fs_map_blocks()
150 if (offset + length > XFS_ISIZE(ip)) in xfs_fs_map_blocks()
247 u64 start, length, end; in xfs_fs_commit_blocks() local
253 end = start + maps[i].length; in xfs_fs_commit_blocks()
257 length = end - start; in xfs_fs_commit_blocks()
258 if (!length) in xfs_fs_commit_blocks()
269 error = xfs_iomap_write_unwritten(ip, start, length, false); in xfs_fs_commit_blocks()
/fs/gfs2/
Dbmap.c43 static int punch_hole(struct gfs2_inode *ip, u64 offset, u64 length);
598 iomap->length = hole_size << inode->i_blkbits; in gfs2_hole_size()
668 size_t dblks = iomap->length >> inode->i_blkbits; in __gfs2_iomap_alloc()
773 iomap->length = (u64)dblks << inode->i_blkbits; in __gfs2_iomap_alloc()
839 static int __gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length, in __gfs2_iomap_get() argument
855 if (!length) in __gfs2_iomap_get()
869 if (pos + length > max_size) in __gfs2_iomap_get()
871 iomap->length = max_size; in __gfs2_iomap_get()
879 iomap->length = length; in __gfs2_iomap_get()
883 iomap->length = size; in __gfs2_iomap_get()
[all …]
/fs/ksmbd/
Dndr.c26 n->length += 1024; in try_to_realloc_ndr_blob()
33 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int16()
48 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int32()
63 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int64()
78 if (n->length <= n->offset + sz) { in ndr_write_bytes()
96 if (n->length <= n->offset + sz) { in ndr_write_string()
114 if (n->offset + sz > n->length) in ndr_read_string()
128 if (n->offset + sz > n->length) in ndr_read_bytes()
139 if (n->offset + sizeof(__u16) > n->length) in ndr_read_int16()
150 if (n->offset + sizeof(__u32) > n->length) in ndr_read_int32()
[all …]
/fs/fuse/
Ddax.c53 loff_t length; member
267 ptr->len = dmap->length; in dmap_removemapping_list()
296 dmap->length); in dmap_reinit_add_to_free_pool()
363 forget_one.len = dmap->length; in dmap_removemapping_one()
388 static void fuse_fill_iomap_hole(struct iomap *iomap, loff_t length) in fuse_fill_iomap_hole() argument
391 iomap->length = length; in fuse_fill_iomap_hole()
395 static void fuse_fill_iomap(struct inode *inode, loff_t pos, loff_t length, in fuse_fill_iomap() argument
403 len = min(length, dmap->length - offset); in fuse_fill_iomap()
411 iomap->length = len; in fuse_fill_iomap()
413 iomap->length = ALIGN(len, PAGE_SIZE); in fuse_fill_iomap()
[all …]
/fs/coda/
Dupcall.c131 const char *name, int length, int * type, in venus_lookup() argument
140 insize = max_t(unsigned int, offset + length +1, OUTSIZE(lookup)); in venus_lookup()
147 memcpy((char *)(inp) + offset, name, length); in venus_lookup()
148 *((char *)inp + offset + length) = '\0'; in venus_lookup()
202 const char *name, int length, in venus_mkdir() argument
211 insize = max_t(unsigned int, offset + length + 1, OUTSIZE(mkdir)); in venus_mkdir()
218 memcpy((char *)(inp) + offset, name, length); in venus_mkdir()
219 *((char *)inp + offset + length) = '\0'; in venus_mkdir()
270 const char *name, int length, int excl, int mode, in venus_create() argument
279 insize = max_t(unsigned int, offset + length + 1, OUTSIZE(create)); in venus_create()
[all …]
/fs/lockd/
Dclnt4xdr.c109 const u8 *data, const unsigned int length) in encode_netobj() argument
113 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj()
114 xdr_encode_opaque(p, data, length); in encode_netobj()
142 u32 length; in decode_cookie() local
148 length = be32_to_cpup(p++); in decode_cookie()
150 if (length == 0) in decode_cookie()
152 if (length > NLM_MAXCOOKIELEN) in decode_cookie()
154 p = xdr_inline_decode(xdr, length); in decode_cookie()
157 cookie->len = length; in decode_cookie()
158 memcpy(cookie->data, p, length); in decode_cookie()
[all …]
/fs/incfs/
Dverity.c745 u64 start_offset, int length) in incfs_read_merkle_tree() argument
763 for (offset = start_offset; offset < start_offset + length; in incfs_read_merkle_tree()
785 void __user *buf, u64 offset, int length) in incfs_read_descriptor() argument
793 length = min_t(u64, length, sizeof(*desc)); in incfs_read_descriptor()
794 err = copy_to_user(buf, desc, length); in incfs_read_descriptor()
796 return err ? err : length; in incfs_read_descriptor()
800 void __user *buf, u64 offset, int length) in incfs_read_signature() argument
813 length = min_t(u64, length, sig_size); in incfs_read_signature()
814 err = copy_to_user(buf, signature, length); in incfs_read_signature()
816 return err ? err : length; in incfs_read_signature()
[all …]

12345678910>>...12