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
94d290e4
Commit
94d290e4
authored
Mar 11, 2019
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: drop btree_insert->did_work
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
9a12b1b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
fs/bcachefs/btree_update.h
fs/bcachefs/btree_update.h
+0
-1
fs/bcachefs/btree_update_leaf.c
fs/bcachefs/btree_update_leaf.c
+6
-4
No files found.
fs/bcachefs/btree_update.h
View file @
94d290e4
...
...
@@ -30,7 +30,6 @@ struct btree_insert {
struct
journal_preres
journal_preres
;
u64
*
journal_seq
;
unsigned
flags
;
bool
did_work
;
unsigned
short
nr
;
struct
btree_insert_entry
*
entries
;
...
...
fs/bcachefs/btree_update_leaf.c
View file @
94d290e4
...
...
@@ -585,7 +585,6 @@ static inline int do_btree_insert_at(struct btree_insert *trans,
break
;
}
}
trans
->
did_work
=
true
;
trans_for_each_entry
(
trans
,
i
)
do_btree_insert_one
(
trans
,
i
);
...
...
@@ -739,8 +738,7 @@ int __bch2_btree_insert_at(struct btree_insert *trans)
* BTREE_INSERT_NOUNLOCK means don't unlock _after_ successful btree
* update; if we haven't done anything yet it doesn't apply
*/
if
(
!
trans
->
did_work
)
flags
&=
~
BTREE_INSERT_NOUNLOCK
;
flags
&=
~
BTREE_INSERT_NOUNLOCK
;
switch
(
ret
)
{
case
BTREE_INSERT_BTREE_NODE_FULL
:
...
...
@@ -756,8 +754,12 @@ int __bch2_btree_insert_at(struct btree_insert *trans)
* XXX:
* split -> btree node merging (of parent node) might still drop
* locks when we're not passing it BTREE_INSERT_NOUNLOCK
*
* we don't want to pass BTREE_INSERT_NOUNLOCK to split as that
* will inhibit merging - but we don't have a reliable way yet
* (do we?) of checking if we dropped locks in this path
*/
if (!ret
&& !trans->did_work
)
if (!ret)
goto retry;
#endif
...
...
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