/fs/btrfs/ |
D | free-space-cache.c | 478 static int io_ctl_add_entry(struct io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry() argument 488 entry->bytes = cpu_to_le64(bytes); in io_ctl_add_entry() 562 entry->bytes = le64_to_cpu(e->bytes); in io_ctl_read_entry() 612 if (prev->offset + prev->bytes == e->offset) { in merge_space_tree() 615 prev->bytes += e->bytes; in merge_space_tree() 716 if (!e->bytes) { in __load_free_space_cache() 934 ret = io_ctl_add_entry(&io_ctl, e->offset, e->bytes, in __btrfs_write_out_cache() 1125 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) in bytes_to_bits() argument 1127 return (unsigned long)(div_u64(bytes, unit)); in bytes_to_bits() 1258 prev->offset + prev->bytes > offset) in tree_search_offset() [all …]
|
D | lzo.c | 113 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() 271 unsigned long bytes; in lzo_decompress_biovec() local 309 bytes = in_len; in lzo_decompress_biovec() 318 bytes = min(working_bytes, in_page_bytes_left); in lzo_decompress_biovec() [all …]
|
D | free-space-cache.h | 25 u64 bytes; member 97 u64 offset, u64 bytes, u64 empty_size); 100 u64 bytes); 105 u64 offset, u64 bytes, u64 empty_size); 108 struct btrfs_free_cluster *cluster, u64 bytes,
|
D | zlib.c | 346 unsigned long bytes; in zlib_decompress() local 369 bytes = min(PAGE_CACHE_SIZE - pg_offset, in zlib_decompress() 371 bytes = min(bytes, bytes_left); in zlib_decompress() 374 memcpy(kaddr + pg_offset, workspace->buf + buf_offset, bytes); in zlib_decompress() 377 pg_offset += bytes; in zlib_decompress() 378 bytes_left -= bytes; in zlib_decompress()
|
D | compression.c | 979 unsigned long bytes; in btrfs_decompress_buf2page() local 1007 bytes = min(PAGE_CACHE_SIZE - *pg_offset, in btrfs_decompress_buf2page() 1009 bytes = min(bytes, working_bytes); in btrfs_decompress_buf2page() 1011 memcpy(kaddr + *pg_offset, buf + buf_offset, bytes); in btrfs_decompress_buf2page() 1015 *pg_offset += bytes; in btrfs_decompress_buf2page() 1016 buf_offset += bytes; in btrfs_decompress_buf2page() 1017 working_bytes -= bytes; in btrfs_decompress_buf2page() 1018 current_buf_start += bytes; in btrfs_decompress_buf2page()
|
/fs/squashfs/ |
D | symlink.c | 55 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()
|
D | page_actor.c | 80 int bytes = 0, pgoff = 0, b = 0, p = 0, i, avail; 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()
|
D | cache.c | 307 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 …]
|
D | file.c | 378 int bytes, int offset) in squashfs_copy_cache() argument 392 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_copy_cache() 393 bytes -= PAGE_CACHE_SIZE, offset += PAGE_CACHE_SIZE) { in squashfs_copy_cache() 395 int avail = buffer ? min_t(int, bytes, PAGE_CACHE_SIZE) : 0; in squashfs_copy_cache() 397 TRACE("bytes %d, i %d, available_bytes %d\n", bytes, i, avail); in squashfs_copy_cache() 463 int bytes = index == file_end ? in squashfs_readpage_sparse() local 467 squashfs_copy_cache(page, NULL, bytes, 0); in squashfs_readpage_sparse()
|
/fs/efivarfs/ |
D | file.c | 24 ssize_t bytes = 0; in efivarfs_file_write() local 41 bytes = -EFAULT; in efivarfs_file_write() 45 bytes = efivar_entry_set_get_size(var, attributes, &datasize, in efivarfs_file_write() 47 if (!set && bytes) { in efivarfs_file_write() 48 if (bytes == -ENOENT) in efivarfs_file_write() 49 bytes = -EIO; in efivarfs_file_write() 53 if (bytes == -ENOENT) { in efivarfs_file_write() 63 bytes = count; in efivarfs_file_write() 68 return bytes; in efivarfs_file_write()
|
/fs/ntfs/ |
D | file.c | 356 int bytes) in ntfs_fault_in_pages_readable() argument 362 end = (const char __user*)PAGE_ALIGN((unsigned long)uaddr + bytes); in ntfs_fault_in_pages_readable() 374 size_t iov_ofs, int bytes) in ntfs_fault_in_pages_readable_iovec() argument 382 if (len > bytes) in ntfs_fault_in_pages_readable_iovec() 383 len = bytes; in ntfs_fault_in_pages_readable_iovec() 385 bytes -= len; in ntfs_fault_in_pages_readable_iovec() 388 } while (bytes); in ntfs_fault_in_pages_readable_iovec() 482 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() argument 519 (long long)pos, bytes); in ntfs_prepare_pages_for_non_resident_write() 544 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write() [all …]
|
/fs/ |
D | bio.c | 805 void bio_advance(struct bio *bio, unsigned bytes) in bio_advance() argument 808 bio_integrity_advance(bio, bytes); in bio_advance() 810 bio->bi_sector += bytes >> 9; in bio_advance() 811 bio->bi_size -= bytes; in bio_advance() 816 while (bytes) { in bio_advance() 823 if (bytes >= bio_iovec(bio)->bv_len) { in bio_advance() 824 bytes -= bio_iovec(bio)->bv_len; in bio_advance() 827 bio_iovec(bio)->bv_len -= bytes; in bio_advance() 828 bio_iovec(bio)->bv_offset += bytes; in bio_advance() 829 bytes = 0; in bio_advance() [all …]
|
D | stat.c | 430 void __inode_add_bytes(struct inode *inode, loff_t bytes) in __inode_add_bytes() argument 432 inode->i_blocks += bytes >> 9; in __inode_add_bytes() 433 bytes &= 511; in __inode_add_bytes() 434 inode->i_bytes += bytes; in __inode_add_bytes() 441 void inode_add_bytes(struct inode *inode, loff_t bytes) in inode_add_bytes() argument 444 __inode_add_bytes(inode, bytes); in inode_add_bytes() 450 void inode_sub_bytes(struct inode *inode, loff_t bytes) in inode_sub_bytes() argument 453 inode->i_blocks -= bytes >> 9; in inode_sub_bytes() 454 bytes &= 511; in inode_sub_bytes() 455 if (inode->i_bytes < bytes) { in inode_sub_bytes() [all …]
|
D | bio-integrity.c | 357 unsigned int bytes, offset, i; in bio_integrity_prep() local 396 bytes = PAGE_SIZE - offset; in bio_integrity_prep() 401 if (bytes > len) in bio_integrity_prep() 402 bytes = len; in bio_integrity_prep() 405 bytes, offset); in bio_integrity_prep() 410 if (ret < bytes) in bio_integrity_prep() 413 buf += bytes; in bio_integrity_prep() 414 len -= bytes; in bio_integrity_prep()
|
/fs/qnx4/ |
D | bitmap.c | 30 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/proc/ |
D | task_nommu.c | 23 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/nfs/ |
D | direct.c | 252 unsigned long bytes = 0; in nfs_direct_read_completion() local 269 if (!PageCompound(page) && bytes < hdr->good_bytes) in nfs_direct_read_completion() 271 bytes += req->wb_bytes; in nfs_direct_read_completion() 327 size_t bytes; in nfs_direct_read_schedule_segment() local 331 bytes = min(max_t(size_t, rsize, PAGE_SIZE), count); in nfs_direct_read_schedule_segment() 334 npages = nfs_page_array_len(pgbase, bytes); in nfs_direct_read_schedule_segment() 355 bytes = result * PAGE_SIZE; in nfs_direct_read_schedule_segment() 356 if (bytes <= pgbase) { in nfs_direct_read_schedule_segment() 360 bytes -= pgbase; in nfs_direct_read_schedule_segment() 366 unsigned int req_len = min_t(size_t, bytes, PAGE_SIZE - pgbase); in nfs_direct_read_schedule_segment() [all …]
|
D | iostat.h | 18 unsigned long long bytes[__NFSIOS_BYTESMAX]; member 41 this_cpu_add(server->io_stats->bytes[stat], addend); in nfs_add_server_stats()
|
/fs/gfs2/ |
D | file.c | 786 loff_t bytes, max_bytes; in gfs2_fallocate() local 802 bytes = sdp->sd_max_rg_data * sdp->sd_sb.sb_bsize / 2; in gfs2_fallocate() 803 if (!bytes) in gfs2_fallocate() 804 bytes = UINT_MAX; in gfs2_fallocate() 805 bytes &= bsize_mask; in gfs2_fallocate() 806 if (bytes == 0) in gfs2_fallocate() 807 bytes = sdp->sd_sb.sb_bsize; in gfs2_fallocate() 821 if (len < bytes) in gfs2_fallocate() 822 bytes = len; in gfs2_fallocate() 823 if (!gfs2_write_alloc_required(ip, offset, bytes)) { in gfs2_fallocate() [all …]
|
/fs/ocfs2/ |
D | ocfs2.h | 721 u64 bytes) in ocfs2_clusters_for_bytes() argument 726 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes() 728 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes() 734 u64 bytes) in ocfs2_blocks_for_bytes() argument 736 bytes += sb->s_blocksize - 1; in ocfs2_blocks_for_bytes() 737 return bytes >> sb->s_blocksize_bits; in ocfs2_blocks_for_bytes() 757 u64 bytes) in ocfs2_align_bytes_to_clusters() argument 762 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters() 767 u64 bytes) in ocfs2_align_bytes_to_blocks() argument 771 blocks = ocfs2_blocks_for_bytes(sb, bytes); in ocfs2_align_bytes_to_blocks() [all …]
|
D | slot_map.c | 228 unsigned long long *bytes) in ocfs2_slot_map_physical_size() argument 245 *bytes = bytes_needed; in ocfs2_slot_map_physical_size() 359 unsigned long long blocks, bytes = 0; in ocfs2_map_slot_buffers() local 363 status = ocfs2_slot_map_physical_size(osb, si->si_inode, &bytes); in ocfs2_map_slot_buffers() 367 blocks = ocfs2_blocks_for_bytes(si->si_inode->i_sb, bytes); in ocfs2_map_slot_buffers() 383 trace_ocfs2_map_slot_buffers(bytes, si->si_blocks); in ocfs2_map_slot_buffers()
|
/fs/nilfs2/ |
D | recovery.c | 159 unsigned bytes = le16_to_cpu(sr->sr_bytes); in nilfs_read_super_root_block() local 161 if (bytes == 0 || bytes > nilfs->ns_blocksize) { in nilfs_read_super_root_block() 166 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, in nilfs_read_super_root_block() 256 unsigned int *offset, unsigned int bytes) in nilfs_read_summary_info() argument 262 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info() 272 *offset += bytes; in nilfs_read_summary_info() 286 unsigned int *offset, unsigned int bytes, in nilfs_skip_summary_info() argument 290 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info() 293 *offset += bytes * count; in nilfs_skip_summary_info() 296 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info() [all …]
|
/fs/ecryptfs/ |
D | debug.c | 98 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/sysfs/ |
D | bin.c | 70 read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off) in read() argument 75 int count = min_t(size_t, bytes, PAGE_SIZE); in read() 78 if (!bytes) in read() 140 size_t bytes, loff_t *off) in write() argument 145 int count = min_t(size_t, bytes, PAGE_SIZE); in write() 148 if (!bytes) in write()
|
/fs/cifs/ |
D | cifsglob.h | 972 unsigned int bytes; member 998 unsigned int bytes; member 1086 unsigned int bytes) in cifs_stats_bytes_written() argument 1088 if (bytes) { in cifs_stats_bytes_written() 1090 tcon->bytes_written += bytes; in cifs_stats_bytes_written() 1096 unsigned int bytes) in cifs_stats_bytes_read() argument 1099 tcon->bytes_read += bytes; in cifs_stats_bytes_read() 1105 #define cifs_stats_bytes_written(tcon, bytes) do {} while (0) argument 1106 #define cifs_stats_bytes_read(tcon, bytes) do {} while (0) argument
|