Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 91) sorted by relevance

1234

/fs/btrfs/
Dfree-space-cache.c37 u64 bytes; member
518 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry() argument
528 entry->bytes = cpu_to_le64(bytes); in io_ctl_add_entry()
602 entry->bytes = le64_to_cpu(e->bytes); in io_ctl_read_entry()
652 if (prev->offset + prev->bytes == e->offset) { in merge_space_tree()
655 prev->bytes += e->bytes; in merge_space_tree()
759 if (!e->bytes) { in __load_free_space_cache()
937 ret = io_ctl_add_entry(io_ctl, e->offset, e->bytes, in write_cache_extent_entries()
967 trim_entry->bytes, NULL); in write_cache_extent_entries()
1411 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) in bytes_to_bits() argument
[all …]
Dlzo.c113 unsigned long bytes; in lzo_compress_pages() local
162 bytes = min_t(unsigned long, pg_bytes_left, out_len); in lzo_compress_pages()
164 memcpy(cpage_out + out_offset, buf, bytes); in lzo_compress_pages()
166 out_len -= bytes; in lzo_compress_pages()
167 pg_bytes_left -= bytes; in lzo_compress_pages()
168 buf += bytes; in lzo_compress_pages()
169 out_offset += bytes; in lzo_compress_pages()
272 unsigned long bytes; in lzo_decompress_biovec() local
310 bytes = in_len; in lzo_decompress_biovec()
319 bytes = min(working_bytes, in_page_bytes_left); in lzo_decompress_biovec()
[all …]
Dfree-space-cache.h25 u64 bytes; member
109 u64 offset, u64 bytes, u64 empty_size,
113 u64 bytes);
117 u64 offset, u64 bytes, u64 empty_size);
120 struct btrfs_free_cluster *cluster, u64 bytes,
131 u64 offset, u64 bytes, bool bitmap);
133 u64 offset, u64 bytes);
Dzlib.c349 unsigned long bytes; in zlib_decompress() local
371 bytes = min(PAGE_SIZE - pg_offset, in zlib_decompress()
373 bytes = min(bytes, bytes_left); in zlib_decompress()
376 memcpy(kaddr + pg_offset, workspace->buf + buf_offset, bytes); in zlib_decompress()
379 pg_offset += bytes; in zlib_decompress()
380 bytes_left -= bytes; in zlib_decompress()
Dcompression.c1032 unsigned long bytes; in btrfs_decompress_buf2page() local
1060 bytes = min(PAGE_SIZE - *pg_offset, in btrfs_decompress_buf2page()
1062 bytes = min(bytes, working_bytes); in btrfs_decompress_buf2page()
1064 memcpy(kaddr + *pg_offset, buf + buf_offset, bytes); in btrfs_decompress_buf2page()
1068 *pg_offset += bytes; in btrfs_decompress_buf2page()
1069 buf_offset += bytes; in btrfs_decompress_buf2page()
1070 working_bytes -= bytes; in btrfs_decompress_buf2page()
1071 current_buf_start += bytes; in btrfs_decompress_buf2page()
1126 unsigned long bytes = off + len - pg_offset; in btrfs_clear_biovec_end() local
1130 memset(kaddr + pg_offset, 0, bytes); in btrfs_clear_biovec_end()
/fs/
Diomap.c167 unsigned long bytes; /* Bytes to write to page */ in iomap_write_actor() local
171 bytes = min_t(unsigned long, PAGE_SIZE - offset, in iomap_write_actor()
174 if (bytes > length) in iomap_write_actor()
175 bytes = length; in iomap_write_actor()
187 if (unlikely(iov_iter_fault_in_readable(i, bytes))) { in iomap_write_actor()
192 status = iomap_write_begin(inode, pos, bytes, flags, &page, in iomap_write_actor()
200 copied = iov_iter_copy_from_user_atomic(page, i, offset, bytes); in iomap_write_actor()
204 status = iomap_write_end(inode, pos, bytes, copied, page); in iomap_write_actor()
221 bytes = min_t(unsigned long, PAGE_SIZE - offset, in iomap_write_actor()
281 unsigned long bytes; /* Bytes to write to page */ in iomap_dirty_actor() local
[all …]
Dstat.c447 void __inode_add_bytes(struct inode *inode, loff_t bytes) in __inode_add_bytes() argument
449 inode->i_blocks += bytes >> 9; in __inode_add_bytes()
450 bytes &= 511; in __inode_add_bytes()
451 inode->i_bytes += bytes; in __inode_add_bytes()
459 void inode_add_bytes(struct inode *inode, loff_t bytes) in inode_add_bytes() argument
462 __inode_add_bytes(inode, bytes); in inode_add_bytes()
468 void __inode_sub_bytes(struct inode *inode, loff_t bytes) in __inode_sub_bytes() argument
470 inode->i_blocks -= bytes >> 9; in __inode_sub_bytes()
471 bytes &= 511; in __inode_sub_bytes()
472 if (inode->i_bytes < bytes) { in __inode_sub_bytes()
[all …]
/fs/squashfs/
Dsymlink.c55 int bytes, copied; in squashfs_symlink_readpage() local
66 bytes = squashfs_read_metadata(sb, NULL, &block, &offset, in squashfs_symlink_readpage()
68 if (bytes < 0) { in squashfs_symlink_readpage()
83 for (bytes = 0; bytes < length; offset = 0, bytes += copied) { in squashfs_symlink_readpage()
94 copied = squashfs_copy_data(pageaddr + bytes, entry, offset, in squashfs_symlink_readpage()
95 length - bytes); in squashfs_symlink_readpage()
96 if (copied == length - bytes) in squashfs_symlink_readpage()
Dpage_actor.c80 int bytes = 0, pgoff = 0, b = 0, p = 0, avail, i; in squashfs_bh_to_actor() local
82 while (bytes < length) { in squashfs_bh_to_actor()
85 while (pgoff < PAGE_SIZE && bytes < length) { in squashfs_bh_to_actor()
91 bytes += avail; in squashfs_bh_to_actor()
106 bytes += PAGE_SIZE; in squashfs_bh_to_actor()
115 int i, avail, bytes = 0; in squashfs_bh_to_buf() local
117 for (i = 0; i < nr_buffers && bytes < length; ++i) { in squashfs_bh_to_buf()
118 avail = min_t(int, length - bytes, blksz - offset); in squashfs_bh_to_buf()
120 memcpy(buf + bytes, bh[i]->b_data + offset, avail); in squashfs_bh_to_buf()
123 bytes += avail; in squashfs_bh_to_buf()
Dcache.c307 int bytes = min_t(int, entry->length - offset, in squashfs_copy_data() local
310 if (bytes >= remaining) { in squashfs_copy_data()
317 memcpy(buffer, buff, bytes); in squashfs_copy_data()
319 buffer += bytes; in squashfs_copy_data()
320 remaining -= bytes; in squashfs_copy_data()
321 offset += bytes; in squashfs_copy_data()
338 int bytes, res = length; in squashfs_read_metadata() local
353 bytes = squashfs_copy_data(buffer, entry, *offset, length); in squashfs_read_metadata()
355 buffer += bytes; in squashfs_read_metadata()
356 length -= bytes; in squashfs_read_metadata()
[all …]
Dfile.c376 int bytes, int offset) in squashfs_copy_cache() argument
390 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_copy_cache()
391 bytes -= PAGE_SIZE, offset += PAGE_SIZE) { in squashfs_copy_cache()
393 int avail = buffer ? min_t(int, bytes, PAGE_SIZE) : 0; in squashfs_copy_cache()
395 TRACE("bytes %d, i %d, available_bytes %d\n", bytes, i, avail); in squashfs_copy_cache()
461 int bytes = index == file_end ? in squashfs_readpage_sparse() local
465 squashfs_copy_cache(page, NULL, bytes, 0); in squashfs_readpage_sparse()
/fs/efivarfs/
Dfile.c25 ssize_t bytes; in efivarfs_file_write() local
41 bytes = efivar_entry_set_get_size(var, attributes, &datasize, in efivarfs_file_write()
43 if (!set && bytes) { in efivarfs_file_write()
44 if (bytes == -ENOENT) in efivarfs_file_write()
45 bytes = -EIO; in efivarfs_file_write()
49 if (bytes == -ENOENT) { in efivarfs_file_write()
59 bytes = count; in efivarfs_file_write()
64 return bytes; in efivarfs_file_write()
/fs/qnx4/
Dbitmap.c30 int bytes = min(size - total, QNX4_BLOCK_SIZE); in qnx4_count_free_blocks() local
36 total_free += bytes * BITS_PER_BYTE - in qnx4_count_free_blocks()
37 memweight(bh->b_data, bytes); in qnx4_count_free_blocks()
39 total += bytes; in qnx4_count_free_blocks()
/fs/ocfs2/
Docfs2.h751 u64 bytes) in ocfs2_clusters_for_bytes() argument
756 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes()
758 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
764 u64 bytes) in ocfs2_bytes_to_clusters() argument
769 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
774 u64 bytes) in ocfs2_blocks_for_bytes() argument
776 bytes += sb->s_blocksize - 1; in ocfs2_blocks_for_bytes()
777 return bytes >> sb->s_blocksize_bits; in ocfs2_blocks_for_bytes()
797 u64 bytes) in ocfs2_align_bytes_to_clusters() argument
802 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters()
[all …]
Dslot_map.c228 unsigned long long *bytes) in ocfs2_slot_map_physical_size() argument
245 *bytes = bytes_needed; in ocfs2_slot_map_physical_size()
358 unsigned long long blocks, bytes = 0; in ocfs2_map_slot_buffers() local
362 status = ocfs2_slot_map_physical_size(osb, si->si_inode, &bytes); in ocfs2_map_slot_buffers()
366 blocks = ocfs2_blocks_for_bytes(si->si_inode->i_sb, bytes); in ocfs2_map_slot_buffers()
382 trace_ocfs2_map_slot_buffers(bytes, si->si_blocks); in ocfs2_map_slot_buffers()
/fs/proc/
Dtask_nommu.c23 unsigned long bytes = 0, sbytes = 0, slack = 0, size; in task_mem() local
29 bytes += kobjsize(vma); in task_mem()
43 bytes += size; in task_mem()
52 bytes += kobjsize(mm); in task_mem()
57 bytes += kobjsize(current->fs); in task_mem()
62 bytes += kobjsize(current->files); in task_mem()
67 bytes += kobjsize(current->sighand); in task_mem()
69 bytes += kobjsize(current); /* includes kernel stack */ in task_mem()
75 bytes, slack, sbytes); in task_mem()
/fs/ntfs/
Dfile.c585 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() argument
622 (long long)pos, bytes); in ntfs_prepare_pages_for_non_resident_write()
647 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write()
1401 s64 pos, size_t bytes) in ntfs_commit_pages_after_non_resident_write() argument
1417 end = pos + bytes; in ntfs_commit_pages_after_non_resident_write()
1555 const unsigned nr_pages, s64 pos, size_t bytes) in ntfs_commit_pages_after_write() argument
1579 (long long)pos, bytes); in ntfs_commit_pages_after_write()
1582 nr_pages, pos, bytes); in ntfs_commit_pages_after_write()
1620 end = pos + bytes; in ntfs_commit_pages_after_write()
1626 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
[all …]
/fs/nilfs2/
Drecovery.c156 unsigned int bytes = le16_to_cpu(sr->sr_bytes); in nilfs_read_super_root_block() local
158 if (bytes == 0 || bytes > nilfs->ns_blocksize) { in nilfs_read_super_root_block()
163 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, in nilfs_read_super_root_block()
253 unsigned int *offset, unsigned int bytes) in nilfs_read_summary_info() argument
259 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info()
269 *offset += bytes; in nilfs_read_summary_info()
283 unsigned int *offset, unsigned int bytes, in nilfs_skip_summary_info() argument
287 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info()
290 *offset += bytes * count; in nilfs_skip_summary_info()
293 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info()
[all …]
/fs/nfs/
Ddirect.c407 unsigned long bytes = 0; in nfs_direct_read_completion() local
425 if (!PageCompound(page) && bytes < hdr->good_bytes) in nfs_direct_read_completion()
427 bytes += req->wb_bytes; in nfs_direct_read_completion()
485 size_t bytes; in nfs_direct_read_schedule_iovec() local
494 bytes = result; in nfs_direct_read_schedule_iovec()
495 iov_iter_advance(iter, bytes); in nfs_direct_read_schedule_iovec()
499 unsigned int req_len = min_t(size_t, bytes, PAGE_SIZE - pgbase); in nfs_direct_read_schedule_iovec()
515 bytes -= req_len; in nfs_direct_read_schedule_iovec()
892 size_t bytes; in nfs_direct_write_schedule_iovec() local
901 bytes = result; in nfs_direct_write_schedule_iovec()
[all …]
Dread.c149 unsigned long bytes = 0; in nfs_read_completion() local
163 if (bytes > hdr->good_bytes) { in nfs_read_completion()
168 } else if (hdr->good_bytes - bytes < req->wb_bytes) { in nfs_read_completion()
171 start += hdr->good_bytes - bytes; in nfs_read_completion()
176 bytes += req->wb_bytes; in nfs_read_completion()
178 if (bytes <= hdr->good_bytes) in nfs_read_completion()
/fs/ecryptfs/
Ddebug.c98 void ecryptfs_dump_hex(char *data, int bytes) in ecryptfs_dump_hex() argument
105 if (bytes != 0) { in ecryptfs_dump_hex()
109 while (i < bytes) { in ecryptfs_dump_hex()
/fs/gfs2/
Dfile.c804 loff_t bytes, max_bytes, max_blks = UINT_MAX; in __gfs2_fallocate() local
817 bytes = sdp->sd_max_rg_data * sdp->sd_sb.sb_bsize / 2; in __gfs2_fallocate()
818 if (!bytes) in __gfs2_fallocate()
819 bytes = UINT_MAX; in __gfs2_fallocate()
820 bytes &= bsize_mask; in __gfs2_fallocate()
821 if (bytes == 0) in __gfs2_fallocate()
822 bytes = sdp->sd_sb.sb_bsize; in __gfs2_fallocate()
830 if (len < bytes) in __gfs2_fallocate()
831 bytes = len; in __gfs2_fallocate()
832 if (!gfs2_write_alloc_required(ip, offset, bytes)) { in __gfs2_fallocate()
[all …]
/fs/overlayfs/
Dcopy_up.c159 long bytes; in ovl_copy_up_data() local
169 bytes = do_splice_direct(old_file, &old_pos, in ovl_copy_up_data()
172 if (bytes <= 0) { in ovl_copy_up_data()
173 error = bytes; in ovl_copy_up_data()
178 len -= bytes; in ovl_copy_up_data()
/fs/xfs/
Dxfs_log_priv.h450 xlog_write_adv_cnt(void **ptr, int *len, int *off, size_t bytes) in xlog_write_adv_cnt() argument
452 *ptr += bytes; in xlog_write_adv_cnt()
453 *len -= bytes; in xlog_write_adv_cnt()
454 *off += bytes; in xlog_write_adv_cnt()
Dxfs_sysfs.c295 int bytes; in reserve_grant_head_show() local
298 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
299 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
309 int bytes; in write_grant_head_show() local
312 xlog_crack_grant_head(&log->l_write_head.grant, &cycle, &bytes); in write_grant_head_show()
313 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in write_grant_head_show()

1234