summaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-10-19 17:50:41 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-10-20 16:50:14 -0400
commit3956ff8bc2f39a7e77d7a6da8d95c7ffc4928d64 (patch)
treea3073ac4a4a818aec7f0afa9afa65431f80d432d /fs/bcachefs/journal.h
parenteb5db64c4570948e6ee0b0f53d658e136e06cd04 (diff)
downloadlwn-3956ff8bc2f39a7e77d7a6da8d95c7ffc4928d64.tar.gz
lwn-3956ff8bc2f39a7e77d7a6da8d95c7ffc4928d64.zip
bcachefs: Don't use wait_event_interruptible() in recovery
Fix a bug where mount was failing with -ERESTARTSYS: https://github.com/koverstreet/bcachefs/issues/741 We only want the interruptible wait when called from fsync. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal.h')
-rw-r--r--fs/bcachefs/journal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/journal.h b/fs/bcachefs/journal.h
index 377a3750406e..2762be6f9814 100644
--- a/fs/bcachefs/journal.h
+++ b/fs/bcachefs/journal.h
@@ -401,7 +401,7 @@ void bch2_journal_entry_res_resize(struct journal *,
int bch2_journal_flush_seq_async(struct journal *, u64, struct closure *);
void bch2_journal_flush_async(struct journal *, struct closure *);
-int bch2_journal_flush_seq(struct journal *, u64);
+int bch2_journal_flush_seq(struct journal *, u64, unsigned);
int bch2_journal_flush(struct journal *);
bool bch2_journal_noflush_seq(struct journal *, u64);
int bch2_journal_meta(struct journal *);