From 232a2222ad3aaff19dd9061846711a4811e7e909 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 27 Jun 2015 16:17:08 -0500 Subject: [PATCH] ntfs-3g_apply.c: fix inode reuse NTFS inodes were not being reused as intended following commit 26a90546f2 ("ntfs-3g_apply.c: Do not use i_visited"). --- src/ntfs-3g_apply.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ntfs-3g_apply.c b/src/ntfs-3g_apply.c index a6c50c2f..dc61e477 100644 --- a/src/ntfs-3g_apply.c +++ b/src/ntfs-3g_apply.c @@ -795,8 +795,7 @@ ntfs_3g_open_inode(struct wim_inode *inode, struct ntfs_3g_apply_ctx *ctx) if (unlikely(inode->i_num_streams > 1)) { for (unsigned i = 0; i < ctx->num_open_inodes; i++) { if (ctx->open_inodes[i]->mft_no == inode->i_mft_no) { - ni = ctx->open_inodes[i]; - goto have_inode; + return ctx->open_inodes[i]; } } } @@ -809,7 +808,6 @@ ntfs_3g_open_inode(struct wim_inode *inode, struct ntfs_3g_apply_ctx *ctx) return NULL; } -have_inode: ctx->open_inodes[ctx->num_open_inodes++] = ni; return ni; } -- 2.43.0