diff mbox

[3/3] btrfs-progs: add ext2fs_close_inode_scan to copy_inodes

Message ID 8ed299639db87f1026ecc444f952c439412230eb.1441718128.git.zhaolei@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Zhaolei Sept. 8, 2015, 1:16 p.m. UTC
We need use ext2fs_close_inode_scan to release relative resource
get from ext2fs_open_inode_scan() in copy_inodes()

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
---
 btrfs-convert.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/btrfs-convert.c b/btrfs-convert.c
index 934f4dc..e7f3c9e 100644
--- a/btrfs-convert.c
+++ b/btrfs-convert.c
@@ -1186,6 +1186,7 @@  static int copy_inodes(struct btrfs_root *root, ext2_filsys ext2_fs,
 	}
 	ret = btrfs_commit_transaction(trans, root);
 	BUG_ON(ret);
+	ext2fs_close_inode_scan(ext2_scan);
 
 	return ret;
 }