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
2685c67d
Commit
2685c67d
authored
Apr 30, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: dirty_sectors -> replicas_sectors
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
d3c44cfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/bcachefs/buckets.c
fs/bcachefs/buckets.c
+4
-4
No files found.
fs/bcachefs/buckets.c
View file @
2685c67d
...
...
@@ -1144,7 +1144,7 @@ static int __trigger_extent(struct btree_trans *trans,
enum
bch_data_type
data_type
=
bkey_is_btree_ptr
(
k
.
k
)
?
BCH_DATA_btree
:
BCH_DATA_user
;
s64
dirty
_sectors
=
0
;
s64
replicas
_sectors
=
0
;
int
ret
=
0
;
r
.
e
.
data_type
=
data_type
;
...
...
@@ -1170,7 +1170,7 @@ static int __trigger_extent(struct btree_trans *trans,
return
ret
;
}
}
else
if
(
!
p
.
has_ec
)
{
dirty_sectors
+=
disk_sectors
;
replicas_sectors
+=
disk_sectors
;
r
.
e
.
devs
[
r
.
e
.
nr_devs
++
]
=
p
.
ptr
.
dev
;
}
else
{
ret
=
bch2_trigger_stripe_ptr
(
trans
,
k
,
p
,
data_type
,
disk_sectors
,
flags
);
...
...
@@ -1188,8 +1188,8 @@ static int __trigger_extent(struct btree_trans *trans,
if
(
r
.
e
.
nr_devs
)
{
ret
=
!
gc
?
bch2_update_replicas_list
(
trans
,
&
r
.
e
,
dirty
_sectors
)
:
bch2_update_replicas
(
c
,
k
,
&
r
.
e
,
dirty
_sectors
,
0
,
true
);
?
bch2_update_replicas_list
(
trans
,
&
r
.
e
,
replicas
_sectors
)
:
bch2_update_replicas
(
c
,
k
,
&
r
.
e
,
replicas
_sectors
,
0
,
true
);
if
(
unlikely
(
ret
&&
gc
))
{
struct
printbuf
buf
=
PRINTBUF
;
...
...
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