/fs/btrfs/ |
D | free-space-cache.c | 47 static int tree_insert_bytes(struct rb_root *root, u64 bytes, in tree_insert_bytes() argument 58 if (bytes < info->bytes) in tree_insert_bytes() 77 u64 offset, u64 bytes, in tree_search_offset() argument 89 (bytes <= entry->bytes)) in tree_search_offset() 93 if ((entry->offset + entry->bytes - 1) >= offset && in tree_search_offset() 94 bytes <= entry->bytes) { in tree_search_offset() 100 if (bytes > entry->bytes) { in tree_search_offset() 116 u64 offset, u64 bytes) in tree_search_bytes() argument 124 if (bytes < entry->bytes) { in tree_search_bytes() 135 else if (entry->bytes < ret->bytes) in tree_search_bytes() [all …]
|
D | zlib.c | 361 unsigned long bytes; in btrfs_zlib_decompress_biovec() local 448 bytes = min(PAGE_CACHE_SIZE - pg_offset, in btrfs_zlib_decompress_biovec() 450 bytes = min(bytes, working_bytes); in btrfs_zlib_decompress_biovec() 453 bytes); in btrfs_zlib_decompress_biovec() 457 pg_offset += bytes; in btrfs_zlib_decompress_biovec() 458 page_bytes_left -= bytes; in btrfs_zlib_decompress_biovec() 459 buf_offset += bytes; in btrfs_zlib_decompress_biovec() 460 working_bytes -= bytes; in btrfs_zlib_decompress_biovec() 461 current_buf_start += bytes; in btrfs_zlib_decompress_biovec() 580 unsigned long bytes; in btrfs_zlib_decompress() local [all …]
|
/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 | block.c | 89 int bytes, compressed, b = 0, k = 0, page = 0, avail; in squashfs_read_data() local 101 bytes = -offset; in squashfs_read_data() 114 for (b = 0; bytes < length; b++, cur_index++) { in squashfs_read_data() 118 bytes += msblk->devblksize; in squashfs_read_data() 133 bytes = msblk->devblksize - offset; in squashfs_read_data() 146 for (; bytes < length; b++) { in squashfs_read_data() 150 bytes += msblk->devblksize; in squashfs_read_data() 167 bytes = length; in squashfs_read_data() 170 avail = min(bytes, msblk->devblksize - offset); in squashfs_read_data() 171 bytes -= avail; in squashfs_read_data() [all …]
|
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() 316 memcpy(buffer, buff, bytes); in squashfs_copy_data() 317 buffer += bytes; in squashfs_copy_data() 318 remaining -= bytes; in squashfs_copy_data() 319 offset += bytes; in squashfs_copy_data() 336 int bytes, copied = length; in squashfs_read_metadata() local 348 bytes = squashfs_copy_data(buffer, entry, *offset, length); in squashfs_read_metadata() 350 buffer += bytes; in squashfs_read_metadata() 351 length -= bytes; in squashfs_read_metadata() [all …]
|
D | file.c | 379 int bytes, i, offset = 0, sparse = 0; in squashfs_readpage() local 408 bytes = index == file_end ? in squashfs_readpage() 424 bytes = buffer->length; in squashfs_readpage() 442 bytes = i_size_read(inode) & (msblk->block_size - 1); in squashfs_readpage() 452 for (i = start_index; i <= end_index && bytes > 0; i++, in squashfs_readpage() 453 bytes -= PAGE_CACHE_SIZE, offset += PAGE_CACHE_SIZE) { in squashfs_readpage() 455 int avail = sparse ? 0 : min_t(int, bytes, PAGE_CACHE_SIZE); in squashfs_readpage() 457 TRACE("bytes %d, i %d, available_bytes %d\n", bytes, i, avail); in squashfs_readpage()
|
/fs/ntfs/ |
D | file.c | 358 int bytes) in ntfs_fault_in_pages_readable() argument 364 end = (const char __user*)PAGE_ALIGN((unsigned long)uaddr + bytes); in ntfs_fault_in_pages_readable() 376 size_t iov_ofs, int bytes) in ntfs_fault_in_pages_readable_iovec() argument 384 if (len > bytes) in ntfs_fault_in_pages_readable_iovec() 385 len = bytes; in ntfs_fault_in_pages_readable_iovec() 387 bytes -= len; in ntfs_fault_in_pages_readable_iovec() 390 } while (bytes); in ntfs_fault_in_pages_readable_iovec() 492 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() argument 529 (long long)pos, bytes); in ntfs_prepare_pages_for_non_resident_write() 554 end = pos + bytes; in ntfs_prepare_pages_for_non_resident_write() [all …]
|
/fs/nfs/ |
D | direct.c | 299 size_t bytes; in nfs_direct_read_schedule_segment() local 302 bytes = min(rsize,count); in nfs_direct_read_schedule_segment() 305 data = nfs_readdata_alloc(nfs_page_array_len(pgbase, bytes)); in nfs_direct_read_schedule_segment() 318 bytes = result * PAGE_SIZE; in nfs_direct_read_schedule_segment() 319 if (bytes <= pgbase) { in nfs_direct_read_schedule_segment() 324 bytes -= pgbase; in nfs_direct_read_schedule_segment() 338 data->args.count = bytes; in nfs_direct_read_schedule_segment() 341 data->res.count = bytes; in nfs_direct_read_schedule_segment() 359 bytes, in nfs_direct_read_schedule_segment() 362 started += bytes; in nfs_direct_read_schedule_segment() [all …]
|
D | iostat.h | 18 unsigned long long bytes[__NFSIOS_BYTESMAX]; member 49 iostats->bytes[stat] += addend; in nfs_add_server_stats()
|
/fs/ocfs2/ |
D | ocfs2.h | 510 u64 bytes) in ocfs2_clusters_for_bytes() argument 515 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes() 517 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes() 523 u64 bytes) in ocfs2_blocks_for_bytes() argument 525 bytes += sb->s_blocksize - 1; in ocfs2_blocks_for_bytes() 526 return bytes >> sb->s_blocksize_bits; in ocfs2_blocks_for_bytes() 536 u64 bytes) in ocfs2_align_bytes_to_clusters() argument 541 clusters = ocfs2_clusters_for_bytes(sb, bytes); in ocfs2_align_bytes_to_clusters() 546 u64 bytes) in ocfs2_align_bytes_to_blocks() argument 550 blocks = ocfs2_blocks_for_bytes(sb, bytes); in ocfs2_align_bytes_to_blocks() [all …]
|
D | slot_map.c | 229 unsigned long long *bytes) in ocfs2_slot_map_physical_size() argument 246 *bytes = bytes_needed; in ocfs2_slot_map_physical_size() 360 unsigned long long blocks, bytes; in ocfs2_map_slot_buffers() local 364 status = ocfs2_slot_map_physical_size(osb, si->si_inode, &bytes); in ocfs2_map_slot_buffers() 368 blocks = ocfs2_blocks_for_bytes(si->si_inode->i_sb, bytes); in ocfs2_map_slot_buffers() 385 si->si_blocks, bytes); in ocfs2_map_slot_buffers()
|
/fs/proc/ |
D | task_nommu.c | 21 unsigned long bytes = 0, sbytes = 0, slack = 0, size; in task_mem() local 27 bytes += kobjsize(vma); in task_mem() 41 bytes += size; in task_mem() 50 bytes += kobjsize(mm); in task_mem() 55 bytes += kobjsize(current->fs); in task_mem() 60 bytes += kobjsize(current->files); in task_mem() 65 bytes += kobjsize(current->sighand); in task_mem() 67 bytes += kobjsize(current); /* includes kernel stack */ in task_mem() 73 bytes, slack, sbytes); in task_mem()
|
/fs/ |
D | bio.c | 712 unsigned int bytes; in __bio_copy_iov() local 715 bytes = min_t(unsigned int, in __bio_copy_iov() 722 bytes); in __bio_copy_iov() 725 bytes); in __bio_copy_iov() 731 bv_len -= bytes; in __bio_copy_iov() 732 bv_addr += bytes; in __bio_copy_iov() 733 iov_addr += bytes; in __bio_copy_iov() 734 iov_off += bytes; in __bio_copy_iov() 827 unsigned int bytes = PAGE_SIZE; in bio_copy_user_iov() local 829 bytes -= offset; in bio_copy_user_iov() [all …]
|
D | stat.c | 425 void inode_add_bytes(struct inode *inode, loff_t bytes) in inode_add_bytes() argument 428 inode->i_blocks += bytes >> 9; in inode_add_bytes() 429 bytes &= 511; in inode_add_bytes() 430 inode->i_bytes += bytes; in inode_add_bytes() 440 void inode_sub_bytes(struct inode *inode, loff_t bytes) in inode_sub_bytes() argument 443 inode->i_blocks -= bytes >> 9; in inode_sub_bytes() 444 bytes &= 511; in inode_sub_bytes() 445 if (inode->i_bytes < bytes) { in inode_sub_bytes() 449 inode->i_bytes -= bytes; in inode_sub_bytes() 467 void inode_set_bytes(struct inode *inode, loff_t bytes) in inode_set_bytes() argument [all …]
|
D | bio-integrity.c | 361 unsigned int bytes, offset, i; in bio_integrity_prep() local 399 bytes = PAGE_SIZE - offset; in bio_integrity_prep() 404 if (bytes > len) in bio_integrity_prep() 405 bytes = len; in bio_integrity_prep() 408 bytes, offset); in bio_integrity_prep() 413 if (ret < bytes) in bio_integrity_prep() 416 buf += bytes; in bio_integrity_prep() 417 len -= bytes; in bio_integrity_prep()
|
/fs/autofs/ |
D | waitq.c | 48 static int autofs_write(struct file *file, const void *addr, int bytes) in autofs_write() argument 63 while (bytes && in autofs_write() 64 (wr = file->f_op->write(file,data,bytes,&file->f_pos)) > 0) { in autofs_write() 66 bytes -= wr; in autofs_write() 80 return (bytes > 0); in autofs_write()
|
/fs/sysfs/ |
D | bin.c | 57 read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off) in read() argument 63 int count = min_t(size_t, bytes, PAGE_SIZE); in read() 66 if (!bytes) in read() 128 size_t bytes, loff_t *off) in write() argument 134 int count = min_t(size_t, bytes, PAGE_SIZE); in write() 137 if (!bytes) in write()
|
/fs/cifs/ |
D | cifsglob.h | 398 unsigned int bytes) in cifs_stats_bytes_written() argument 400 if (bytes) { in cifs_stats_bytes_written() 402 tcon->bytes_written += bytes; in cifs_stats_bytes_written() 408 unsigned int bytes) in cifs_stats_bytes_read() argument 411 tcon->bytes_read += bytes; in cifs_stats_bytes_read() 417 #define cifs_stats_bytes_written(tcon, bytes) do {} while (0) argument 418 #define cifs_stats_bytes_read(tcon, bytes) do {} while (0) argument
|
/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/xfs/linux-2.6/ |
D | xfs_lrw.c | 141 unsigned offset, bytes; in xfs_iozero() local 145 bytes = PAGE_CACHE_SIZE - offset; in xfs_iozero() 146 if (bytes > count) in xfs_iozero() 147 bytes = count; in xfs_iozero() 149 status = pagecache_write_begin(NULL, mapping, pos, bytes, in xfs_iozero() 155 zero_user(page, offset, bytes); in xfs_iozero() 157 status = pagecache_write_end(NULL, mapping, pos, bytes, bytes, in xfs_iozero() 160 pos += bytes; in xfs_iozero() 161 count -= bytes; in xfs_iozero()
|
/fs/xfs/ |
D | xfs_log.c | 46 #define xlog_write_adv_cnt(ptr, len, off, bytes) \ argument 47 { (ptr) += (bytes); \ 48 (len) -= (bytes); \ 49 (off) += (bytes);} 59 STATIC int xlog_space_left(xlog_t *log, int cycle, int bytes); 237 xlog_grant_sub_space(struct log *log, int bytes) in xlog_grant_sub_space() argument 239 log->l_grant_write_bytes -= bytes; in xlog_grant_sub_space() 245 log->l_grant_reserve_bytes -= bytes; in xlog_grant_sub_space() 254 xlog_grant_add_space_write(struct log *log, int bytes) in xlog_grant_add_space_write() argument 257 if (tmp > bytes) in xlog_grant_add_space_write() [all …]
|
D | xfs_fs.h | 487 #define BTOBB(bytes) (((__u64)(bytes) + BBSIZE - 1) >> BBSHIFT) argument 488 #define BTOBBT(bytes) ((__u64)(bytes) >> BBSHIFT) argument
|
/fs/cramfs/ |
D | README | 23 null-padded to a multiple of 4 bytes. 44 padding to multiple of 4 bytes 68 blocks in uncompressed data consisting entirely of NUL bytes), but by 126 1. Always 4096 bytes. 166 its current 12 bytes. Inodes other than the root inode are followed 168 bytes.
|
/fs/reiserfs/ |
D | item_ops.c | 170 int bytes; in direct_check_left() local 172 bytes = free - free % 8; in direct_check_left() 173 return bytes ? : -1; in direct_check_left() 311 int bytes; in indirect_check_left() local 313 bytes = free - free % UNFM_P_SIZE; in indirect_check_left() 314 return bytes ? : -1; in indirect_check_left()
|
/fs/autofs4/ |
D | waitq.c | 59 static int autofs4_write(struct file *file, const void *addr, int bytes) in autofs4_write() argument 74 while (bytes && in autofs4_write() 75 (wr = file->f_op->write(file,data,bytes,&file->f_pos)) > 0) { in autofs4_write() 77 bytes -= wr; in autofs4_write() 91 return (bytes > 0); in autofs4_write()
|