Searched refs:rblocks (Results 1 – 3 of 3) sorted by relevance
/linux-4.1.27/drivers/misc/ |
D | sram.c | 64 struct sram_reserve *rblocks, *block; in sram_probe() local 108 rblocks = kmalloc((nblocks) * sizeof(*rblocks), GFP_KERNEL); in sram_probe() 109 if (!rblocks) { in sram_probe() 114 block = &rblocks[0]; in sram_probe() 146 rblocks[nblocks - 1].start = size; in sram_probe() 147 rblocks[nblocks - 1].size = 0; in sram_probe() 148 list_add_tail(&rblocks[nblocks - 1].list, &reserve_list); in sram_probe() 189 kfree(rblocks); in sram_probe() 198 kfree(rblocks); in sram_probe()
|
/linux-4.1.27/fs/gfs2/ |
D | file.c | 390 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()
|
D | aops.c | 646 unsigned int data_blocks = 0, ind_blocks = 0, rblocks; in gfs2_write_begin() local 685 rblocks = RES_DINODE + ind_blocks; in gfs2_write_begin() 687 rblocks += data_blocks ? data_blocks : 1; in gfs2_write_begin() 689 rblocks += RES_STATFS + RES_QUOTA; in gfs2_write_begin() 691 rblocks += 2 * RES_STATFS; in gfs2_write_begin() 693 rblocks += gfs2_rg_blocks(ip, requested); in gfs2_write_begin() 695 error = gfs2_trans_begin(sdp, rblocks, in gfs2_write_begin()
|