bcachefs: Allow shorter JSET_ENTRY_dev_usage entries
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 12 Jun 2021 21:20:02 +0000 (17:20 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:06 +0000 (17:09 -0400)
commit45c2e33f791a6c5ebae0accdbfbfef4720701339
tree012457744e56bca6bc02e1328fb0ca3d7ef0c5df
parent044c8c9e05bc87cdc610eb320e8fdc694f3866df
bcachefs: Allow shorter JSET_ENTRY_dev_usage entries

If the last entry(ies) would be all zeros, there's no need to write them
out - the read path already handles that.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/journal_io.c