]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
bcachefs: Add missing BTREE_ITER_INTENT
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 8 Sep 2021 03:04:04 +0000 (23:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:12 +0000 (17:09 -0400)
No reason not to be using it here...

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/fs-common.c

index a6617455ea1219999ec0a464e81f24e439cc7fdf..6bc82559c9b17e64866a3f11a74d9e246320b011 100644 (file)
@@ -110,7 +110,7 @@ int bch2_link_trans(struct btree_trans *trans, u64 dir_inum,
        inode_u->bi_ctime = now;
        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)
                goto err;