]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/logfs/dir.c
don't put symlink bodies in pagecache into highmem
[mirror_ubuntu-bionic-kernel.git] / fs / logfs / dir.c
index f9b45d46d4c483ea0be1ceca4c35b9b3075b56b9..542468e9bfb492f8333221a80bcfbcc4b01aa39a 100644 (file)
@@ -528,7 +528,8 @@ 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_nohighmem(inode);
        inode->i_mapping->a_ops = &logfs_reg_aops;
 
        return __logfs_create(dir, dentry, inode, target, destlen);
@@ -776,12 +777,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,