stat-util: also include inode type in hash ops
This doesn't really have any major benefit, but it does make this nicely mirror stat_inode_same() which also checks this triplet for identifying identical inodes.
This commit is contained in:
@@ -122,6 +122,7 @@ int xstatfsat(int dir_fd, const char *path, struct statfs *ret);
|
||||
usec_t statx_timestamp_load(const struct statx_timestamp *ts) _pure_;
|
||||
nsec_t statx_timestamp_load_nsec(const struct statx_timestamp *ts) _pure_;
|
||||
|
||||
/* This compares inode number, backing device and inode type, but not modification info */
|
||||
void inode_hash_func(const struct stat *q, struct siphash *state);
|
||||
int inode_compare_func(const struct stat *a, const struct stat *b);
|
||||
extern const struct hash_ops inode_hash_ops;
|
||||
|
||||
Reference in New Issue
Block a user