diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-27 18:16:15 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-10 22:34:08 +0300 |
commit | 52f7d75e7d36ae4258c4ceef4cb86dc2950e7906 (patch) | |
tree | 31f8e1de600b6e52819af664fe3f47a800e9a6d5 /fs/bcachefs/sb-clean.c | |
parent | 3d3d23b341109fe349b1f448c2d89d2ee4429415 (diff) | |
download | linux-52f7d75e7d36ae4258c4ceef4cb86dc2950e7906.tar.xz |
bcachefs: jset_entry_datetime
This gives us a way to record the date and time every journal entry was
written - useful for debugging.
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 | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/bcachefs/sb-clean.c b/fs/bcachefs/sb-clean.c index b6bf0ebe7e84..5980ba2563fe 100644 --- a/fs/bcachefs/sb-clean.c +++ b/fs/bcachefs/sb-clean.c @@ -171,22 +171,6 @@ fsck_err: return ERR_PTR(ret); } -static struct jset_entry *jset_entry_init(struct jset_entry **end, size_t size) -{ - struct jset_entry *entry = *end; - unsigned u64s = DIV_ROUND_UP(size, sizeof(u64)); - - memset(entry, 0, u64s * sizeof(u64)); - /* - * The u64s field counts from the start of data, ignoring the shared - * fields. - */ - entry->u64s = cpu_to_le16(u64s - 1); - - *end = vstruct_next(*end); - return entry; -} - void bch2_journal_super_entries_add_common(struct bch_fs *c, struct jset_entry **end, u64 journal_seq) |