diff options
author | 2019-02-14 18:38:52 -0500 | |
---|---|---|
committer | 2023-10-22 17:08:16 -0400 | |
commit | 768ac63924775d9fe2e76fbb254704d5ee3bcb85 (patch) | |
tree | ef815d5e731c2a1062ebb27bc1da414098c245a4 /fs/bcachefs/journal_types.h | |
parent | bcachefs: Convert bucket invalidation to key marking path (diff) | |
download | linux-768ac63924775d9fe2e76fbb254704d5ee3bcb85.tar.gz linux-768ac63924775d9fe2e76fbb254704d5ee3bcb85.tar.bz2 linux-768ac63924775d9fe2e76fbb254704d5ee3bcb85.zip |
bcachefs: Add a mechanism for blocking the journal
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_types.h')
-rw-r--r-- | fs/bcachefs/journal_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/journal_types.h b/fs/bcachefs/journal_types.h index 5f6d2320c5cd..e952eb06eff5 100644 --- a/fs/bcachefs/journal_types.h +++ b/fs/bcachefs/journal_types.h @@ -142,6 +142,9 @@ struct journal { spinlock_t lock; + /* if nonzero, we may not open a new journal entry: */ + unsigned blocked; + /* Used when waiting because the journal was full */ wait_queue_head_t wait; struct closure_waitlist async_wait; |