diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-14 00:08:06 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-25 17:37:12 -0500 |
commit | 2bcf68b052dd03527c977459a84413467a3327de (patch) | |
tree | bfce4c0b8f434a6c7c9808692b6a9cbf24a9eab0 | |
parent | 820e90092b8ee266abd552f15f1af7f023b9d9c6 (diff) |
bcachefs: Add missing bch2_trans_iter_exit() call
This fixes a bug where the filesystem goes read only when reading from
debugfs.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r-- | fs/bcachefs/debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/debug.c b/fs/bcachefs/debug.c index 294e4baf4deb..666635f7c7d2 100644 --- a/fs/bcachefs/debug.c +++ b/fs/bcachefs/debug.c @@ -406,6 +406,8 @@ static ssize_t bch2_read_bfloat_failed(struct file *file, char __user *buf, if (!i->size) break; } + bch2_trans_iter_exit(&trans, &iter); + bch2_trans_exit(&trans); return err < 0 ? err : i->ret; |