Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
37707bb1
Commit
37707bb1
authored
Oct 22, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Split out disk_groups_types.h
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
bf0d9e89
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs.h
+1
-0
fs/bcachefs/disk_groups.h
fs/bcachefs/disk_groups.h
+2
-0
fs/bcachefs/disk_groups_types.h
fs/bcachefs/disk_groups_types.h
+17
-0
fs/bcachefs/super_types.h
fs/bcachefs/super_types.h
+0
-12
No files found.
fs/bcachefs/bcachefs.h
View file @
37707bb1
...
@@ -418,6 +418,7 @@ enum bch_time_stats {
...
@@ -418,6 +418,7 @@ enum bch_time_stats {
#include "buckets_types.h"
#include "buckets_types.h"
#include "buckets_waiting_for_journal_types.h"
#include "buckets_waiting_for_journal_types.h"
#include "clock_types.h"
#include "clock_types.h"
#include "disk_groups_types.h"
#include "ec_types.h"
#include "ec_types.h"
#include "journal_types.h"
#include "journal_types.h"
#include "keylist_types.h"
#include "keylist_types.h"
...
...
fs/bcachefs/disk_groups.h
View file @
37707bb1
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
#ifndef _BCACHEFS_DISK_GROUPS_H
#ifndef _BCACHEFS_DISK_GROUPS_H
#define _BCACHEFS_DISK_GROUPS_H
#define _BCACHEFS_DISK_GROUPS_H
#include "disk_groups_types.h"
extern
const
struct
bch_sb_field_ops
bch_sb_field_ops_disk_groups
;
extern
const
struct
bch_sb_field_ops
bch_sb_field_ops_disk_groups
;
static
inline
unsigned
disk_groups_nr
(
struct
bch_sb_field_disk_groups
*
groups
)
static
inline
unsigned
disk_groups_nr
(
struct
bch_sb_field_disk_groups
*
groups
)
...
...
fs/bcachefs/disk_groups_types.h
0 → 100644
View file @
37707bb1
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _BCACHEFS_DISK_GROUPS_TYPES_H
#define _BCACHEFS_DISK_GROUPS_TYPES_H
struct
bch_disk_group_cpu
{
bool
deleted
;
u16
parent
;
struct
bch_devs_mask
devs
;
};
struct
bch_disk_groups_cpu
{
struct
rcu_head
rcu
;
unsigned
nr
;
struct
bch_disk_group_cpu
entries
[]
__counted_by
(
nr
);
};
#endif
/* _BCACHEFS_DISK_GROUPS_TYPES_H */
fs/bcachefs/super_types.h
View file @
37707bb1
...
@@ -37,16 +37,4 @@ struct bch_member_cpu {
...
@@ -37,16 +37,4 @@ struct bch_member_cpu {
u8
valid
;
u8
valid
;
};
};
struct
bch_disk_group_cpu
{
bool
deleted
;
u16
parent
;
struct
bch_devs_mask
devs
;
};
struct
bch_disk_groups_cpu
{
struct
rcu_head
rcu
;
unsigned
nr
;
struct
bch_disk_group_cpu
entries
[]
__counted_by
(
nr
);
};
#endif
/* _BCACHEFS_SUPER_TYPES_H */
#endif
/* _BCACHEFS_SUPER_TYPES_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment