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
20ac515a
Commit
20ac515a
authored
Mar 19, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: bch_acct_rebalance_work
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
6af91147
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
fs/bcachefs/buckets.c
fs/bcachefs/buckets.c
+9
-0
fs/bcachefs/disk_accounting_format.h
fs/bcachefs/disk_accounting_format.h
+2
-1
No files found.
fs/bcachefs/buckets.c
View file @
20ac515a
...
...
@@ -808,6 +808,15 @@ static int __trigger_extent(struct btree_trans *trans,
return
ret
;
}
if
(
bch2_bkey_rebalance_opts
(
k
))
{
struct
disk_accounting_pos
acc
=
{
.
type
=
BCH_DISK_ACCOUNTING_rebalance_work
,
};
ret
=
bch2_disk_accounting_mod
(
trans
,
&
acc
,
&
replicas_sectors
,
1
,
gc
);
if
(
ret
)
return
ret
;
}
return
0
;
}
...
...
fs/bcachefs/disk_accounting_format.h
View file @
20ac515a
...
...
@@ -102,7 +102,8 @@ static inline bool data_type_is_hidden(enum bch_data_type type)
x(dev_data_type, 3) \
x(compression, 4) \
x(snapshot, 5) \
x(btree, 6)
x(btree, 6) \
x(rebalance_work, 7)
enum
disk_accounting_type
{
#define x(f, nr) BCH_DISK_ACCOUNTING_##f = nr,
...
...
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