Home
last modified time | relevance | path

Searched refs:rblocks (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/misc/
H A Dsram.c179 struct sram_reserve *rblocks, *block; in sram_reserve_regions() local
194 rblocks = kzalloc_objs(*rblocks, nblocks); in sram_reserve_regions()
195 if (!rblocks) in sram_reserve_regions()
198 block = &rblocks[0]; in sram_reserve_regions()
263 rblocks[nblocks - 1].start = size; in sram_reserve_regions()
264 rblocks[nblocks - 1].size = 0; in sram_reserve_regions()
265 list_add_tail(&rblocks[nblocks - 1].list, &reserve_list); in sram_reserve_regions()
333 kfree(rblocks); in sram_reserve_regions()
/linux/fs/xfs/
H A Dxfs_rtalloc.h47 xfs_rfsblock_t rblocks, xfs_agblock_t rextsize);
68 xfs_rfsblock_t dblocks, xfs_rfsblock_t rblocks, in xfs_growfs_check_rtgeom() argument
H A Dxfs_trans.c1070 unsigned int rblocks, in xfs_trans_alloc_inode() argument
1081 xfs_extlen_to_rtxlen(mp, rblocks), in xfs_trans_alloc_inode()
1096 error = xfs_trans_reserve_quota_nblks(tp, ip, dblocks, rblocks, force); in xfs_trans_alloc_inode()
1154 unsigned int rblocks, in xfs_trans_reserve_more_inode() argument
1158 unsigned int rtx = xfs_extlen_to_rtxlen(mp, rblocks); in xfs_trans_reserve_more_inode()
1173 error = xfs_trans_reserve_quota_nblks(tp, ip, dblocks, rblocks, in xfs_trans_reserve_more_inode()
1279 xfs_filblks_t dblocks, rblocks; in xfs_trans_alloc_ichange() local
1292 xfs_inode_count_blocks(tp, ip, &dblocks, &rblocks); in xfs_trans_alloc_ichange()
1295 rblocks += ip->i_delayed_blks; in xfs_trans_alloc_ichange()
1319 pdqp, rblocks, 0, qflags); in xfs_trans_alloc_ichange()
H A Dxfs_reflink.c443 unsigned int dblocks = 0, rblocks = 0; in xfs_reflink_fill_cow_hole() local
452 rblocks = resaligned; in xfs_reflink_fill_cow_hole()
455 rblocks = 0; in xfs_reflink_fill_cow_hole()
462 rblocks, false, &tp); in xfs_reflink_fill_cow_hole()
1323 unsigned int dblocks, rblocks, resblks; in xfs_reflink_remap_extent() local
1356 rblocks = dmap->br_blockcount; in xfs_reflink_remap_extent()
1359 rblocks = 0; in xfs_reflink_remap_extent()
1362 dblocks, rblocks, false, &tp); in xfs_reflink_remap_extent()
1444 rblocks = dmap->br_blockcount; in xfs_reflink_remap_extent()
1447 rblocks = 0; in xfs_reflink_remap_extent()
[all …]
H A Dxfs_quota.h102 int64_t dblocks, int64_t rblocks, bool force);
174 struct xfs_inode *ip, int64_t dblocks, int64_t rblocks, in xfs_trans_reserve_quota_nblks() argument
H A Dxfs_trans.h254 unsigned int dblocks, unsigned int rblocks, bool force,
257 unsigned int dblocks, unsigned int rblocks, bool force_quota);
H A Dxfs_rtalloc.c747 xfs_rfsblock_t rblocks, in xfs_growfs_rt_alloc_fake_mount() argument
756 nmp->m_sb.sb_rblocks = rblocks; in xfs_growfs_rt_alloc_fake_mount()
767 if (rblocks > 0) in xfs_growfs_rt_alloc_fake_mount()
1265 xfs_rfsblock_t rblocks, in xfs_growfs_check_rtgeom() argument
1271 nmp = xfs_growfs_rt_alloc_fake_mount(mp, rblocks, rextsize); in xfs_growfs_check_rtgeom()
1324 xfs_rfsblock_t rblocks, in xfs_growfs_rt_prep_groups() argument
1330 *new_rgcount = howmany_64(rblocks, mp->m_sb.sb_rgextents * rextsize); in xfs_growfs_rt_prep_groups()
H A Dxfs_iomap.c277 unsigned int dblocks, rblocks; in xfs_iomap_write_direct() local
289 rblocks = resaligned; in xfs_iomap_write_direct()
292 rblocks = 0; in xfs_iomap_write_direct()
322 rblocks, force, &tp); in xfs_iomap_write_direct()
1137 unsigned int dblocks = 0, rblocks = 0; in xfs_atomic_write_cow_iomap_begin() local
1189 rblocks = resaligned; in xfs_atomic_write_cow_iomap_begin()
1192 rblocks = 0; in xfs_atomic_write_cow_iomap_begin()
1196 rblocks, false, &tp); in xfs_atomic_write_cow_iomap_begin()
H A Dxfs_bmap_util.c691 unsigned int dblocks, rblocks, resblks; in xfs_alloc_file_space() local
725 rblocks = resblks; in xfs_alloc_file_space()
728 rblocks = 0; in xfs_alloc_file_space()
732 dblocks, rblocks, false, &tp); in xfs_alloc_file_space()
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()
1982 -(xfs_qcnt_t)rblocks); in xfs_qm_vop_chown()
1987 xfs_trans_mod_ino_dquot(tp, ip, newdq, XFS_TRANS_DQ_RTBCOUNT, rblocks); in xfs_qm_vop_chown()
H A Dxfs_trans_dquot.c981 int64_t rblocks, in xfs_trans_reserve_quota_nblks() argument
1008 ip->i_gdquot, ip->i_pdquot, rblocks, 0, in xfs_trans_reserve_quota_nblks()
H A Dxfs_inode.c2991 xfs_filblks_t *rblocks) in xfs_inode_count_blocks() argument
2995 *rblocks = 0; in xfs_inode_count_blocks()
2997 xfs_bmap_count_leaves(ifp, rblocks); in xfs_inode_count_blocks()
2998 *dblocks = ip->i_nblocks - *rblocks; in xfs_inode_count_blocks()
H A Dxfs_inode.h672 xfs_filblks_t *dblocks, xfs_filblks_t *rblocks);
/linux/fs/gfs2/
H A Dfile.c424 unsigned int data_blocks, ind_blocks, rblocks; in gfs2_page_mkwrite() local
496 rblocks = RES_DINODE + ind_blocks; in gfs2_page_mkwrite()
498 rblocks += data_blocks ? data_blocks : 1; in gfs2_page_mkwrite()
500 rblocks += RES_STATFS + RES_QUOTA; in gfs2_page_mkwrite()
501 rblocks += gfs2_rg_blocks(ip, data_blocks + ind_blocks); in gfs2_page_mkwrite()
503 err = gfs2_trans_begin(sdp, rblocks, 0); in gfs2_page_mkwrite()
1258 unsigned int data_blocks = 0, ind_blocks = 0, rblocks; in __gfs2_fallocate() local
1329 rblocks = RES_DINODE + ind_blocks + RES_STATFS + RES_QUOTA + in __gfs2_fallocate()
1332 rblocks += data_blocks ? data_blocks : 1; in __gfs2_fallocate()
1334 error = gfs2_trans_begin(sdp, rblocks, in __gfs2_fallocate()
H A Dbmap.c1030 unsigned int rblocks; in gfs2_iomap_begin_write() local
1044 rblocks = RES_DINODE + ind_blocks; in gfs2_iomap_begin_write()
1046 rblocks += data_blocks; in gfs2_iomap_begin_write()
1048 rblocks += RES_STATFS + RES_QUOTA; in gfs2_iomap_begin_write()
1050 rblocks += 2 * RES_STATFS; in gfs2_iomap_begin_write()
1051 rblocks += gfs2_rg_blocks(ip, data_blocks + ind_blocks); in gfs2_iomap_begin_write()
1053 ret = gfs2_trans_begin(sdp, rblocks, in gfs2_iomap_begin_write()