diff options
| author | Kent Overstreet <[email protected]> | 2024-09-25 02:53:56 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-09-28 01:46:35 +0000 |
| commit | 1e0272ef4774eed8314e8d10a8856c979deeaf35 (patch) | |
| tree | 074c425b8aea754a5b35ebff3913999ea4f15645 /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: fix transaction restart handling in check_extents(), check_dirents() (diff) | |
| download | kernel-1e0272ef4774eed8314e8d10a8856c979deeaf35.tar.gz kernel-1e0272ef4774eed8314e8d10a8856c979deeaf35.zip | |
bcachefs: bch_accounting_mode
Minor refactoring - replace multiple bool arguments with an enum; prep
work for fixing a bug in accounting read.
Signed-off-by: Kent Overstreet <[email protected]>
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 91884da4e30a..4a131e3b6225 100644 --- a/fs/bcachefs/btree_trans_commit.c +++ b/fs/bcachefs/btree_trans_commit.c @@ -712,7 +712,7 @@ bch2_trans_commit_write_locked(struct btree_trans *trans, unsigned flags, a->k.version = journal_pos_to_bversion(&trans->journal_res, (u64 *) entry - (u64 *) trans->journal_entries); BUG_ON(bversion_zero(a->k.version)); - ret = bch2_accounting_mem_mod_locked(trans, accounting_i_to_s_c(a), false, false); + ret = bch2_accounting_mem_mod_locked(trans, accounting_i_to_s_c(a), BCH_ACCOUNTING_normal); if (ret) goto revert_fs_usage; } @@ -798,7 +798,7 @@ revert_fs_usage: struct bkey_s_accounting a = bkey_i_to_s_accounting(entry2->start); bch2_accounting_neg(a); - bch2_accounting_mem_mod_locked(trans, a.c, false, false); + bch2_accounting_mem_mod_locked(trans, a.c, BCH_ACCOUNTING_normal); bch2_accounting_neg(a); } percpu_up_read(&c->mark_lock); |
