fs: Stop abusing find_inode_fast in iunique
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Oct 2010 11:00:16 +0000 (07:00 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Oct 2010 01:26:10 +0000 (21:26 -0400)
commitad5e195ac9fdf4e2b28b8cf14937e5b9384dac2e
tree0345280d9095f5046c03ed25893aad229fae9369
parent4c51acbc66f754e536e1c9e3331656b69bce86d0
fs: Stop abusing find_inode_fast in iunique

Stop abusing find_inode_fast for iunique and opencode the inode hash walk.
Introduce a new iunique_lock to protect the iunique counters once inode_lock
is removed.

Based on a patch originally from Nick Piggin.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/inode.c