| /fs/ |
| A D | eventfd.c | 41 __u64 count; member 74 ctx->count++; in eventfd_signal_mask() 122 u64 count; in eventfd_poll() local 164 count = READ_ONCE(ctx->count); in eventfd_poll() 166 if (count > 0) in eventfd_poll() 180 *cnt = ((ctx->flags & EFD_SEMAPHORE) && ctx->count) ? 1 : ctx->count; in eventfd_ctx_do_read() 181 ctx->count -= *cnt; in eventfd_ctx_do_read() 223 if (!ctx->count) { in eventfd_read() 271 ctx->count += ucnt; in eventfd_write() 289 cnt = ctx->count; in eventfd_show_fdinfo() [all …]
|
| A D | seq_file.c | 30 m->count = m->size; in seq_set_overflow() 116 m->count = 0; in traverse() 127 m->count = 0; in traverse() 137 m->count = 0; in traverse() 190 m->count = 0; in seq_read_iter() 201 m->count = 0; in seq_read_iter() 215 if (m->count) { in seq_read_iter() 217 m->count -= n; in seq_read_iter() 244 m->count = 0; in seq_read_iter() 252 m->count = 0; in seq_read_iter() [all …]
|
| A D | read_write.c | 567 count = MAX_RW_COUNT; in vfs_read() 747 size_t, count) in SYSCALL_DEFINE3() argument 1351 count = max - pos; in do_sendfile() 1371 count, fl); in do_sendfile() 1523 if (pos_in + count < pos_in || pos_out + count < pos_out) in generic_copy_file_checks() 1529 count = 0; in generic_copy_file_checks() 1531 count = min(count, size_in - (uint64_t)pos_in); in generic_copy_file_checks() 1543 *req_count = count; in generic_copy_file_checks() 1716 *count = min(*count, limit - pos); in generic_write_check_limits() 1725 *count = min(*count, max_size - pos); in generic_write_check_limits() [all …]
|
| A D | readdir.c | 278 if (reclen > ctx->count) in filldir() 303 ctx->count -= reclen; in filldir() 318 .ctx.count = count, in SYSCALL_DEFINE3() 336 error = count - buf.ctx.count; in SYSCALL_DEFINE3() 366 if (reclen > ctx->count) in filldir64() 386 ctx->count -= reclen; in filldir64() 402 .ctx.count = count, in SYSCALL_DEFINE3() 421 error = count - buf.ctx.count; in SYSCALL_DEFINE3() 556 ctx->count -= reclen; in compat_filldir() 571 .ctx.count = count, in COMPAT_SYSCALL_DEFINE3() [all …]
|
| /fs/xfs/scrub/ |
| A D | xfile.c | 110 size_t count, in xfile_load() argument 116 if (count > MAX_RW_COUNT) in xfile_load() 124 while (count > 0) { in xfile_load() 154 count -= len; in xfile_load() 160 if (count) in xfile_load() 173 size_t count, in xfile_store() argument 179 if (count > MAX_RW_COUNT) in xfile_store() 194 while (count > 0) { in xfile_store() 216 count -= len; in xfile_store() 222 if (count) in xfile_store() [all …]
|
| /fs/hfs/ |
| A D | extent.c | 77 u16 count; in hfs_ext_find_block() local 80 count = be16_to_cpu(ext->count); in hfs_ext_find_block() 83 off -= count; in hfs_ext_find_block() 92 u16 count = 0; in hfs_ext_block_count() local 95 count += be16_to_cpu(ext->count); in hfs_ext_block_count() 96 return count; in hfs_ext_block_count() 105 if (ext->count) in hfs_ext_lastblock() 228 count = be16_to_cpu(extent->count); in hfs_add_extent() 256 count = be16_to_cpu(extent->count); in hfs_free_extents() 276 extent->count = cpu_to_be16(count); in hfs_free_extents() [all …]
|
| A D | bitmap.c | 200 if (!count) in hfs_clear_vbm_bits() 203 hfs_dbg(BITMAP, "clear_bits: %u,%u\n", start, count); in hfs_clear_vbm_bits() 205 if ((start + count) > HFS_SB(sb)->fs_ablocks) in hfs_clear_vbm_bits() 211 len = count; in hfs_clear_vbm_bits() 218 if (j > count) { in hfs_clear_vbm_bits() 219 mask |= 0xffffffffU >> (i + count); in hfs_clear_vbm_bits() 224 count -= j; in hfs_clear_vbm_bits() 228 while (count >= 32) { in hfs_clear_vbm_bits() 230 count -= 32; in hfs_clear_vbm_bits() 233 if (count) { in hfs_clear_vbm_bits() [all …]
|
| /fs/ufs/ |
| A D | balloc.c | 97 end_bit = bit + count; in ufs_free_fragments() 176 end_bit = bit + count; in ufs_free_blocks() 179 count -= overflow; in ufs_free_blocks() 207 fragment += count; in ufs_free_blocks() 208 count = overflow; in ufs_free_blocks() 255 end = count + beg; in ufs_change_blocknr() 436 fragment + count); in ufs_new_fragments() 469 fragment + count); in ufs_new_fragments() 548 if (fragsize != count) in ufs_add_fragments() 674 if (count != allocsize) in ufs_alloc_fragments() [all …]
|
| A D | util.c | 24 u64 count = 0; in _ubh_bread_() local 27 count = size >> uspi->s_fshift; in _ubh_bread_() 28 if (count > UFS_MAXFRAG) in _ubh_bread_() 34 ubh->count = count; in _ubh_bread_() 35 for (i = 0; i < count; i++) in _ubh_bread_() 52 u64 count = 0; in ubh_bread_uspi() local 55 count = size >> uspi->s_fshift; in ubh_bread_uspi() 56 if (count <= 0 || count > UFS_MAXFRAG) in ubh_bread_uspi() 59 USPI_UBH(uspi)->count = count; in ubh_bread_uspi() 60 for (i = 0; i < count; i++) in ubh_bread_uspi() [all …]
|
| /fs/xfs/libxfs/ |
| A D | xfs_attr_leaf.c | 169 to->count = be16_to_cpu(hdr3->count); in xfs_attr3_leaf_hdr_from_disk() 1778 if (count < ichdr1.count) { in xfs_attr3_leaf_rebalance() 1783 count = ichdr1.count - count; in xfs_attr3_leaf_rebalance() 1799 ichdr1.count - count, leaf2, &ichdr2, 0, count); in xfs_attr3_leaf_rebalance() 1812 count -= ichdr1.count; in xfs_attr3_leaf_rebalance() 1828 ichdr1.count, count); in xfs_attr3_leaf_rebalance() 1933 for (count = index = 0; count < max; entry++, index++, count++) { in xfs_attr3_leaf_figure_balance() 1952 if (count == ichdr1->count) { in xfs_attr3_leaf_figure_balance() 2086 ((ichdr.count + ichdr2.count) * in xfs_attr3_leaf_toosmall() 2604 ASSERT(count <= ichdr_s->count); in xfs_attr3_leaf_moveents() [all …]
|
| A D | xfs_da_btree.c | 973 count = (nodehdr1.count - nodehdr2.count) / 2; in xfs_da3_node_rebalance() 996 nodehdr2.count += count; in xfs_da3_node_rebalance() 1001 nodehdr1.count -= count; in xfs_da3_node_rebalance() 1007 count = -count; in xfs_da3_node_rebalance() 1012 nodehdr1.count += count; in xfs_da3_node_rebalance() 1020 tmp = nodehdr2.count - count; in xfs_da3_node_rebalance() 1025 nodehdr2.count -= count; in xfs_da3_node_rebalance() 1375 count -= nodehdr.count; in xfs_da3_node_toosmall() 1403 if (count - thdr.count >= 0) in xfs_da3_node_toosmall() 1446 *count = nodehdr.count; in xfs_da3_node_lasthash() [all …]
|
| A D | xfs_dir2_node.c | 622 *count = leafhdr.count; in xfs_dir2_leaf_lasthash() 990 count + dhdr->count - 1); in xfs_dir3_leafn_moveents() 1027 shdr->count -= count; in xfs_dir3_leafn_moveents() 1029 dhdr->count += count; in xfs_dir3_leafn_moveents() 1108 oldsum = hdr1.count + hdr2.count; in xfs_dir2_leafn_rebalance() 1141 hdr1.count - count, blk2->bp, in xfs_dir2_leafn_rebalance() 1146 hdr1.count, count); in xfs_dir2_leafn_rebalance() 1163 if (hdr1.count < hdr2.count) in xfs_dir2_leafn_rebalance() 1165 else if (hdr1.count > hdr2.count) in xfs_dir2_leafn_rebalance() 1584 count += hdr2.count - hdr2.stale; in xfs_dir2_leafn_toosmall() [all …]
|
| /fs/afs/ |
| A D | vlclient.c | 200 count = ntohl(*bp); in afs_deliver_vl_get_addrs_u() 208 call->count = count; in afs_deliver_vl_get_addrs_u() 213 count = min(call->count, 4U); in afs_deliver_vl_get_addrs_u() 224 count = min(call->count, 4U); in afs_deliver_vl_get_addrs_u() 233 call->count -= count; in afs_deliver_vl_get_addrs_u() 234 if (call->count > 0) in afs_deliver_vl_get_addrs_u() 319 u32 count; in afs_deliver_vl_get_capabilities() local 337 call->count = count; in afs_deliver_vl_get_capabilities() 524 call->count--; in afs_deliver_yfsvl_get_endpoints() 531 if (!call->count) in afs_deliver_yfsvl_get_endpoints() [all …]
|
| /fs/ntfs3/ |
| A D | bitmap.c | 260 wnd->count -= 1; in wnd_add_free_ext() 279 wnd->count -= 1; in wnd_add_free_ext() 336 wnd->count -= 1; in wnd_add_free_ext() 348 e->count.key = len; in wnd_add_free_ext() 354 wnd->count += 1; in wnd_add_free_ext() 379 len = e->count.key; in wnd_remove_free_ext() 414 wnd->count -= 1; in wnd_remove_free_ext() 421 n3 ? rb_entry(n3, struct e_node, count.node)->count.key : in wnd_remove_free_ext() 450 wnd->count -= 1; in wnd_remove_free_ext() 474 wnd->count -= 1; in wnd_remove_free_ext() [all …]
|
| /fs/udf/ |
| A D | balloc.c | 64 count = min(count, max_bits); in read_block_bitmap() 165 block += count; in udf_bitmap_free_blocks() 166 count = overflow; in udf_bitmap_free_blocks() 387 while (count) { in udf_table_free_blocks() 399 count -= tmp; in udf_table_free_blocks() 407 start += count; in udf_table_free_blocks() 408 count = 0; in udf_table_free_blocks() 416 count -= tmp; in udf_table_free_blocks() 426 end -= count; in udf_table_free_blocks() 427 count = 0; in udf_table_free_blocks() [all …]
|
| /fs/xfs/ |
| A D | xfs_bio_io.c | 7 static inline unsigned int bio_max_vecs(unsigned int count) in bio_max_vecs() argument 9 return bio_max_segs(howmany(count, PAGE_SIZE)); in bio_max_vecs() 16 unsigned int count, in xfs_rw_bdev() argument 27 return bdev_rw_virt(bdev, sector, data, count, op); in xfs_rw_bdev() 29 bio = bio_alloc(bdev, bio_max_vecs(count), op, GFP_KERNEL); in xfs_rw_bdev() 33 added = bio_add_vmalloc_chunk(bio, data + done, count - done); in xfs_rw_bdev() 38 bio_max_vecs(count - done), in xfs_rw_bdev() 45 } while (done < count); in xfs_rw_bdev() 51 invalidate_kernel_vmap_range(data, count); in xfs_rw_bdev()
|
| A D | xfs_sysfs.c | 22 size_t count); 56 size_t count) in xfs_sysfs_object_store() argument 102 return count; in bug_on_assert_store() 118 size_t count) in log_recovery_delay_store() argument 132 return count; in log_recovery_delay_store() 148 size_t count) in mount_delay_store() argument 162 return count; in mount_delay_store() 185 return count; in always_cow_store() 220 return count; in pwork_threads_store() 252 return count; in larp_store() [all …]
|
| /fs/ext4/ |
| A D | block_validity.c | 26 unsigned int count; member 71 unsigned int count, u32 ino) in add_system_zone() argument 82 else if (start_blk >= (entry->start_blk + entry->count)) in add_system_zone() 93 new_entry->count = count; in add_system_zone() 106 new_entry->count += entry->count; in add_system_zone() 117 new_entry->count += entry->count; in add_system_zone() 296 ext4_fsblk_t start_blk, unsigned int count) in ext4_sb_block_valid() argument 305 (start_blk + count < start_blk) || in ext4_sb_block_valid() 306 (start_blk + count > ext4_blocks_count(sbi->s_es))) in ext4_sb_block_valid() 322 if (start_blk + count - 1 < entry->start_blk) in ext4_sb_block_valid() [all …]
|
| A D | indirect.c | 295 count++; in ext4_blks_to_allocate() 296 while (count < blks && count <= blocks_to_boundary && in ext4_blks_to_allocate() 298 count++; in ext4_blks_to_allocate() 300 return count; in ext4_blks_to_allocate() 559 count++; in ext4_ind_map_blocks() 567 count++; in ext4_ind_map_blocks() 585 count = 0; in ext4_ind_map_blocks() 587 count = count * epb + (epb - offsets[i] - 1); in ext4_ind_map_blocks() 588 count++; in ext4_ind_map_blocks() 661 err = count; in ext4_ind_map_blocks() [all …]
|
| /fs/ext2/ |
| A D | balloc.c | 171 if (count) { in group_adjust_blocks() 518 count -= overflow; in ext2_free_blocks() 538 block, count); in ext2_free_blocks() 560 block += count; in ext2_free_blocks() 561 count = overflow; in ext2_free_blocks() 719 *count = num; in ext2_try_to_allocate() 1144 *count = num; in ext2_try_to_allocate_with_rsv() 1147 num = *count; in ext2_try_to_allocate_with_rsv() 1392 num = *count; in ext2_new_blocks() 1415 if (num < *count) { in ext2_new_blocks() [all …]
|
| /fs/sysfs/ |
| A D | file.c | 51 ssize_t count; in sysfs_kf_seq_show() local 66 if (count < 0) in sysfs_kf_seq_show() 67 return count; in sysfs_kf_seq_show() 77 count = PAGE_SIZE - 1; in sysfs_kf_seq_show() 79 seq_commit(sf, count); in sysfs_kf_seq_show() 90 if (!count) in sysfs_kf_bin_read() 97 count = size - pos; in sysfs_kf_bin_read() 142 if (!count) in sysfs_kf_write() 159 count = min_t(ssize_t, count, size - pos); in sysfs_kf_bin_write() 161 if (!count) in sysfs_kf_bin_write() [all …]
|
| /fs/hfsplus/ |
| A D | extents.c | 54 u32 count; in hfsplus_ext_find_block() local 58 if (off < count) in hfsplus_ext_find_block() 60 off -= count; in hfsplus_ext_find_block() 69 u32 count = 0; in hfsplus_ext_block_count() local 73 return count; in hfsplus_ext_block_count() 312 u32 count, start; in hfsplus_add_extent() local 331 offset -= count; in hfsplus_add_extent() 341 u32 count, start; in hfsplus_free_extents() local 352 offset -= count; in hfsplus_free_extents() 364 start, count); in hfsplus_free_extents() [all …]
|
| A D | bitmap.c | 174 if (!count) in hfsplus_block_free() 179 if ((offset + count) > sbi->total_blocks) in hfsplus_block_free() 191 len = count; in hfsplus_block_free() 198 if (j > count) { in hfsplus_block_free() 199 mask |= 0xffffffffU >> (i + count); in hfsplus_block_free() 204 count -= j; in hfsplus_block_free() 210 if (count < 32) in hfsplus_block_free() 213 count -= 32; in hfsplus_block_free() 215 if (!count) in hfsplus_block_free() 228 if (count) { in hfsplus_block_free() [all …]
|
| /fs/ocfs2/ |
| A D | filecheck.c | 123 const char *buf, size_t count) in ocfs2_filecheck_store() argument 209 unsigned int count); 246 memcpy(buffer, buf, count); in ocfs2_filecheck_args_get_long() 247 buffer[count] = '\0'; in ocfs2_filecheck_args_get_long() 278 if ((count < 1) || (count >= OCFS2_FILECHECK_ARGS_LEN)) in ocfs2_filecheck_args_parse() 380 unsigned int count) in ocfs2_filecheck_erase_entries() argument 385 while (i++ < count) { in ocfs2_filecheck_erase_entries() 392 return (ret == count ? 1 : 0); in ocfs2_filecheck_erase_entries() 456 if (count == 0) in ocfs2_filecheck_attr_store() 457 return count; in ocfs2_filecheck_attr_store() [all …]
|
| /fs/proc/ |
| A D | base.c | 199 count = 2; in pid_entry_nlink() 202 ++count; in pid_entry_nlink() 205 return count; in pid_entry_nlink() 280 len = count; in get_mm_proctitle() 327 if (!count) in get_mm_cmdline() 371 count -= got; in get_mm_cmdline() 572 return count; in lstats_write() 1370 return count; in proc_loginuid_write() 1447 return count; in proc_fault_inject_write() 1703 ret = count; in timens_offsets_write() [all …]
|