/fs/gfs2/ |
D | log.c | 51 unsigned int blks; in gfs2_struct2blk() local 54 blks = 1; in gfs2_struct2blk() 60 blks += DIV_ROUND_UP(nstruct - first, second); in gfs2_struct2blk() 63 return blks; in gfs2_struct2blk() 310 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_release() argument 313 atomic_add(blks, &sdp->sd_log_blks_free); in gfs2_log_release() 314 trace_gfs2_log_blocks(sdp, blks); in gfs2_log_release() 340 int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) in gfs2_log_reserve() argument 343 unsigned wanted = blks + reserved_blks; in gfs2_log_reserve() 348 if (gfs2_assert_warn(sdp, blks) || in gfs2_log_reserve() [all …]
|
D | xattr.c | 238 unsigned int blks = 0; in ea_dealloc_unstuffed() local 252 blks++; in ea_dealloc_unstuffed() 256 if (!blks) in ea_dealloc_unstuffed() 270 RES_EATTR + RES_STATFS + RES_QUOTA, blks); in ea_dealloc_unstuffed() 724 unsigned int blks, in ea_alloc_skeleton() argument 727 struct gfs2_alloc_parms ap = { .target = blks }; in ea_alloc_skeleton() 744 blks + gfs2_rg_blocks(ip, blks) + in ea_alloc_skeleton() 801 unsigned int blks = 1; in ea_init() local 810 blks += DIV_ROUND_UP(er.er_data_len, jbsize); in ea_init() 812 return ea_alloc_skeleton(ip, &er, blks, ea_init_i, NULL); in ea_init() [all …]
|
D | lops.c | 537 unsigned int blks = be32_to_cpu(ld->ld_data1); in buf_lo_scan_elements() local 547 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in buf_lo_scan_elements() 690 unsigned int blks = be32_to_cpu(ld->ld_length); in revoke_lo_scan_elements() local 703 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in revoke_lo_scan_elements() 774 unsigned int blks = be32_to_cpu(ld->ld_data1); in databuf_lo_scan_elements() local 784 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in databuf_lo_scan_elements()
|
D | log.h | 66 extern void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks); 67 extern int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks);
|
D | bmap.c | 459 unsigned n, i, blks, alloced = 0, iblks = 0, branch_start = 0; in gfs2_bmap_alloc() local 503 blks = dblks + iblks; in gfs2_bmap_alloc() 507 n = blks - alloced; in gfs2_bmap_alloc()
|
D | file.c | 339 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; in gfs2_size_hint() local 340 int hint = min_t(size_t, INT_MAX, blks); in gfs2_size_hint()
|
/fs/ext2/ |
D | inode.c | 359 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, in ext2_blks_to_allocate() argument 370 if (blks < blocks_to_boundary + 1) in ext2_blks_to_allocate() 371 count += blks; in ext2_blks_to_allocate() 378 while (count < blks && count <= blocks_to_boundary in ext2_blks_to_allocate() 396 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument 413 target = blks + indirect_blks; in ext2_alloc_blocks() 474 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument 486 *blks, new_blocks, &err); in ext2_alloc_branch() 531 *blks = num; in ext2_alloc_branch() 556 long block, Indirect *where, int num, int blks) in ext2_splice_branch() argument [all …]
|
/fs/squashfs/ |
D | file.c | 342 long long blks; in read_blocklist() local 361 blks = read_indexes(inode->i_sb, index - res, &start, &offset); in read_blocklist() 362 if (blks < 0) in read_blocklist() 363 return (int) blks; in read_blocklist() 364 *block += blks; in read_blocklist()
|
/fs/ufs/ |
D | super.c | 527 unsigned size, blks, i; in ufs_read_cylinder_structures() local 536 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_read_cylinder_structures() 541 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_read_cylinder_structures() 543 if (i + uspi->s_fpb > blks) in ufs_read_cylinder_structures() 544 size = (blks - i) * uspi->s_fsize; in ufs_read_cylinder_structures() 657 unsigned blks, size, i; in ufs_put_super_internal() local 664 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_put_super_internal() 666 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_put_super_internal() 668 if (i + uspi->s_fpb > blks) in ufs_put_super_internal() 669 size = (blks - i) * uspi->s_fsize; in ufs_put_super_internal()
|
D | ufs_fs.h | 262 #define ufs_blkstofrags(blks) ((blks) << uspi->s_fpbshift) argument
|
/fs/ext3/ |
D | inode.c | 535 static int ext3_blks_to_allocate(Indirect *branch, int k, unsigned long blks, in ext3_blks_to_allocate() argument 546 if (blks < blocks_to_boundary + 1) in ext3_blks_to_allocate() 547 count += blks; in ext3_blks_to_allocate() 554 while (count < blks && count <= blocks_to_boundary && in ext3_blks_to_allocate() 576 ext3_fsblk_t goal, int indirect_blks, int blks, in ext3_alloc_blocks() argument 593 target = blks + indirect_blks; in ext3_alloc_blocks() 654 int indirect_blks, int *blks, ext3_fsblk_t goal, in ext3_alloc_branch() argument 666 *blks, new_blocks, &err); in ext3_alloc_branch() 718 *blks = num; in ext3_alloc_branch() 748 long block, Indirect *where, int num, int blks) in ext3_splice_branch() argument [all …]
|
/fs/f2fs/ |
D | f2fs.h | 3015 #define stat_inc_tot_blk_count(si, blks) \ argument 3016 ((si)->tot_blks += (blks)) 3018 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ argument 3021 stat_inc_tot_blk_count(si, blks); \ 3022 si->data_blks += (blks); \ 3023 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \ 3026 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ argument 3029 stat_inc_tot_blk_count(si, blks); \ 3030 si->node_blks += (blks); \ 3031 si->bg_node_blks += ((gc_type) == BG_GC) ? (blks) : 0; \ [all …]
|
/fs/ext4/ |
D | indirect.c | 268 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument 279 if (blks < blocks_to_boundary + 1) in ext4_blks_to_allocate() 280 count += blks; in ext4_blks_to_allocate() 287 while (count < blks && count <= blocks_to_boundary && in ext4_blks_to_allocate()
|
D | ext4.h | 270 #define EXT4_NUM_B2C(sbi, blks) (((blks) + (sbi)->s_cluster_ratio - 1) >> \ argument
|
D | super.c | 3394 int blks; in ext4_calculate_overhead() local 3396 blks = count_overhead(sb, i, buf); in ext4_calculate_overhead() 3397 overhead += blks; in ext4_calculate_overhead() 3398 if (blks) in ext4_calculate_overhead()
|
/fs/xfs/libxfs/ |
D | xfs_bmap_btree.c | 47 xfs_filblks_t blks, in xfs_extent_state() argument 51 ASSERT(blks != 0); /* saved for DMIG */ in xfs_extent_state()
|
D | xfs_bmap.c | 1139 int blks; /* space reservation */ in xfs_bmap_add_attrfork() local 1151 blks = XFS_ADDAFORK_SPACE_RES(mp); in xfs_bmap_add_attrfork() 1154 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_addafork, blks, 0); in xfs_bmap_add_attrfork() 1161 error = xfs_trans_reserve_quota_nblks(tp, ip, blks, 0, rsvd ? in xfs_bmap_add_attrfork()
|
/fs/ocfs2/ |
D | xattr.c | 333 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_xattr_bucket_new() local 335 BUG_ON(blks > OCFS2_XATTR_MAX_BLOCKS_PER_BUCKET); in ocfs2_xattr_bucket_new() 340 bucket->bu_blocks = blks; in ocfs2_xattr_bucket_new() 4179 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_cp_xattr_block_to_bucket() local 4188 char *target = bucket_block(bucket, blks - 1); in ocfs2_cp_xattr_block_to_bucket() 4194 for (i = 0; i < blks; i++) in ocfs2_cp_xattr_block_to_bucket()
|