]> Git Repo - linux.git/commit
bcachefs: Fix compilation error for bch2_sb_member_alloc
authorHongbo Li <[email protected]>
Wed, 4 Sep 2024 07:15:32 +0000 (15:15 +0800)
committerKent Overstreet <[email protected]>
Sat, 21 Sep 2024 15:39:48 +0000 (11:39 -0400)
commitb161ca80968b55e551b82955e65264e8fc5f8660
treee5a78fcd48833233365e69d357694f7e93237d9c
parent17405279e82aaa302e134655f74e713a0968a16c
bcachefs: Fix compilation error for bch2_sb_member_alloc

Fix the following compilation error:

```
fs/bcachefs/sb-members.c: In function ‘bch2_sb_member_alloc’:
fs/bcachefs/sb-members.c:508:2: error: a label can only be part of a statement and a declaration is not a statement
  508 |  unsigned nr_devices = max_t(unsigned, dev_idx + 1, c->sb.nr_devices);
```

Fixes: a7d364a133c7 ("bcachefs: bch2_sb_member_alloc()")
Signed-off-by: Hongbo Li <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
fs/bcachefs/sb-members.c
This page took 0.051074 seconds and 4 git commands to generate.