Darrick J. Wong fb102fe7fe xfs: create a hashname function for parent pointers
Although directory entry and parent pointer recordsets look very similar
(name -> ino), there's one major difference between them: a file can be
hardlinked from multiple parent directories with the same filename.
This is common in shared container environments where a base directory
tree might be hardlink-copied multiple times.  IOWs the same 'ls'
program might be hardlinked to multiple /srv/*/bin/ls paths.

We don't want parent pointer operations to bog down on hash collisions
between the same dirent name, so create a special hash function that
mixes in the parent directory inode number.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2024-04-23 07:46:58 -07:00
..
2024-02-22 12:43:35 -08:00
2024-04-15 14:58:53 -07:00
2024-03-13 13:52:24 -07:00
2024-04-22 18:00:47 +05:30
2024-04-22 18:00:47 +05:30
2024-02-22 12:43:35 -08:00
2024-04-22 12:51:43 +05:30
2024-04-15 14:59:02 -07:00
2024-02-17 09:32:32 +05:30
2024-04-22 18:00:47 +05:30
2024-04-23 07:46:50 -07:00