summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/journal_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-04-03 21:31:02 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:59 -0400
commit671cc8a51b019b49a8538aceaaa5e770c1694c1b (patch)
tree712f2a3ec1ecb449caa883416e04fb1dfd8cd03d /fs/bcachefs/journal_types.h
parent08e337618f67abb9be1ff4b022a14e8721c5def2 (diff)
downloadlinux-671cc8a51b019b49a8538aceaaa5e770c1694c1b.tar.gz
linux-671cc8a51b019b49a8538aceaaa5e770c1694c1b.tar.bz2
linux-671cc8a51b019b49a8538aceaaa5e770c1694c1b.zip
bcachefs: Eliminate memory barrier from fast path of journal_preres_put()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal_types.h')
-rw-r--r--fs/bcachefs/journal_types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/journal_types.h b/fs/bcachefs/journal_types.h
index ec3c604cdf22..97d764370b89 100644
--- a/fs/bcachefs/journal_types.h
+++ b/fs/bcachefs/journal_types.h
@@ -105,8 +105,9 @@ union journal_preres_state {
};
struct {
- u32 reserved;
- u32 remaining;
+ u64 waiting:1,
+ reserved:31,
+ remaining:32;
};
};