Commit 47c46c95 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Add another mssing bch2_trans_iter_put() call

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 0329b150
......@@ -145,8 +145,6 @@ int __must_check bch2_write_inode(struct bch_fs *c,
&inode->ei_journal_seq,
BTREE_INSERT_NOUNLOCK|
BTREE_INSERT_NOFAIL);
if (ret == -EINTR)
goto retry;
/*
* the btree node lock protects inode->ei_inode, not ei_update_lock;
......@@ -155,6 +153,11 @@ int __must_check bch2_write_inode(struct bch_fs *c,
if (!ret)
bch2_inode_update_after_write(c, inode, &inode_u, fields);
bch2_trans_iter_put(&trans, iter);
if (ret == -EINTR)
goto retry;
bch2_trans_exit(&trans);
return ret < 0 ? ret : 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment