bcachefs: fix bch2_acl_chmod()
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 21 Sep 2018 21:37:13 +0000 (17:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:09 +0000 (17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/acl.c

index 0074b3eb196d7a33aa1163db1ead6f3441dccfd8..eb6fa4d7c1f6d52d4510dfc0bf518acf7f382cc4 100644 (file)
@@ -377,6 +377,7 @@ int bch2_acl_chmod(struct btree_trans *trans,
                goto err;
        }
 
+       new->k.p = iter->pos;
        bch2_trans_update(trans, BTREE_INSERT_ENTRY(iter, &new->k_i));
        *new_acl = acl;
        acl = NULL;