/fs/squashfs/ |
H A D | file.c | 338 long long blks; local 357 blks = read_indexes(inode->i_sb, index - res, &start, &offset); 358 if (blks < 0) 359 return (int) blks; 360 *block += blks;
|
/fs/ext4/ |
H A D | indirect.c | 262 * @blks: number of data blocks to be mapped. 268 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, argument 279 if (blks < blocks_to_boundary + 1) 280 count += blks; 287 while (count < blks && count <= blocks_to_boundary && 299 * @blks: number of allocated direct blocks 405 * @blks: number of direct blocks we are adding
|
H A D | super.c | 3335 int blks; local 3337 blks = count_overhead(sb, i, buf); 3338 overhead += blks; 3339 if (blks)
|
/fs/gfs2/ |
H A D | file.c | 337 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; local 338 int hint = min_t(size_t, INT_MAX, blks);
|
H A D | log.c | 51 unsigned int blks; local 54 blks = 1; 60 blks += DIV_ROUND_UP(nstruct - first, second); 63 return blks; 306 * @blks: The number of blocks 310 void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks) argument 313 atomic_add(blks, &sdp->sd_log_blks_free); 314 trace_gfs2_log_blocks(sdp, blks); 323 * @blks: The number of blocks to reserve 340 int gfs2_log_reserve(struct gfs2_sbd *sdp, unsigned int blks) argument [all...] |
H A D | lops.c | 537 unsigned int blks = be32_to_cpu(ld->ld_data1); local 547 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { 690 unsigned int blks = be32_to_cpu(ld->ld_length); local 703 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { 774 unsigned int blks = be32_to_cpu(ld->ld_data1); local 784 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) {
|
H A D | bmap.c | 459 unsigned n, i, blks, alloced = 0, iblks = 0, branch_start = 0; local 503 blks = dblks + iblks; 507 n = blks - alloced;
|
H A D | xattr.c | 238 unsigned int blks = 0; local 252 blks++; 256 if (!blks) 270 RES_EATTR + RES_STATFS + RES_QUOTA, blks); 724 unsigned int blks, 727 struct gfs2_alloc_parms ap = { .target = blks }; 744 blks + gfs2_rg_blocks(ip, blks) + 801 unsigned int blks = 1; local 810 blks 723 ea_alloc_skeleton(struct gfs2_inode *ip, struct gfs2_ea_request *er, unsigned int blks, ea_skeleton_call_t skeleton_call, void *private) argument 952 unsigned int blks; local 1047 unsigned int blks = 2; local 1296 unsigned int blks = 0; local [all...] |
/fs/ufs/ |
H A D | super.c | 527 unsigned size, blks, i; local 536 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; 541 for (i = 0; i < blks; i += uspi->s_fpb) { 543 if (i + uspi->s_fpb > blks) 544 size = (blks - i) * uspi->s_fsize; 657 unsigned blks, size, i; local 664 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; 666 for (i = 0; i < blks; i += uspi->s_fpb) { 668 if (i + uspi->s_fpb > blks) 669 size = (blks [all...] |
/fs/xfs/libxfs/ |
H A D | xfs_bmap_btree.c | 47 xfs_filblks_t blks, 51 ASSERT(blks != 0); /* saved for DMIG */ 46 xfs_extent_state( xfs_filblks_t blks, int extent_flag) argument
|
H A D | xfs_bmap.c | 1129 int rsvd) /* xact may use reserved blks */ 1135 int blks; /* space reservation */ local 1147 blks = XFS_ADDAFORK_SPACE_RES(mp); 1150 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_addafork, blks, 0); 1157 error = xfs_trans_reserve_quota_nblks(tp, ip, blks, 0, rsvd ?
|
/fs/ext2/ |
H A D | inode.c | 352 * @blks: number of data blocks to be mapped. 359 ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, argument 370 if (blks < blocks_to_boundary + 1) 371 count += blks; 378 while (count < blks && count <= blocks_to_boundary 392 * @blks: on return it will store the total number of allocated 396 ext2_fsblk_t goal, int indirect_blks, int blks, 413 target = blks + indirect_blks; 474 int indirect_blks, int *blks, ext2_fsblk_t goal, 486 *blks, new_block 395 ext2_alloc_blocks(struct inode *inode, ext2_fsblk_t goal, int indirect_blks, int blks, ext2_fsblk_t new_blocks[4], int *err) argument 473 ext2_alloc_branch(struct inode *inode, int indirect_blks, int *blks, ext2_fsblk_t goal, int *offsets, Indirect *branch) argument 555 ext2_splice_branch(struct inode *inode, long block, Indirect *where, int num, int blks) argument [all...] |
/fs/ext3/ |
H A D | inode.c | 529 * @blks: number of data blocks to be mapped. 535 static int ext3_blks_to_allocate(Indirect *branch, int k, unsigned long blks, argument 546 if (blks < blocks_to_boundary + 1) 547 count += blks; 554 while (count < blks && count <= blocks_to_boundary && 568 * @blks: number of blocks need to allocated for direct blocks 576 ext3_fsblk_t goal, int indirect_blks, int blks, 593 target = blks + indirect_blks; 631 * @blks: number of allocated direct blocks 654 int indirect_blks, int *blks, ext3_fsblk_ 575 ext3_alloc_blocks(handle_t *handle, struct inode *inode, ext3_fsblk_t goal, int indirect_blks, int blks, ext3_fsblk_t new_blocks[4], int *err) argument 653 ext3_alloc_branch(handle_t *handle, struct inode *inode, int indirect_blks, int *blks, ext3_fsblk_t goal, int *offsets, Indirect *branch) argument 747 ext3_splice_branch(handle_t *handle, struct inode *inode, long block, Indirect *where, int num, int blks) argument [all...] |
/fs/ocfs2/ |
H A D | xattr.c | 333 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); local 335 BUG_ON(blks > OCFS2_XATTR_MAX_BLOCKS_PER_BUCKET); 340 bucket->bu_blocks = blks; 4179 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); local 4188 char *target = bucket_block(bucket, blks - 1); 4194 for (i = 0; i < blks; i++)
|