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
da2d20c9
Commit
da2d20c9
authored
Sep 01, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: kill redundant is_vmalloc_addr()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
af05633d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
fs/bcachefs/checksum.c
fs/bcachefs/checksum.c
+4
-8
No files found.
fs/bcachefs/checksum.c
View file @
da2d20c9
...
...
@@ -117,14 +117,10 @@ static inline int do_encrypt(struct crypto_sync_skcipher *tfm,
void
*
buf
,
size_t
len
)
{
if
(
!
is_vmalloc_addr
(
buf
))
{
struct
scatterlist
sg
;
sg_init_table
(
&
sg
,
1
);
sg_set_page
(
&
sg
,
is_vmalloc_addr
(
buf
)
?
vmalloc_to_page
(
buf
)
:
virt_to_page
(
buf
),
len
,
offset_in_page
(
buf
));
struct
scatterlist
sg
=
{};
sg_mark_end
(
&
sg
);
sg_set_page
(
&
sg
,
virt_to_page
(
buf
),
len
,
offset_in_page
(
buf
));
return
do_encrypt_sg
(
tfm
,
nonce
,
&
sg
,
len
);
}
else
{
DARRAY_PREALLOCATED
(
struct
scatterlist
,
4
)
sgl
;
...
...
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