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
60476b14
Commit
60476b14
authored
Jul 23, 2018
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: fix last_seq_ondisk
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
658971f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fs/bcachefs/journal_io.c
fs/bcachefs/journal_io.c
+2
-1
No files found.
fs/bcachefs/journal_io.c
View file @
60476b14
...
...
@@ -1207,6 +1207,7 @@ static void journal_write_done(struct closure *cl)
struct
bch_devs_list
devs
=
bch2_extent_devs
(
bkey_i_to_s_c_extent
(
&
w
->
key
));
u64
seq
=
le64_to_cpu
(
w
->
data
->
seq
);
u64
last_seq
=
le64_to_cpu
(
w
->
data
->
last_seq
);
if
(
!
devs
.
nr
)
{
bch_err
(
c
,
"unable to write journal to sufficient devices"
);
...
...
@@ -1219,7 +1220,7 @@ static void journal_write_done(struct closure *cl)
bch2_time_stats_update
(
j
->
write_time
,
j
->
write_start_time
);
spin_lock
(
&
j
->
lock
);
j
->
last_seq_ondisk
=
seq
;
j
->
last_seq_ondisk
=
last_
seq
;
if
(
seq
>=
j
->
pin
.
front
)
journal_seq_pin
(
j
,
seq
)
->
devs
=
devs
;
...
...
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