summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-09-21 17:37:13 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-09-21 17:37:13 -0400
commit2fe17e38d355271a8212a8123a9281e2f9df811f (patch)
treef4e6257f6273bc551481412507928b623670971a
parent2eb48097687f2619b630e76ac7755eef270e31ee (diff)
bcachefs: fix bch2_acl_chmod()
-rw-r--r--fs/bcachefs/acl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/acl.c b/fs/bcachefs/acl.c
index 5dd666ec42d2..741e44ee9d60 100644
--- a/fs/bcachefs/acl.c
+++ b/fs/bcachefs/acl.c
@@ -373,6 +373,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;