diff options
author | Brian Foster <bfoster@redhat.com> | 2023-09-15 08:51:52 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:14 -0400 |
commit | fc08031bb84b2b4660406faf9f30db8cdd09d022 (patch) | |
tree | a8bb1afdb1b78747777d4ad1dc954ee56375e190 /fs/bcachefs/journal.c | |
parent | 92b63f5bf0774eab2e62b86f85bb4efb915edef1 (diff) |
bcachefs: prepare journal buf put to handle pin put
bcachefs freeze testing has uncovered some raciness between journal
entry open/close and pin list reference count management. The
details of the problem are described in a separate patch. In
preparation for the associated fix, refactor the journal buffer put
path a bit to allow it to eventually handle dropping the pin list
reference currently held by an open journal entry.
Retain the journal write dispatch helper since the closure code is
inlined and we don't want to increase the amount of inline code in
the transaction commit path, but rename the function to reflect
the purpose of final processing of the journal buffer.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal.c')
-rw-r--r-- | fs/bcachefs/journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 210a2b90bb50..be61d43458eb 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -134,7 +134,7 @@ journal_error_check_stuck(struct journal *j, int error, unsigned flags) /* journal entry close/open: */ -void __bch2_journal_buf_put(struct journal *j) +void bch2_journal_buf_put_final(struct journal *j) { struct bch_fs *c = container_of(j, struct bch_fs, journal); |