mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
7773df19c3
New on disk format version for bch_alloc->stripe_sectors and BCH_DATA_unstriped - accounting for unstriped data in stripe buckets. Upgrade/downgrade requires regenerating alloc info - but only if erasure coding is in use. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 lines
434 B
C
13 lines
434 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHEFS_SB_DOWNGRADE_H
|
|
#define _BCACHEFS_SB_DOWNGRADE_H
|
|
|
|
extern const struct bch_sb_field_ops bch_sb_field_ops_downgrade;
|
|
|
|
int bch2_sb_downgrade_update(struct bch_fs *);
|
|
void bch2_sb_set_upgrade(struct bch_fs *, unsigned, unsigned);
|
|
int bch2_sb_set_upgrade_extra(struct bch_fs *);
|
|
void bch2_sb_set_downgrade(struct bch_fs *, unsigned, unsigned);
|
|
|
|
#endif /* _BCACHEFS_SB_DOWNGRADE_H */
|