diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-13 20:01:42 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:46 -0400 |
commit | b2d1d56b1d34bcfb6da77eb74a2fbcdea92514f9 (patch) | |
tree | 01c678f5b0e103d80567273497fd3429ae265dbb /fs/bcachefs/rebalance.c | |
parent | a7ecd30c8300624448c4e66cd7a7e7209b96ea61 (diff) | |
download | linux-b2d1d56b1d34bcfb6da77eb74a2fbcdea92514f9.tar.gz linux-b2d1d56b1d34bcfb6da77eb74a2fbcdea92514f9.tar.bz2 linux-b2d1d56b1d34bcfb6da77eb74a2fbcdea92514f9.zip |
bcachefs: Fixes for building in userspace
- Marking a non-static function as inline doesn't actually work and is
now causing problems - drop that
- Introduce BCACHEFS_LOG_PREFIX for when we want to prefix log messages
with bcachefs (filesystem name)
- Userspace doesn't have real percpu variables (maybe we can get this
fixed someday), put an #ifdef around bch2_disk_reservation_add()
fastpath
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/rebalance.c')
-rw-r--r-- | fs/bcachefs/rebalance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c index 6b9ccc1b3fe3..66c40999163d 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -189,7 +189,7 @@ static int bch2_rebalance_thread(void *arg) prev_start = jiffies; prev_cputime = curr_cputime(); - bch_move_stats_init(&move_stats, "rebalance"); + bch2_move_stats_init(&move_stats, "rebalance"); while (!kthread_wait_freezable(r->enabled)) { cond_resched(); |