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
56338d3d
Commit
56338d3d
authored
Dec 05, 2018
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: propagate BCH_WRITE_CACHED
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
9166b41d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
fs/bcachefs/io.c
fs/bcachefs/io.c
+5
-0
No files found.
fs/bcachefs/io.c
View file @
56338d3d
...
@@ -425,6 +425,7 @@ static void init_append_extent(struct bch_write_op *op,
...
@@ -425,6 +425,7 @@ static void init_append_extent(struct bch_write_op *op,
struct
bch_extent_crc_unpacked
crc
)
struct
bch_extent_crc_unpacked
crc
)
{
{
struct
bkey_i_extent
*
e
=
bkey_extent_init
(
op
->
insert_keys
.
top
);
struct
bkey_i_extent
*
e
=
bkey_extent_init
(
op
->
insert_keys
.
top
);
struct
bch_extent_ptr
*
ptr
;
op
->
pos
.
offset
+=
crc
.
uncompressed_size
;
op
->
pos
.
offset
+=
crc
.
uncompressed_size
;
e
->
k
.
p
=
op
->
pos
;
e
->
k
.
p
=
op
->
pos
;
...
@@ -438,6 +439,10 @@ static void init_append_extent(struct bch_write_op *op,
...
@@ -438,6 +439,10 @@ static void init_append_extent(struct bch_write_op *op,
bch2_alloc_sectors_append_ptrs
(
op
->
c
,
wp
,
&
e
->
k_i
,
crc
.
compressed_size
);
bch2_alloc_sectors_append_ptrs
(
op
->
c
,
wp
,
&
e
->
k_i
,
crc
.
compressed_size
);
if
(
op
->
flags
&
BCH_WRITE_CACHED
)
extent_for_each_ptr
(
extent_i_to_s
(
e
),
ptr
)
ptr
->
cached
=
true
;
bch2_keylist_push
(
&
op
->
insert_keys
);
bch2_keylist_push
(
&
op
->
insert_keys
);
}
}
...
...
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