summaryrefslogtreecommitdiff
path: root/fs/orangefs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-10-09 03:35:36 +0300
committerMike Marshall <hubcap@omnibond.com>2015-11-13 19:53:24 +0300
commitaada5c5872aa3048980a0e6926efd9086dc98532 (patch)
tree4328896fb2ffd73b63011e0d27fe4817b0f58f50 /fs/orangefs/namei.c
parent75992b0fa95a667d8f436962ea6a694fe992c001 (diff)
downloadlinux-aada5c5872aa3048980a0e6926efd9086dc98532.tar.xz
orangefs: kill pointless ->link() and ->mknod()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/namei.c')
-rw-r--r--fs/orangefs/namei.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c
index 05f6feadfd0d..39f96ace0289 100644
--- a/fs/orangefs/namei.c
+++ b/fs/orangefs/namei.c
@@ -242,27 +242,6 @@ static int pvfs2_unlink(struct inode *dir, struct dentry *dentry)
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,
struct dentry *dentry,
const char *symname)
@@ -453,12 +432,10 @@ struct inode_operations pvfs2_dir_inode_operations = {
.get_acl = pvfs2_get_acl,
.set_acl = pvfs2_set_acl,
.create = pvfs2_create,
- .link = pvfs2_link,
.unlink = pvfs2_unlink,
.symlink = pvfs2_symlink,
.mkdir = pvfs2_mkdir,
.rmdir = pvfs2_unlink,
- .mknod = pvfs2_mknod,
.rename = pvfs2_rename,
.setattr = pvfs2_setattr,
.getattr = pvfs2_getattr,