diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-05 20:35:36 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:14:48 -0400 |
| commit | 96fc7d8adb7881f7ffffcd6ab2be3b43fc5a5978 (patch) | |
| tree | 2262a91f39c9c3e9c74a9e63b59c192554ec026e /fs/bcachefs/super.c | |
| parent | 502222041c810b5d5ba5d45512e0a131c7f07d0a (diff) | |
| download | linux-next-96fc7d8adb7881f7ffffcd6ab2be3b43fc5a5978.tar.gz linux-next-96fc7d8adb7881f7ffffcd6ab2be3b43fc5a5978.zip | |
bcachefs: opts.rebalance_on_ac_only
Add an option for setting rebalance to only run when connected to mains
power.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.c')
| -rw-r--r-- | fs/bcachefs/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 7c6ea43b4347..bd0565b7a9ba 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -583,6 +583,7 @@ static void __bch2_fs_free(struct bch_fs *c) bch2_fs_snapshots_exit(c); bch2_fs_sb_errors_exit(c); bch2_fs_replicas_exit(c); + bch2_fs_rebalance_exit(c); bch2_fs_quota_exit(c); bch2_fs_nocow_locking_exit(c); bch2_fs_journal_exit(&c->journal); @@ -867,7 +868,6 @@ static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts *opts, bch2_fs_move_init(c); bch2_fs_nocow_locking_init_early(c); bch2_fs_quota_init(c); - bch2_fs_rebalance_init(c); bch2_fs_sb_errors_init_early(c); bch2_fs_snapshots_init_early(c); bch2_fs_subvolumes_init_early(c); @@ -989,6 +989,7 @@ static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts *opts, bch2_fs_fsio_init(c) ?: bch2_fs_fs_io_direct_init(c) ?: bch2_fs_io_read_init(c) ?: + bch2_fs_rebalance_init(c) ?: bch2_fs_sb_errors_init(c) ?: bch2_fs_vfs_init(c); if (ret) |
