inode2filename: Remove InodeSet copying causing ~O(N^2) inode copies

FilterState/SearchState was being copied every time we processed an
inode during disk traversal. This meant for every inode we were copying
each InodeSet, causing a runtime like O(N*K).

This was hardly noticeable with just a few search inputs, but very
noticable with a multi-thousand value inputs.

Bug: 151212317
Test: iorap.inode2filename with 16k search inputs
Change-Id: Ic22c319845a9e20f4ab6ec3bf5018b5d5e3ecee3
1 file changed