Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
7a086baa
Commit
7a086baa
authored
8 months ago
by
Kent Overstreet
Browse files
Options
Download
Email Patches
Plain Diff
bcachefs: More informative error message in reattach_inode()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
2fa88b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fs/bcachefs/fsck.c
fs/bcachefs/fsck.c
+5
-2
No files found.
fs/bcachefs/fsck.c
View file @
7a086baa
...
...
@@ -283,6 +283,7 @@ static int reattach_inode(struct btree_trans *trans,
struct
bch_inode_unpacked
*
inode
,
u32
inode_snapshot
)
{
struct
bch_fs
*
c
=
trans
->
c
;
struct
bch_hash_info
dir_hash
;
struct
bch_inode_unpacked
lostfound
;
char
name_buf
[
20
];
...
...
@@ -317,7 +318,7 @@ static int reattach_inode(struct btree_trans *trans,
return
ret
;
}
dir_hash
=
bch2_hash_info_init
(
trans
->
c
,
&
lostfound
);
dir_hash
=
bch2_hash_info_init
(
c
,
&
lostfound
);
name
=
(
struct
qstr
)
QSTR
(
name_buf
);
...
...
@@ -330,8 +331,10 @@ static int reattach_inode(struct btree_trans *trans,
inode
->
bi_subvol
?:
inode
->
bi_inum
,
&
dir_offset
,
STR_HASH_must_create
);
if
(
ret
)
if
(
ret
)
{
bch_err_msg
(
c
,
ret
,
"error creating dirent"
);
return
ret
;
}
inode
->
bi_dir
=
lostfound
.
bi_inum
;
inode
->
bi_dir_offset
=
dir_offset
;
...
...
This diff is collapsed.
Click to expand it.
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