bcachefs: Add missing BTREE_ITER_INTENT
No reason not to be using it here... Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
caaa66aa54
commit
5b5b03e732
@ -110,7 +110,7 @@ int bch2_link_trans(struct btree_trans *trans, u64 dir_inum,
|
|||||||
inode_u->bi_ctime = now;
|
inode_u->bi_ctime = now;
|
||||||
bch2_inode_nlink_inc(inode_u);
|
bch2_inode_nlink_inc(inode_u);
|
||||||
|
|
||||||
ret = bch2_inode_peek(trans, &dir_iter, dir_u, dir_inum, 0);
|
ret = bch2_inode_peek(trans, &dir_iter, dir_u, dir_inum, BTREE_ITER_INTENT);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user