From ff3fa9c93c72b53c99d7ec1e19e47609488b761c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 20 May 2021 20:19:33 -0400 Subject: fixup! bcachefs: Require all btree iterators to be freed Signed-off-by: Kent Overstreet --- fs/bcachefs/quota.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/bcachefs/quota.c b/fs/bcachefs/quota.c index 3f78fe7d37f4..35b409e0f366 100644 --- a/fs/bcachefs/quota.c +++ b/fs/bcachefs/quota.c @@ -742,7 +742,9 @@ static int bch2_set_quota_trans(struct btree_trans *trans, if (qdq->d_fieldmask & QC_INO_HARD) new_quota->v.c[Q_INO].hardlimit = cpu_to_le64(qdq->d_ino_hardlimit); - return bch2_trans_update(trans, iter, &new_quota->k_i, 0); + ret = bch2_trans_update(trans, iter, &new_quota->k_i, 0); + bch2_trans_iter_put(trans, iter); + return ret; } static int bch2_set_quota(struct super_block *sb, struct kqid qid, -- cgit v1.2.3