hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/sysv/namei.c
....@@ -28,21 +28,6 @@
2828 return err;
2929 }
3030
31
-static int sysv_hash(const struct dentry *dentry, struct qstr *qstr)
32
-{
33
- /* Truncate the name in place, avoids having to define a compare
34
- function. */
35
- if (qstr->len > SYSV_NAMELEN) {
36
- qstr->len = SYSV_NAMELEN;
37
- qstr->hash = full_name_hash(dentry, qstr->name, qstr->len);
38
- }
39
- return 0;
40
-}
41
-
42
-const struct dentry_operations sysv_dentry_operations = {
43
- .d_hash = sysv_hash,
44
-};
45
-
4631 static struct dentry *sysv_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags)
4732 {
4833 struct inode * inode = NULL;