bcachefs: bch_sb_field_journal_v2
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 10 Mar 2022 21:43:52 +0000 (16:43 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:29 +0000 (17:09 -0400)
commit25be2e5d4a051ff2408c7ab007394e96798cf559
tree2bf05701315558ea320da6c2b9a00403d8dd1343
parentb17d3cec14b487924df709dbeffb900f124a2607
bcachefs: bch_sb_field_journal_v2

Add a new superblock field which represents journal buckets as ranges:
also move code for the superblock journal fields to journal_sb.c.

This also reworks the code for resizing the journal to write the new
superblock before using the new journal buckets, and thus be a bit
safer.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/Makefile
fs/bcachefs/bcachefs_format.h
fs/bcachefs/journal.c
fs/bcachefs/journal_sb.c [new file with mode: 0644]
fs/bcachefs/journal_sb.h [new file with mode: 0644]
fs/bcachefs/super-io.c
fs/bcachefs/super-io.h