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
c8ef2dc2
Commit
c8ef2dc2
authored
Dec 17, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: bch2_dirent_lookup() -> lockrestart_do()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
79904fa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
fs/bcachefs/dirent.c
fs/bcachefs/dirent.c
+4
-10
No files found.
fs/bcachefs/dirent.c
View file @
c8ef2dc2
...
@@ -471,17 +471,11 @@ u64 bch2_dirent_lookup(struct bch_fs *c, subvol_inum dir,
...
@@ -471,17 +471,11 @@ u64 bch2_dirent_lookup(struct bch_fs *c, subvol_inum dir,
const
struct
qstr
*
name
,
subvol_inum
*
inum
)
const
struct
qstr
*
name
,
subvol_inum
*
inum
)
{
{
struct
btree_trans
*
trans
=
bch2_trans_get
(
c
);
struct
btree_trans
*
trans
=
bch2_trans_get
(
c
);
struct
btree_iter
iter
;
struct
btree_iter
iter
=
{
NULL
};
int
ret
;
retry:
bch2_trans_begin
(
trans
);
ret
=
__bch2_dirent_lookup_trans
(
trans
,
&
iter
,
dir
,
hash_info
,
int
ret
=
lockrestart_do
(
trans
,
name
,
inum
,
0
);
__bch2_dirent_lookup_trans
(
trans
,
&
iter
,
dir
,
hash_info
,
name
,
inum
,
0
));
if
(
bch2_err_matches
(
ret
,
BCH_ERR_transaction_restart
))
bch2_trans_iter_exit
(
trans
,
&
iter
);
goto
retry
;
if
(
!
ret
)
bch2_trans_iter_exit
(
trans
,
&
iter
);
bch2_trans_put
(
trans
);
bch2_trans_put
(
trans
);
return
ret
;
return
ret
;
}
}
...
...
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