Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/misc/
Dsram.c160 struct sram_reserve *rblocks, *block; in sram_reserve_regions() local
175 rblocks = kcalloc(nblocks, sizeof(*rblocks), GFP_KERNEL); in sram_reserve_regions()
176 if (!rblocks) in sram_reserve_regions()
179 block = &rblocks[0]; in sram_reserve_regions()
247 rblocks[nblocks - 1].start = size; in sram_reserve_regions()
248 rblocks[nblocks - 1].size = 0; in sram_reserve_regions()
249 list_add_tail(&rblocks[nblocks - 1].list, &reserve_list); in sram_reserve_regions()
315 kfree(rblocks); in sram_reserve_regions()
/Linux-v5.4/fs/gfs2/
Dfile.c427 unsigned int data_blocks, ind_blocks, rblocks; in gfs2_page_mkwrite() local
473 rblocks = RES_DINODE + ind_blocks; in gfs2_page_mkwrite()
475 rblocks += data_blocks ? data_blocks : 1; in gfs2_page_mkwrite()
477 rblocks += RES_STATFS + RES_QUOTA; in gfs2_page_mkwrite()
478 rblocks += gfs2_rg_blocks(ip, data_blocks + ind_blocks); in gfs2_page_mkwrite()
480 ret = gfs2_trans_begin(sdp, rblocks, 0); in gfs2_page_mkwrite()
975 unsigned int data_blocks = 0, ind_blocks = 0, rblocks; in __gfs2_fallocate() local
1046 rblocks = RES_DINODE + ind_blocks + RES_STATFS + RES_QUOTA + in __gfs2_fallocate()
1049 rblocks += data_blocks ? data_blocks : 1; in __gfs2_fallocate()
1051 error = gfs2_trans_begin(sdp, rblocks, in __gfs2_fallocate()
Dbmap.c1077 unsigned int rblocks; in gfs2_iomap_begin_write() local
1091 rblocks = RES_DINODE + ind_blocks; in gfs2_iomap_begin_write()
1093 rblocks += data_blocks; in gfs2_iomap_begin_write()
1095 rblocks += RES_STATFS + RES_QUOTA; in gfs2_iomap_begin_write()
1097 rblocks += 2 * RES_STATFS; in gfs2_iomap_begin_write()
1098 rblocks += gfs2_rg_blocks(ip, data_blocks + ind_blocks); in gfs2_iomap_begin_write()
1100 ret = gfs2_trans_begin(sdp, rblocks, in gfs2_iomap_begin_write()