diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-31 22:28:09 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:04 -0400 |
commit | 7e94eeffe0e79a54e525ad05302eb454fb96affd (patch) | |
tree | 840f163a833701377be0a9cae0ac25e1ab406058 /fs/bcachefs/buckets.c | |
parent | ddc7dd62f0971d5c46c155134c647e7d493b2045 (diff) | |
download | lwn-7e94eeffe0e79a54e525ad05302eb454fb96affd.tar.gz lwn-7e94eeffe0e79a54e525ad05302eb454fb96affd.zip |
bcachefs: Inline fastpath of bch2_disk_reservation_add()
The fastpath now doesn't even disable preemption - instead we use a (non
locked) cmpxchg.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.c')
-rw-r--r-- | fs/bcachefs/buckets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index b37cdf7279de..6389ec7ba18b 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -2107,7 +2107,7 @@ int bch2_trans_mark_dev_sb(struct bch_fs *c, struct bch_dev *ca) #define SECTORS_CACHE 1024 -int bch2_disk_reservation_add(struct bch_fs *c, struct disk_reservation *res, +int __bch2_disk_reservation_add(struct bch_fs *c, struct disk_reservation *res, u64 sectors, int flags) { struct bch_fs_pcpu *pcpu; |