summaryrefslogtreecommitdiffstats
path: root/fs/logfs/dir.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-11-13 23:23:54 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2015-12-07 02:43:25 +0100
commitfb417f13aec5f202d35fce9bc7b654e1d3a749e8 (patch)
treeac87ac7d1937ac69106d5d78c028b2d7883690e7 /fs/logfs/dir.c
parentswitch befs long symlinks to page_symlink_operations (diff)
downloadlinux-fb417f13aec5f202d35fce9bc7b654e1d3a749e8.tar.xz
linux-fb417f13aec5f202d35fce9bc7b654e1d3a749e8.zip
logfs: don't duplicate page_symlink_inode_operations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/logfs/dir.c')
-rw-r--r--fs/logfs/dir.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/logfs/dir.c b/fs/logfs/dir.c
index f9b45d46d4c4..99944a406a29 100644
--- a/fs/logfs/dir.c
+++ b/fs/logfs/dir.c
@@ -528,7 +528,7 @@ static int logfs_symlink(struct inode *dir, struct dentry *dentry,
if (IS_ERR(inode))
return PTR_ERR(inode);
- inode->i_op = &logfs_symlink_iops;
+ inode->i_op = &page_symlink_inode_operations;
inode->i_mapping->a_ops = &logfs_reg_aops;
return __logfs_create(dir, dentry, inode, target, destlen);
@@ -776,12 +776,6 @@ fail:
return -EIO;
}
-const struct inode_operations logfs_symlink_iops = {
- .readlink = generic_readlink,
- .follow_link = page_follow_link_light,
- .put_link = page_put_link,
-};
-
const struct inode_operations logfs_dir_iops = {
.create = logfs_create,
.link = logfs_link,