diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-14 00:08:06 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-17 15:44:15 -0400 |
commit | 5dc5059eed4a044557a8fcc3293b9c50f6487bb4 (patch) | |
tree | 73ccfba158fba80d6fbac7e3fff909bd257ba764 /fs/bcachefs/debug.c | |
parent | a637c9ddaefb82b6f464f0b5f8ebd89c71249890 (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>
Diffstat (limited to 'fs/bcachefs/debug.c')
-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; |