Lines Matching refs:disk_res
32 struct disk_reservation disk_res = { 0 }; in bch2_extent_fallocate() local
59 ret = bch2_disk_reservation_get(c, &disk_res, sectors, new_replicas, 0); in bch2_extent_fallocate()
111 ret = bch2_extent_update(trans, inum, iter, new.k, &disk_res, in bch2_extent_fallocate()
126 bch2_disk_reservation_put(c, &disk_res); in bch2_extent_fallocate()
143 struct disk_reservation disk_res = bch2_disk_reservation_init(c, 0); in bch2_fpunch_snapshot() local
149 &disk_res, NULL, BCH_TRANS_COMMIT_no_enospc, ({ in bch2_fpunch_snapshot()
161 bch2_disk_reservation_put(c, &disk_res); in bch2_fpunch_snapshot()
181 struct disk_reservation disk_res = in bch2_fpunch_at() local
215 &disk_res, 0, i_sectors_delta, false); in bch2_fpunch_at()
216 bch2_disk_reservation_put(c, &disk_res); in bch2_fpunch_at()
442 struct disk_reservation disk_res = in __bch2_resume_logged_op_finsert() local
478 bch2_disk_reservation_add(c, &disk_res, in __bch2_resume_logged_op_finsert()
498 bch2_trans_commit(trans, &disk_res, NULL, BCH_TRANS_COMMIT_no_enospc); in __bch2_resume_logged_op_finsert()
500 bch2_disk_reservation_put(c, &disk_res); in __bch2_resume_logged_op_finsert()