mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
Update bcachefs sources to 0762d9c294 bcachefs: Fix check_inode_update_hardlinks()
This commit is contained in:
parent
49ba8d0ef6
commit
ba69a1b1c4
@ -1 +1 @@
|
||||
6c5219caf0cc4a917298fcea5483b9bac2dacc90
|
||||
0762d9c2948e5574944684a625524545640bf981
|
||||
|
@ -2094,11 +2094,7 @@ static int check_nlinks_update_hardlinks(struct bch_fs *c,
|
||||
bch2_inode_nlink_get(&u), link->count)) {
|
||||
bch2_inode_nlink_set(&u, link->count);
|
||||
|
||||
ret = __bch2_trans_do(&trans, NULL, NULL,
|
||||
BTREE_INSERT_NOFAIL|
|
||||
BTREE_INSERT_LAZY_RW,
|
||||
bch2_btree_iter_traverse(&iter) ?:
|
||||
bch2_inode_write(&trans, &iter, &u));
|
||||
ret = write_inode(&trans, &u, k.k->p.snapshot);
|
||||
if (ret)
|
||||
bch_err(c, "error in fsck: error %i updating inode", ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user