]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/s390/hypfs/inode.c
llseek: automatically add .llseek fop
[mirror_ubuntu-bionic-kernel.git] / arch / s390 / hypfs / inode.c
index 6b120f073043d946eecf475683b3e350c96a1bbc..74d98670be27023241aff6ba8a2b02c35a052e0b 100644 (file)
@@ -117,10 +117,10 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode)
        return ret;
 }
 
-static void hypfs_drop_inode(struct inode *inode)
+static void hypfs_evict_inode(struct inode *inode)
 {
+       end_writeback(inode);
        kfree(inode->i_private);
-       generic_delete_inode(inode);
 }
 
 static int hypfs_open(struct inode *inode, struct file *filp)
@@ -449,6 +449,7 @@ static const struct file_operations hypfs_file_ops = {
        .write          = do_sync_write,
        .aio_read       = hypfs_aio_read,
        .aio_write      = hypfs_aio_write,
+       .llseek         = no_llseek,
 };
 
 static struct file_system_type hypfs_type = {
@@ -460,7 +461,7 @@ static struct file_system_type hypfs_type = {
 
 static const struct super_operations hypfs_s_ops = {
        .statfs         = simple_statfs,
-       .drop_inode     = hypfs_drop_inode,
+       .evict_inode    = hypfs_evict_inode,
        .show_options   = hypfs_show_options,
 };