File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ static int reattach_inode(struct btree_trans *trans,
283
283
struct bch_inode_unpacked * inode ,
284
284
u32 inode_snapshot )
285
285
{
286
+ struct bch_fs * c = trans -> c ;
286
287
struct bch_hash_info dir_hash ;
287
288
struct bch_inode_unpacked lostfound ;
288
289
char name_buf [20 ];
@@ -317,7 +318,7 @@ static int reattach_inode(struct btree_trans *trans,
317
318
return ret ;
318
319
}
319
320
320
- dir_hash = bch2_hash_info_init (trans -> c , & lostfound );
321
+ dir_hash = bch2_hash_info_init (c , & lostfound );
321
322
322
323
name = (struct qstr ) QSTR (name_buf );
323
324
@@ -330,8 +331,10 @@ static int reattach_inode(struct btree_trans *trans,
330
331
inode -> bi_subvol ?: inode -> bi_inum ,
331
332
& dir_offset ,
332
333
STR_HASH_must_create );
333
- if (ret )
334
+ if (ret ) {
335
+ bch_err_msg (c , ret , "error creating dirent" );
334
336
return ret ;
337
+ }
335
338
336
339
inode -> bi_dir = lostfound .bi_inum ;
337
340
inode -> bi_dir_offset = dir_offset ;
You can’t perform that action at this time.
0 commit comments