Home
last modified time | relevance | path

Searched refs:dblocks (Results 1 – 16 of 16) sorted by relevance

/linux/fs/xfs/
H A Dxfs_trans.c1069 unsigned int dblocks, in xfs_trans_alloc_inode() argument
1080 error = xfs_trans_alloc(mp, resv, dblocks, in xfs_trans_alloc_inode()
1096 error = xfs_trans_reserve_quota_nblks(tp, ip, dblocks, rblocks, force); in xfs_trans_alloc_inode()
1153 unsigned int dblocks, in xfs_trans_reserve_more_inode() argument
1163 error = xfs_trans_reserve_more(tp, dblocks, rtx); in xfs_trans_reserve_more_inode()
1173 error = xfs_trans_reserve_quota_nblks(tp, ip, dblocks, rblocks, in xfs_trans_reserve_more_inode()
1179 xfs_add_fdblocks(mp, dblocks); in xfs_trans_reserve_more_inode()
1180 tp->t_blk_res -= dblocks; in xfs_trans_reserve_more_inode()
1197 unsigned int dblocks, in xfs_trans_alloc_icreate() argument
1205 error = xfs_trans_alloc(mp, resv, dblocks, 0, 0, &tp); in xfs_trans_alloc_icreate()
[all …]
H A Dxfs_quota.h102 int64_t dblocks, int64_t rblocks, bool force);
108 struct xfs_dquot *pdqp, int64_t dblocks);
174 struct xfs_inode *ip, int64_t dblocks, int64_t rblocks, in xfs_trans_reserve_quota_nblks() argument
189 struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, int64_t dblocks) in xfs_trans_reserve_quota_icreate() argument
H A Dxfs_trans.h254 unsigned int dblocks, unsigned int rblocks, bool force,
257 unsigned int dblocks, unsigned int rblocks, bool force_quota);
260 struct xfs_dquot *pdqp, unsigned int dblocks,
266 struct xfs_inode *ip, unsigned int *dblocks,
H A Dxfs_rtalloc.h46 int xfs_growfs_check_rtgeom(const struct xfs_mount *mp, xfs_rfsblock_t dblocks,
68 xfs_rfsblock_t dblocks, xfs_rfsblock_t rblocks, in xfs_growfs_check_rtgeom() argument
H A Dxfs_reflink.c443 unsigned int dblocks = 0, rblocks = 0; in xfs_reflink_fill_cow_hole() local
451 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_reflink_fill_cow_hole()
454 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_reflink_fill_cow_hole()
461 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, dblocks, in xfs_reflink_fill_cow_hole()
1323 unsigned int dblocks, rblocks, resblks; in xfs_reflink_remap_extent() local
1355 dblocks = resblks; in xfs_reflink_remap_extent()
1358 dblocks = resblks + dmap->br_blockcount; in xfs_reflink_remap_extent()
1362 dblocks, rblocks, false, &tp); in xfs_reflink_remap_extent()
1443 dblocks = 0; in xfs_reflink_remap_extent()
1446 dblocks = dmap->br_blockcount; in xfs_reflink_remap_extent()
[all …]
H A Dxfs_trans_dquot.c980 int64_t dblocks, in xfs_trans_reserve_quota_nblks() argument
1001 ip->i_gdquot, ip->i_pdquot, dblocks, 0, in xfs_trans_reserve_quota_nblks()
1012 ip->i_gdquot, ip->i_pdquot, -dblocks, 0, in xfs_trans_reserve_quota_nblks()
1027 int64_t dblocks) in xfs_trans_reserve_quota_icreate() argument
1035 dblocks, 1, XFS_QMOPT_RES_REGBLKS); in xfs_trans_reserve_quota_icreate()
H A Dxfs_iomap.c277 unsigned int dblocks, rblocks; in xfs_iomap_write_direct() local
288 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_iomap_write_direct()
291 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_iomap_write_direct()
317 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1; in xfs_iomap_write_direct()
321 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, dblocks, in xfs_iomap_write_direct()
1137 unsigned int dblocks = 0, rblocks = 0; in xfs_atomic_write_cow_iomap_begin() local
1188 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_atomic_write_cow_iomap_begin()
1191 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_atomic_write_cow_iomap_begin()
1195 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, dblocks, in xfs_atomic_write_cow_iomap_begin()
H A Dxfs_bmap_util.c691 unsigned int dblocks, rblocks, resblks; in xfs_alloc_file_space() local
724 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_alloc_file_space()
727 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, resblks); in xfs_alloc_file_space()
732 dblocks, rblocks, false, &tp); in xfs_alloc_file_space()
H A Dxfs_mount.c388 uint64_t dblocks = mp->m_sb.sb_dblocks; in xfs_set_low_space_thresholds() local
392 do_div(dblocks, 100); in xfs_set_low_space_thresholds()
396 mp->m_low_space[i] = dblocks * (i + 1); in xfs_set_low_space_thresholds()
H A Dxfs_qm.c1965 xfs_filblks_t dblocks, rblocks; in xfs_qm_vop_chown() local
1977 xfs_inode_count_blocks(tp, ip, &dblocks, &rblocks); in xfs_qm_vop_chown()
1980 -(xfs_qcnt_t)dblocks); in xfs_qm_vop_chown()
1986 xfs_trans_mod_ino_dquot(tp, ip, newdq, XFS_TRANS_DQ_BCOUNT, dblocks); in xfs_qm_vop_chown()
H A Dxfs_inode.h672 xfs_filblks_t *dblocks, xfs_filblks_t *rblocks);
H A Dxfs_rtalloc.c1264 xfs_rfsblock_t dblocks, in xfs_growfs_check_rtgeom() argument
1274 nmp->m_sb.sb_dblocks = dblocks; in xfs_growfs_check_rtgeom()
H A Dxfs_inode.c2990 xfs_filblks_t *dblocks, in xfs_inode_count_blocks() argument
2998 *dblocks = ip->i_nblocks - *rblocks; in xfs_inode_count_blocks()
/linux/fs/xfs/libxfs/
H A Dxfs_ag.c142 xfs_rfsblock_t dblocks) in __xfs_ag_block_count() argument
148 return dblocks - (agno * mp->m_sb.sb_agblocks); in __xfs_ag_block_count()
222 xfs_rfsblock_t dblocks) in xfs_perag_alloc() argument
246 dblocks); in xfs_perag_alloc()
269 xfs_rfsblock_t dblocks, in xfs_initialize_perag() argument
279 error = xfs_perag_alloc(mp, index, new_agcount, dblocks); in xfs_initialize_perag()
H A Dxfs_attr.c322 uint dblocks = xfs_attr3_rmt_blocks(mp, args->valuelen); in xfs_attr_calc_size() local
323 nblks += dblocks; in xfs_attr_calc_size()
324 nblks += XFS_NEXTENTADD_SPACE_RES(mp, dblocks, XFS_ATTR_FORK); in xfs_attr_calc_size()
/linux/fs/gfs2/
H A Dinode.c418 static int alloc_dinode(struct gfs2_inode *ip, u32 flags, unsigned *dblocks) in alloc_dinode() argument
421 struct gfs2_alloc_parms ap = { .target = *dblocks, .aflags = flags, }; in alloc_dinode()
432 error = gfs2_trans_begin(sdp, (*dblocks * RES_RG_BIT) + RES_STATFS + RES_QUOTA, 0); in alloc_dinode()
436 error = gfs2_alloc_blocks(ip, &ip->i_no_addr, dblocks, 1); in alloc_dinode()
443 if (*dblocks > 1) in alloc_dinode()