Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/misc/
Dsram.c182 struct sram_reserve *rblocks, *block; in sram_reserve_regions() local
197 rblocks = kzalloc((nblocks) * sizeof(*rblocks), GFP_KERNEL); in sram_reserve_regions()
198 if (!rblocks) in sram_reserve_regions()
201 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()
332 kfree(rblocks); in sram_reserve_regions()
/linux-4.4.14/fs/gfs2/
Dfile.c390 unsigned int data_blocks, ind_blocks, rblocks; in gfs2_page_mkwrite() local
440 rblocks = RES_DINODE + ind_blocks; in gfs2_page_mkwrite()
442 rblocks += data_blocks ? data_blocks : 1; in gfs2_page_mkwrite()
444 rblocks += RES_STATFS + RES_QUOTA; in gfs2_page_mkwrite()
445 rblocks += gfs2_rg_blocks(ip, data_blocks + ind_blocks); in gfs2_page_mkwrite()
447 ret = gfs2_trans_begin(sdp, rblocks, 0); in gfs2_page_mkwrite()
806 unsigned int data_blocks = 0, ind_blocks = 0, rblocks; in __gfs2_fallocate() local
876 rblocks = RES_DINODE + ind_blocks + RES_STATFS + RES_QUOTA + in __gfs2_fallocate()
879 rblocks += data_blocks ? data_blocks : 1; in __gfs2_fallocate()
881 error = gfs2_trans_begin(sdp, rblocks, in __gfs2_fallocate()
Daops.c650 unsigned int data_blocks = 0, ind_blocks = 0, rblocks; in gfs2_write_begin() local
689 rblocks = RES_DINODE + ind_blocks; in gfs2_write_begin()
691 rblocks += data_blocks ? data_blocks : 1; in gfs2_write_begin()
693 rblocks += RES_STATFS + RES_QUOTA; in gfs2_write_begin()
695 rblocks += 2 * RES_STATFS; in gfs2_write_begin()
697 rblocks += gfs2_rg_blocks(ip, requested); in gfs2_write_begin()
699 error = gfs2_trans_begin(sdp, rblocks, in gfs2_write_begin()