diff options
| author | Kent Overstreet <[email protected]> | 2024-01-07 22:14:46 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-01-21 11:01:45 +0000 |
| commit | 38c23fb809f60bda1adfc431b18200b8f68c2025 (patch) | |
| tree | 48f374d06315169812d6b61cce3a2db4aa1643a7 /fs/bcachefs/inode.c | |
| parent | bcachefs: drop to_text code for obsolete bps in alloc keys (diff) | |
| download | kernel-38c23fb809f60bda1adfc431b18200b8f68c2025.tar.gz kernel-38c23fb809f60bda1adfc431b18200b8f68c2025.zip | |
bcachefs: BTREE_TRIGGER_ATOMIC
Add a new flag to be explicit about when we're running atomic triggers.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/inode.c')
| -rw-r--r-- | fs/bcachefs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index 37dce96f48ac..51a06324b21d 100644 --- a/fs/bcachefs/inode.c +++ b/fs/bcachefs/inode.c @@ -587,7 +587,7 @@ int bch2_trigger_inode(struct btree_trans *trans, } } - if (!(flags & BTREE_TRIGGER_TRANSACTIONAL) && (flags & BTREE_TRIGGER_INSERT)) { + if ((flags & BTREE_TRIGGER_ATOMIC) && (flags & BTREE_TRIGGER_INSERT)) { BUG_ON(!trans->journal_res.seq); bkey_s_to_inode_v3(new).v->bi_journal_seq = cpu_to_le64(trans->journal_res.seq); |
