diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-03 02:43:26 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-05 19:12:18 +0100 |
commit | 769b3600495b8a2ea3c2136121800ce6b566a457 (patch) | |
tree | 73cc8d58b7567b67ab4470454468794c130d0563 /fs/bcachefs/sb-clean.c | |
parent | bcachefs: Break up bch2_journal_write() (diff) | |
download | linux-769b3600495b8a2ea3c2136121800ce6b566a457.tar.xz linux-769b3600495b8a2ea3c2136121800ce6b566a457.zip |
bcachefs: Don't iterate over journal entries just for btree roots
Small performance optimization, and a bit of a code cleanup too.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-clean.c')
-rw-r--r-- | fs/bcachefs/sb-clean.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-clean.c b/fs/bcachefs/sb-clean.c index 9b6cc86d264a..e151ada1c8bd 100644 --- a/fs/bcachefs/sb-clean.c +++ b/fs/bcachefs/sb-clean.c @@ -376,7 +376,7 @@ void bch2_fs_mark_clean(struct bch_fs *c) entry = sb_clean->start; bch2_journal_super_entries_add_common(c, &entry, 0); - entry = bch2_btree_roots_to_journal_entries(c, entry, entry); + entry = bch2_btree_roots_to_journal_entries(c, entry, 0); BUG_ON((void *) entry > vstruct_end(&sb_clean->field)); memset(entry, 0, |