From: Kent Overstreet Date: Fri, 21 Sep 2018 21:37:13 +0000 (-0400) Subject: bcachefs: fix bch2_acl_chmod() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d06182cadb5bbd9ab7fa3d3e59608bb573bffbee;p=linux.git bcachefs: fix bch2_acl_chmod() Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/acl.c b/fs/bcachefs/acl.c index 0074b3eb196d7..eb6fa4d7c1f6d 100644 --- a/fs/bcachefs/acl.c +++ b/fs/bcachefs/acl.c @@ -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;