diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-04 16:24:43 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:14:46 -0400 |
| commit | 84bd6afee121b9e9bcc26f88cb55e0ee5c7a8f56 (patch) | |
| tree | a1f78e1e1a30225d150d44389f4feec03334ec04 /fs/bcachefs/alloc_foreground.c | |
| parent | bcachefs: bch2_dev_in_target() no longer takes rcu_read_lock() (diff) | |
| download | linux-84bd6afee121b9e9bcc26f88cb55e0ee5c7a8f56.tar.gz linux-84bd6afee121b9e9bcc26f88cb55e0ee5c7a8f56.zip | |
bcachefs: inline bch2_ob_ptr()
This was an oversight, we want bch2_alloc_sectors_append_ptrs_inlined()
fully inlined.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.c')
| -rw-r--r-- | fs/bcachefs/alloc_foreground.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index 2d7f32f9499e..b50846da7ae4 100644 --- a/fs/bcachefs/alloc_foreground.c +++ b/fs/bcachefs/alloc_foreground.c @@ -1388,20 +1388,6 @@ err: return ret; } -struct bch_extent_ptr bch2_ob_ptr(struct bch_fs *c, struct open_bucket *ob) -{ - struct bch_dev *ca = ob_dev(c, ob); - - return (struct bch_extent_ptr) { - .type = 1 << BCH_EXTENT_ENTRY_ptr, - .gen = ob->gen, - .dev = ob->dev, - .offset = bucket_to_sector(ca, ob->bucket) + - ca->mi.bucket_size - - ob->sectors_free, - }; -} - void bch2_alloc_sectors_append_ptrs(struct bch_fs *c, struct write_point *wp, struct bkey_i *k, unsigned sectors, bool cached) |
