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
db39a35d
Commit
db39a35d
authored
May 01, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: pass bch_dev to read_from_stale_dirty_pointer()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
78e9b548
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/bcachefs/io_read.c
fs/bcachefs/io_read.c
+2
-2
No files found.
fs/bcachefs/io_read.c
View file @
db39a35d
...
...
@@ -758,11 +758,11 @@ int __bch2_read_indirect_extent(struct btree_trans *trans,
}
static
noinline
void
read_from_stale_dirty_pointer
(
struct
btree_trans
*
trans
,
struct
bch_dev
*
ca
,
struct
bkey_s_c
k
,
struct
bch_extent_ptr
ptr
)
{
struct
bch_fs
*
c
=
trans
->
c
;
struct
bch_dev
*
ca
=
bch2_dev_bkey_exists
(
c
,
ptr
.
dev
);
struct
btree_iter
iter
;
struct
printbuf
buf
=
PRINTBUF
;
int
ret
;
...
...
@@ -842,7 +842,7 @@ int __bch2_read_extent(struct btree_trans *trans, struct bch_read_bio *orig,
if
((
flags
&
BCH_READ_IN_RETRY
)
&&
!
pick
.
ptr
.
cached
&&
unlikely
(
dev_ptr_stale
(
ca
,
&
pick
.
ptr
)))
{
read_from_stale_dirty_pointer
(
trans
,
k
,
pick
.
ptr
);
read_from_stale_dirty_pointer
(
trans
,
ca
,
k
,
pick
.
ptr
);
bch2_mark_io_failure
(
failed
,
&
pick
);
goto
retry_pick
;
}
...
...
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