diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-08-20 06:06:11 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2010-10-22 20:24:34 -0400 |
commit | 263d90cefc7d82a01c296c59532ff59d67c63509 (patch) | |
tree | df289cc3bbb8681b3a42e3c0a25202b085fc9362 /fs/nilfs2/segment.c | |
parent | 5e19a995f4ad8a8f20749a396bb01ebb6d4df96c (diff) |
nilfs2: remove own inode hash used for GC
This uses inode hash function that vfs provides instead of the own
hash table for caching gc inodes. This finally removes the own inode
hash from nilfs.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/segment.c')
-rw-r--r-- | fs/nilfs2/segment.c | 3 |
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 | ||