The only way I know is:
find /home -xdev -samefile file1
But it\'s really slow. I would like to find a tool like locate. The real
locate
There is no mapping from inode to name. The only way is to walk the entire filesystem, which as you pointed out is O(number of files). (Actually, I think it's θ(number of files)).
inode