summaryrefslogtreecommitdiff
path: root/samples/landlock
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-20 00:08:11 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-23 23:40:46 -0500
commit339c51397e9f6b3c377e8559a81ca74e9bbfd493 (patch)
treedfa7a6d1b607be5102e0d792ca72e5d129ad3bcd /samples/landlock
parent5be20aa87df1bc2723f5f41e37c6c4aa4e0a6093 (diff)
bcachefs: Zone support for journal codezones
For zoned devices, we need to ensure we close buckets we're no longer writing to, since some (flash) devices have a limit on the number of active zones. Also, on startup, if we're going to continue appending to a partially-written bucket we need to query the zone's write pointer. This patch updates the journal code to: - On startup, we now query the write pointer for the bucket cur_idx points to - On startup, we ensure all journal buckets except that the one cur_idx points to are closed - In the journal write path, we factor out journal_close_buckets(), which now increments cur_idx when a bucket fills up so that we can start allocating from the next one - it now also issues the appropriate zone command to close the previous bucket. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'samples/landlock')
0 files changed, 0 insertions, 0 deletions