提交 aada5c58 编写于 作者: A Al Viro 提交者: Mike Marshall

orangefs: kill pointless ->link() and ->mknod()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NMike Marshall <hubcap@omnibond.com>
上级 75992b0f
...@@ -242,27 +242,6 @@ static int pvfs2_unlink(struct inode *dir, struct dentry *dentry) ...@@ -242,27 +242,6 @@ static int pvfs2_unlink(struct inode *dir, struct dentry *dentry)
return ret; return ret;
} }
/*
* PVFS2 does not support hard links.
*/
static int pvfs2_link(struct dentry *old_dentry,
struct inode *dir,
struct dentry *dentry)
{
return -EPERM;
}
/*
* PVFS2 does not support special files.
*/
static int pvfs2_mknod(struct inode *dir,
struct dentry *dentry,
umode_t mode,
dev_t rdev)
{
return -EPERM;
}
static int pvfs2_symlink(struct inode *dir, static int pvfs2_symlink(struct inode *dir,
struct dentry *dentry, struct dentry *dentry,
const char *symname) const char *symname)
...@@ -453,12 +432,10 @@ struct inode_operations pvfs2_dir_inode_operations = { ...@@ -453,12 +432,10 @@ struct inode_operations pvfs2_dir_inode_operations = {
.get_acl = pvfs2_get_acl, .get_acl = pvfs2_get_acl,
.set_acl = pvfs2_set_acl, .set_acl = pvfs2_set_acl,
.create = pvfs2_create, .create = pvfs2_create,
.link = pvfs2_link,
.unlink = pvfs2_unlink, .unlink = pvfs2_unlink,
.symlink = pvfs2_symlink, .symlink = pvfs2_symlink,
.mkdir = pvfs2_mkdir, .mkdir = pvfs2_mkdir,
.rmdir = pvfs2_unlink, .rmdir = pvfs2_unlink,
.mknod = pvfs2_mknod,
.rename = pvfs2_rename, .rename = pvfs2_rename,
.setattr = pvfs2_setattr, .setattr = pvfs2_setattr,
.getattr = pvfs2_getattr, .getattr = pvfs2_getattr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册