Home
last modified time | relevance | path

Searched refs:nrblocks (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_rtalloc.c906 xfs_rfsblock_t nrblocks; /* new number of realtime blocks */ in xfs_growfs_rt() local
927 (nrblocks = in->newblocks) <= sbp->sb_rblocks || in xfs_growfs_rt()
930 if ((error = xfs_sb_validate_fsb_count(sbp, nrblocks))) in xfs_growfs_rt()
936 XFS_FSB_TO_BB(mp, nrblocks - 1), in xfs_growfs_rt()
945 nrextents = nrblocks; in xfs_growfs_rt()
1004 XFS_RTMIN(nrblocks, in xfs_growfs_rt()
/kernel/linux/linux-6.6/fs/gfs2/
H A Daops.c214 unsigned nrblocks; in gfs2_write_jdata_batch() local
222 nrblocks = nr_pages * (PAGE_SIZE >> inode->i_blkbits); in gfs2_write_jdata_batch()
224 ret = gfs2_trans_begin(sdp, nrblocks, nrblocks); in gfs2_write_jdata_batch()
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_rtalloc.c935 xfs_rfsblock_t nrblocks; /* new number of realtime blocks */ in xfs_growfs_rt() local
981 nrblocks = in->newblocks; in xfs_growfs_rt()
982 error = xfs_sb_validate_fsb_count(sbp, nrblocks); in xfs_growfs_rt()
989 XFS_FSB_TO_BB(mp, nrblocks - 1), in xfs_growfs_rt()
998 nrextents = nrblocks; in xfs_growfs_rt()
1059 nsbp->sb_rblocks = min(nrblocks, nrblocks_step); in xfs_growfs_rt()
/kernel/linux/linux-5.10/fs/gfs2/
H A Daops.c240 unsigned nrblocks = nr_pages * (PAGE_SIZE >> inode->i_blkbits); in gfs2_write_jdata_pagevec() local
244 ret = gfs2_trans_begin(sdp, nrblocks, nrblocks); in gfs2_write_jdata_pagevec()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dnand_bbt.c1101 int i, j, chips, block, nrblocks, update; in mark_bbt_region() local
1107 nrblocks = (int)(targetsize >> this->bbt_erase_shift); in mark_bbt_region()
1110 nrblocks = (int)(mtd->size >> this->bbt_erase_shift); in mark_bbt_region()
1129 block = ((i + 1) * nrblocks) - td->maxblocks; in mark_bbt_region()
1131 block = i * nrblocks; in mark_bbt_region()
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dnand_bbt.c1134 int i, j, chips, block, nrblocks, update; in mark_bbt_region() local
1140 nrblocks = (int)(targetsize >> this->bbt_erase_shift); in mark_bbt_region()
1143 nrblocks = (int)(mtd->size >> this->bbt_erase_shift); in mark_bbt_region()
1162 block = ((i + 1) * nrblocks) - td->maxblocks; in mark_bbt_region()
1164 block = i * nrblocks; in mark_bbt_region()
/kernel/linux/linux-5.10/fs/ext4/
H A Dindirect.c681 * Calculate number of indirect blocks touched by mapping @nrblocks logically
684 int ext4_ind_trans_blocks(struct inode *inode, int nrblocks) in ext4_ind_trans_blocks() argument
691 return DIV_ROUND_UP(nrblocks, EXT4_ADDR_PER_BLOCK(inode->i_sb)) + 4; in ext4_ind_trans_blocks()
H A Dext4.h2907 extern int ext4_chunk_trans_blocks(struct inode *, int nrblocks);
2923 extern int ext4_ind_trans_blocks(struct inode *inode, int nrblocks);
H A Dinode.c5772 int ext4_chunk_trans_blocks(struct inode *inode, int nrblocks) in ext4_chunk_trans_blocks() argument
5774 return ext4_meta_trans_blocks(inode, nrblocks, 1); in ext4_chunk_trans_blocks()
H A Dextents.c2361 int ext4_ext_calc_credits_for_single_extent(struct inode *inode, int nrblocks, in ext4_ext_calc_credits_for_single_extent() argument
2386 return ext4_chunk_trans_blocks(inode, nrblocks); in ext4_ext_calc_credits_for_single_extent()
/kernel/linux/linux-6.6/fs/ext4/
H A Dindirect.c683 * Calculate number of indirect blocks touched by mapping @nrblocks logically
686 int ext4_ind_trans_blocks(struct inode *inode, int nrblocks) in ext4_ind_trans_blocks() argument
693 return DIV_ROUND_UP(nrblocks, EXT4_ADDR_PER_BLOCK(inode->i_sb)) + 4; in ext4_ind_trans_blocks()
H A Dext4.h3001 extern int ext4_chunk_trans_blocks(struct inode *, int nrblocks);
3016 extern int ext4_ind_trans_blocks(struct inode *inode, int nrblocks);
H A Dextents.c2333 int ext4_ext_calc_credits_for_single_extent(struct inode *inode, int nrblocks, in ext4_ext_calc_credits_for_single_extent() argument
2358 return ext4_chunk_trans_blocks(inode, nrblocks); in ext4_ext_calc_credits_for_single_extent()
H A Dinode.c5711 int ext4_chunk_trans_blocks(struct inode *inode, int nrblocks) in ext4_chunk_trans_blocks() argument
5713 return ext4_meta_trans_blocks(inode, nrblocks, 1); in ext4_chunk_trans_blocks()

Completed in 54 milliseconds