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
738540f7
Commit
738540f7
authored
Jul 03, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: kill bch2_crc64_update
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
d74dfe02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
fs/bcachefs/checksum.c
fs/bcachefs/checksum.c
+1
-1
fs/bcachefs/checksum.h
fs/bcachefs/checksum.h
+0
-5
fs/bcachefs/str_hash.h
fs/bcachefs/str_hash.h
+2
-2
No files found.
fs/bcachefs/checksum.c
View file @
738540f7
...
...
@@ -62,7 +62,7 @@ static u64 bch2_checksum_update(unsigned type, u64 crc, const void *data, size_t
return
crc32c
(
crc
,
data
,
len
);
case
BCH_CSUM_CRC64_NONZERO
:
case
BCH_CSUM_CRC64
:
return
bch2_crc64_updat
e
(
crc
,
data
,
len
);
return
crc64_b
e
(
crc
,
data
,
len
);
default:
BUG
();
}
...
...
fs/bcachefs/checksum.h
View file @
738540f7
...
...
@@ -25,11 +25,6 @@ static inline bool bch2_checksum_mergeable(unsigned type)
struct
bch_csum
bch2_checksum_merge
(
unsigned
,
struct
bch_csum
,
struct
bch_csum
,
size_t
);
static
inline
u64
bch2_crc64_update
(
u64
crc
,
const
void
*
p
,
size_t
len
)
{
return
crc64_be
(
crc
,
p
,
len
);
}
#define BCH_NONCE_EXTENT cpu_to_le32(1 << 28)
#define BCH_NONCE_BTREE cpu_to_le32(2 << 28)
#define BCH_NONCE_JOURNAL cpu_to_le32(3 << 28)
...
...
fs/bcachefs/str_hash.h
View file @
738540f7
...
...
@@ -71,7 +71,7 @@ static inline void bch2_str_hash_init(struct bch_str_hash_ctx *ctx,
ctx
->
crc32c
=
crc32c
(
~
0
,
&
info
->
crc_key
,
sizeof
(
info
->
crc_key
));
break
;
case
BCH_STR_HASH_CRC64
:
ctx
->
crc64
=
bch2_crc64_updat
e
(
~
0
,
&
info
->
crc_key
,
sizeof
(
info
->
crc_key
));
ctx
->
crc64
=
crc64_b
e
(
~
0
,
&
info
->
crc_key
,
sizeof
(
info
->
crc_key
));
break
;
case
BCH_STR_HASH_SIPHASH
:
SipHash24_Init
(
&
ctx
->
siphash
,
&
info
->
siphash_key
);
...
...
@@ -90,7 +90,7 @@ static inline void bch2_str_hash_update(struct bch_str_hash_ctx *ctx,
ctx
->
crc32c
=
crc32c
(
ctx
->
crc32c
,
data
,
len
);
break
;
case
BCH_STR_HASH_CRC64
:
ctx
->
crc64
=
bch2_crc64_updat
e
(
ctx
->
crc64
,
data
,
len
);
ctx
->
crc64
=
crc64_b
e
(
ctx
->
crc64
,
data
,
len
);
break
;
case
BCH_STR_HASH_SIPHASH
:
SipHash24_Update
(
&
ctx
->
siphash
,
data
,
len
);
...
...
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