Files
linux/fs
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-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2023-12-29 11:58:34 -08:00
2024-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2024-03-06 10:52:12 +01:00
2023-12-12 14:24:14 +01:00
2024-03-13 12:53:53 -07:00
2024-02-12 13:13:59 +01:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-02-02 13:11:49 +01:00
2024-03-27 13:17:15 +01:00
2024-02-15 23:43:47 -05:00