diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-11 02:31:12 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:44 -0500 |
commit | 6474b706108bac9e531a71ddeb8150f8fa17163c (patch) | |
tree | a588b981ba8fe155d77377f83f7c4d811e617e76 /fs/bcachefs/btree_trans_commit.c | |
parent | 398c98347d464f7675216c5ea974a82bcdb2bef9 (diff) | |
download | lwn-6474b706108bac9e531a71ddeb8150f8fa17163c.tar.gz lwn-6474b706108bac9e531a71ddeb8150f8fa17163c.zip |
bcachefs: Clean up btree_trans
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
-rw-r--r-- | fs/bcachefs/btree_trans_commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_trans_commit.c b/fs/bcachefs/btree_trans_commit.c index 0e3603d367f9..7e6ba3061e7c 100644 --- a/fs/bcachefs/btree_trans_commit.c +++ b/fs/bcachefs/btree_trans_commit.c @@ -1044,9 +1044,9 @@ int __bch2_trans_commit(struct btree_trans *trans, unsigned flags) trans->journal_u64s += jset_u64s(i->old_k.u64s); } - if (trans->extra_journal_res) { + if (trans->extra_disk_res) { ret = bch2_disk_reservation_add(c, trans->disk_res, - trans->extra_journal_res, + trans->extra_disk_res, (flags & BCH_TRANS_COMMIT_no_enospc) ? BCH_DISK_RESERVATION_NOFAIL : 0); if (ret) |