Home
last modified time | relevance | path

Searched refs:disk_res (Results 1 – 12 of 12) sorted by relevance

/linux-6.15/fs/bcachefs/
H A Dio_misc.c32 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()
154 struct disk_reservation disk_res = in bch2_fpunch_at() local
188 &disk_res, 0, i_sectors_delta, false); in bch2_fpunch_at()
189 bch2_disk_reservation_put(c, &disk_res); in bch2_fpunch_at()
415 struct disk_reservation disk_res = in __bch2_resume_logged_op_finsert() local
451 bch2_disk_reservation_add(c, &disk_res, in __bch2_resume_logged_op_finsert()
471 bch2_trans_commit(trans, &disk_res, NULL, BCH_TRANS_COMMIT_no_enospc); in __bch2_resume_logged_op_finsert()
[all …]
H A Dfs-io-pagecache.c366 struct disk_reservation disk_res = { 0 }; in bch2_get_folio_disk_reservation() local
379 ret = bch2_disk_reservation_get(c, &disk_res, in bch2_get_folio_disk_reservation()
411 struct disk_reservation disk_res = {}; in __bch2_folio_reservation_get() local
433 if (unlikely(disk_res.sectors != disk_sectors)) { in __bch2_folio_reservation_get()
440 if (disk_sectors > disk_res.sectors) { in __bch2_folio_reservation_get()
449 bch2_disk_reservation_put(c, &disk_res); in __bch2_folio_reservation_get()
462 bch2_disk_reservation_put(c, &disk_res); in __bch2_folio_reservation_get()
467 res->disk.sectors += disk_res.sectors; in __bch2_folio_reservation_get()
494 struct disk_reservation disk_res = { 0 }; in bch2_clear_folio_bits() local
504 disk_res.sectors += s->s[i].replicas_reserved; in bch2_clear_folio_bits()
[all …]
H A Dbtree_update.h188 struct disk_reservation *disk_res, in bch2_trans_commit() argument
192 trans->disk_res = disk_res; in bch2_trans_commit()
H A Dbtree_update.c668 struct disk_reservation *disk_res, int flags, in bch2_btree_insert() argument
671 return bch2_trans_commit_do(c, disk_res, NULL, flags, in bch2_btree_insert()
717 struct disk_reservation disk_res = in bch2_btree_delete_range_trans() local
749 bch2_trans_commit(trans, &disk_res, journal_seq, in bch2_btree_delete_range_trans()
751 bch2_disk_reservation_put(trans->c, &disk_res); in bch2_btree_delete_range_trans()
H A Dio_write.c300 struct disk_reservation *disk_res, in bch2_extent_update() argument
333 if (disk_res && in bch2_extent_update()
334 disk_sectors_delta > (s64) disk_res->sectors) { in bch2_extent_update()
335 ret = bch2_disk_reservation_add(trans->c, disk_res, in bch2_extent_update()
336 disk_sectors_delta - disk_res->sectors, in bch2_extent_update()
353 bch2_trans_commit(trans, disk_res, NULL, in bch2_extent_update()
H A Dreflink.c637 struct disk_reservation disk_res = { 0 }; in bch2_remap_range() local
726 new_dst.k, &disk_res, in bch2_remap_range()
729 bch2_disk_reservation_put(c, &disk_res); in bch2_remap_range()
H A Dbtree_update_interior.h63 struct disk_reservation disk_res; member
H A Dbuckets.c516 u64 disk_res_sectors = trans->disk_res ? trans->disk_res->sectors : 0; in bch2_trans_account_disk_usage_change()
544 trans->disk_res->sectors -= added; in bch2_trans_account_disk_usage_change()
H A Djournal.c1252 struct disk_reservation disk_res = { 0, 0, 0 }; in bch2_set_nr_journal_buckets_loop() local
1265 ret = bch2_disk_reservation_get(c, &disk_res, in bch2_set_nr_journal_buckets_loop()
1277 bch2_disk_reservation_put(c, &disk_res); in bch2_set_nr_journal_buckets_loop()
H A Dbtree_types.h540 struct disk_reservation *disk_res; member
H A Dbtree_update_interior.c529 b = __bch2_btree_node_alloc(trans, &as->disk_res, cl, in bch2_btree_reserve_get()
556 bch2_disk_reservation_put(c, &as->disk_res); in bch2_btree_update_free()
705 ret = commit_do(trans, &as->disk_res, &journal_seq, in btree_update_nodes_written()
1222 ret = bch2_disk_reservation_get(c, &as->disk_res, in bch2_btree_update_start()
H A Dbtree_trans_commit.c1036 ret = bch2_disk_reservation_add(c, trans->disk_res, in __bch2_trans_commit()