diff options
Diffstat (limited to 'fs/hppfs')
-rw-r--r-- | fs/hppfs/hppfs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/hppfs/hppfs.c b/fs/hppfs/hppfs.c index 826c3f9d29ac..4e2a45ea6140 100644 --- a/fs/hppfs/hppfs.c +++ b/fs/hppfs/hppfs.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | #include <linux/statfs.h> | 16 | #include <linux/statfs.h> |
17 | #include <linux/types.h> | 17 | #include <linux/types.h> |
18 | #include <linux/pid_namespace.h> | ||
18 | #include <asm/uaccess.h> | 19 | #include <asm/uaccess.h> |
19 | #include "os.h" | 20 | #include "os.h" |
20 | 21 | ||
@@ -597,6 +598,7 @@ static const struct file_operations hppfs_dir_fops = { | |||
597 | .readdir = hppfs_readdir, | 598 | .readdir = hppfs_readdir, |
598 | .open = hppfs_dir_open, | 599 | .open = hppfs_dir_open, |
599 | .fsync = hppfs_fsync, | 600 | .fsync = hppfs_fsync, |
601 | .llseek = default_llseek, | ||
600 | }; | 602 | }; |
601 | 603 | ||
602 | static int hppfs_statfs(struct dentry *dentry, struct kstatfs *sf) | 604 | static int hppfs_statfs(struct dentry *dentry, struct kstatfs *sf) |
@@ -623,12 +625,11 @@ static struct inode *hppfs_alloc_inode(struct super_block *sb) | |||
623 | return &hi->vfs_inode; | 625 | return &hi->vfs_inode; |
624 | } | 626 | } |
625 | 627 | ||
626 | void hppfs_delete_inode(struct inode *ino) | 628 | void hppfs_evict_inode(struct inode *ino) |
627 | { | 629 | { |
630 | end_writeback(ino); | ||
628 | dput(HPPFS_I(ino)->proc_dentry); | 631 | dput(HPPFS_I(ino)->proc_dentry); |
629 | mntput(ino->i_sb->s_fs_info); | 632 | mntput(ino->i_sb->s_fs_info); |
630 | |||
631 | clear_inode(ino); | ||
632 | } | 633 | } |
633 | 634 | ||
634 | static void hppfs_destroy_inode(struct inode *inode) | 635 | static void hppfs_destroy_inode(struct inode *inode) |
@@ -639,7 +640,7 @@ static void hppfs_destroy_inode(struct inode *inode) | |||
639 | static const struct super_operations hppfs_sbops = { | 640 | static const struct super_operations hppfs_sbops = { |
640 | .alloc_inode = hppfs_alloc_inode, | 641 | .alloc_inode = hppfs_alloc_inode, |
641 | .destroy_inode = hppfs_destroy_inode, | 642 | .destroy_inode = hppfs_destroy_inode, |
642 | .delete_inode = hppfs_delete_inode, | 643 | .evict_inode = hppfs_evict_inode, |
643 | .statfs = hppfs_statfs, | 644 | .statfs = hppfs_statfs, |
644 | }; | 645 | }; |
645 | 646 | ||