aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/segment.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/segment.c')
-rw-r--r--fs/nilfs2/segment.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c
index eee4b223c293..9cf71389f369 100644
--- a/fs/nilfs2/segment.c
+++ b/fs/nilfs2/segment.c
@@ -2451,9 +2451,8 @@ nilfs_remove_written_gcinodes(struct the_nilfs *nilfs, struct list_head *head)
2451 list_for_each_entry_safe(ii, n, head, i_dirty) { 2451 list_for_each_entry_safe(ii, n, head, i_dirty) {
2452 if (!test_bit(NILFS_I_UPDATED, &ii->i_state)) 2452 if (!test_bit(NILFS_I_UPDATED, &ii->i_state))
2453 continue; 2453 continue;
2454 hlist_del_init(&ii->vfs_inode.i_hash);
2455 list_del_init(&ii->i_dirty); 2454 list_del_init(&ii->i_dirty);
2456 nilfs_clear_gcinode(&ii->vfs_inode); 2455 iput(&ii->vfs_inode);
2457 } 2456 }
2458} 2457}
2459 2458