diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-23 12:22:39 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:51 -0400 |
commit | 19fe87e00b6a601b2ec8251d0231f4c9b3bb5002 (patch) | |
tree | 0361c52ec7e58c284d54204c41f9e077737f8a43 /fs/bcachefs/nocow_locking.c | |
parent | a8b3a677e786fa869d220a6a78b5532a36dc2f4d (diff) | |
download | linux-19fe87e00b6a601b2ec8251d0231f4c9b3bb5002.tar.gz linux-19fe87e00b6a601b2ec8251d0231f4c9b3bb5002.tar.bz2 linux-19fe87e00b6a601b2ec8251d0231f4c9b3bb5002.zip |
bcachefs: Inline bch2_two_state_(trylock|unlock)
Standard inlining of fast paths - these locks are now used by our new
nocow mode.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/nocow_locking.c')
-rw-r--r-- | fs/bcachefs/nocow_locking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/nocow_locking.c b/fs/bcachefs/nocow_locking.c index 8f06e08370a2..b325fb105322 100644 --- a/fs/bcachefs/nocow_locking.c +++ b/fs/bcachefs/nocow_locking.c @@ -10,6 +10,6 @@ void __bch2_bucket_nocow_lock(struct bucket_nocow_lock_table *t, struct bch_fs *c = container_of(t, struct bch_fs, nocow_locks); u64 start_time = local_clock(); - bch2_two_state_lock(l, flags & BUCKET_NOCOW_LOCK_UPDATE); + __bch2_two_state_lock(l, flags & BUCKET_NOCOW_LOCK_UPDATE); bch2_time_stats_update(&c->times[BCH_TIME_nocow_lock_contended], start_time); } |