|
@@ -480,23 +480,6 @@ static const struct dentry_operations rpc_dentry_operations = {
|
|
|
.d_delete = rpc_delete_dentry,
|
|
|
};
|
|
|
|
|
|
-/*
|
|
|
- * Lookup the data. This is trivial - if the dentry didn't already
|
|
|
- * exist, we know it is negative.
|
|
|
- */
|
|
|
-static struct dentry *
|
|
|
-rpc_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
|
|
|
-{
|
|
|
- if (dentry->d_name.len > NAME_MAX)
|
|
|
- return ERR_PTR(-ENAMETOOLONG);
|
|
|
- d_add(dentry, NULL);
|
|
|
- return NULL;
|
|
|
-}
|
|
|
-
|
|
|
-static const struct inode_operations rpc_dir_inode_operations = {
|
|
|
- .lookup = rpc_lookup,
|
|
|
-};
|
|
|
-
|
|
|
static struct inode *
|
|
|
rpc_get_inode(struct super_block *sb, umode_t mode)
|
|
|
{
|
|
@@ -509,7 +492,7 @@ rpc_get_inode(struct super_block *sb, umode_t mode)
|
|
|
switch (mode & S_IFMT) {
|
|
|
case S_IFDIR:
|
|
|
inode->i_fop = &simple_dir_operations;
|
|
|
- inode->i_op = &rpc_dir_inode_operations;
|
|
|
+ inode->i_op = &simple_dir_inode_operations;
|
|
|
inc_nlink(inode);
|
|
|
default:
|
|
|
break;
|