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
e4e49375
Commit
e4e49375
authored
Dec 10, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs; kill bch2_btree_key_cache_flush()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
a83b6c89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
fs/bcachefs/btree_key_cache.c
fs/bcachefs/btree_key_cache.c
+0
-16
fs/bcachefs/btree_key_cache.h
fs/bcachefs/btree_key_cache.h
+0
-2
No files found.
fs/bcachefs/btree_key_cache.c
View file @
e4e49375
...
...
@@ -747,22 +747,6 @@ int bch2_btree_key_cache_journal_flush(struct journal *j,
return
ret
;
}
/*
* Flush and evict a key from the key cache:
*/
int
bch2_btree_key_cache_flush
(
struct
btree_trans
*
trans
,
enum
btree_id
id
,
struct
bpos
pos
)
{
struct
bch_fs
*
c
=
trans
->
c
;
struct
bkey_cached_key
key
=
{
id
,
pos
};
/* Fastpath - assume it won't be found: */
if
(
!
bch2_btree_key_cache_find
(
c
,
id
,
pos
))
return
0
;
return
btree_key_cache_flush_pos
(
trans
,
key
,
0
,
0
,
true
);
}
bool
bch2_btree_insert_key_cached
(
struct
btree_trans
*
trans
,
unsigned
flags
,
struct
btree_insert_entry
*
insert_entry
)
...
...
fs/bcachefs/btree_key_cache.h
View file @
e4e49375
...
...
@@ -31,8 +31,6 @@ int bch2_btree_path_traverse_cached(struct btree_trans *, struct btree_path *,
bool
bch2_btree_insert_key_cached
(
struct
btree_trans
*
,
unsigned
,
struct
btree_insert_entry
*
);
int
bch2_btree_key_cache_flush
(
struct
btree_trans
*
,
enum
btree_id
,
struct
bpos
);
void
bch2_btree_key_cache_drop
(
struct
btree_trans
*
,
struct
btree_path
*
);
...
...
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