Home
last modified time | relevance | path

Searched refs:blks (Results 1 – 17 of 17) sorted by relevance

/fs/gfs2/
Dlog.c51 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
344 unsigned wanted = blks + reserved_blks; in gfs2_log_reserve()
349 if (gfs2_assert_warn(sdp, blks) || in gfs2_log_reserve()
[all …]
Dxattr.c238 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()
726 unsigned int blks, in ea_alloc_skeleton() argument
729 struct gfs2_alloc_parms ap = { .target = blks }; in ea_alloc_skeleton()
746 blks + gfs2_rg_blocks(ip, blks) + in ea_alloc_skeleton()
803 unsigned int blks = 1; in ea_init() local
812 blks += DIV_ROUND_UP(er.er_data_len, jbsize); in ea_init()
814 return ea_alloc_skeleton(ip, &er, blks, ea_init_i, NULL); in ea_init()
[all …]
Dlops.c530 unsigned int blks = be32_to_cpu(ld->ld_data1); in buf_lo_scan_elements() local
540 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in buf_lo_scan_elements()
683 unsigned int blks = be32_to_cpu(ld->ld_length); in revoke_lo_scan_elements() local
696 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in revoke_lo_scan_elements()
767 unsigned int blks = be32_to_cpu(ld->ld_data1); in databuf_lo_scan_elements() local
777 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) { in databuf_lo_scan_elements()
Dlog.h66 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);
Dbmap.c459 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()
Dfile.c338 size_t blks = (size + sdp->sd_sb.sb_bsize - 1) >> sdp->sd_sb.sb_bsize_shift; in gfs2_size_hint() local
339 int hint = min_t(size_t, INT_MAX, blks); in gfs2_size_hint()
/fs/ext2/
Dinode.c359 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/
Dfile.c346 long long blks; in read_blocklist() local
365 blks = read_indexes(inode->i_sb, index - res, &start, &offset); in read_blocklist()
366 if (blks < 0) in read_blocklist()
367 return (int) blks; in read_blocklist()
368 *block += blks; in read_blocklist()
/fs/ufs/
Dsuper.c508 unsigned size, blks, i; in ufs_read_cylinder_structures() local
517 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_read_cylinder_structures()
522 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_read_cylinder_structures()
524 if (i + uspi->s_fpb > blks) in ufs_read_cylinder_structures()
525 size = (blks - i) * uspi->s_fsize; in ufs_read_cylinder_structures()
638 unsigned blks, size, i; in ufs_put_super_internal() local
645 blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_put_super_internal()
647 for (i = 0; i < blks; i += uspi->s_fpb) { in ufs_put_super_internal()
649 if (i + uspi->s_fpb > blks) in ufs_put_super_internal()
650 size = (blks - i) * uspi->s_fsize; in ufs_put_super_internal()
Dufs_fs.h262 #define ufs_blkstofrags(blks) ((blks) << uspi->s_fpbshift) argument
/fs/f2fs/
Df2fs.h3130 #define stat_inc_tot_blk_count(si, blks) \ argument
3131 ((si)->tot_blks += (blks))
3133 #define stat_inc_data_blk_count(sbi, blks, gc_type) \ argument
3136 stat_inc_tot_blk_count(si, blks); \
3137 si->data_blks += (blks); \
3138 si->bg_data_blks += ((gc_type) == BG_GC) ? (blks) : 0; \
3141 #define stat_inc_node_blk_count(sbi, blks, gc_type) \ argument
3144 stat_inc_tot_blk_count(si, blks); \
3145 si->node_blks += (blks); \
3146 si->bg_node_blks += ((gc_type) == BG_GC) ? (blks) : 0; \
[all …]
/fs/ext4/
Dindirect.c269 static int ext4_blks_to_allocate(Indirect *branch, int k, unsigned int blks, in ext4_blks_to_allocate() argument
280 if (blks < blocks_to_boundary + 1) in ext4_blks_to_allocate()
281 count += blks; in ext4_blks_to_allocate()
288 while (count < blks && count <= blocks_to_boundary && in ext4_blks_to_allocate()
Dsuper.c3170 int blks; in ext4_calculate_overhead() local
3172 blks = count_overhead(sb, i, buf); in ext4_calculate_overhead()
3173 overhead += blks; in ext4_calculate_overhead()
3174 if (blks) in ext4_calculate_overhead()
Dext4.h258 #define EXT4_NUM_B2C(sbi, blks) (((blks) + (sbi)->s_cluster_ratio - 1) >> \ argument
/fs/xfs/libxfs/
Dxfs_bmap_btree.c44 xfs_filblks_t blks, in xfs_extent_state() argument
48 ASSERT(blks != 0); /* saved for DMIG */ in xfs_extent_state()
Dxfs_bmap.c1114 int blks; /* space reservation */ in xfs_bmap_add_attrfork() local
1125 blks = XFS_ADDAFORK_SPACE_RES(mp); in xfs_bmap_add_attrfork()
1128 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_addafork, blks, 0); in xfs_bmap_add_attrfork()
1134 error = xfs_trans_reserve_quota_nblks(tp, ip, blks, 0, rsvd ? in xfs_bmap_add_attrfork()
/fs/ocfs2/
Dxattr.c333 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()
4174 int blks = ocfs2_blocks_per_xattr_bucket(inode->i_sb); in ocfs2_cp_xattr_block_to_bucket() local
4183 char *target = bucket_block(bucket, blks - 1); in ocfs2_cp_xattr_block_to_bucket()
4189 for (i = 0; i < blks; i++) in ocfs2_cp_xattr_block_to_bucket()