diff options
Diffstat (limited to 'fs/libfs.c')
-rw-r--r-- | fs/libfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index 232bea425b09..e57ea58bda68 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
@@ -58,7 +58,7 @@ struct dentry *simple_lookup(struct inode *dir, struct dentry *dentry, struct na | |||
58 | return NULL; | 58 | return NULL; |
59 | } | 59 | } |
60 | 60 | ||
61 | int simple_sync_file(struct file * file, struct dentry *dentry, int datasync) | 61 | int simple_sync_file(struct file *file, int datasync) |
62 | { | 62 | { |
63 | return 0; | 63 | return 0; |
64 | } | 64 | } |
@@ -851,13 +851,13 @@ struct dentry *generic_fh_to_parent(struct super_block *sb, struct fid *fid, | |||
851 | } | 851 | } |
852 | EXPORT_SYMBOL_GPL(generic_fh_to_parent); | 852 | EXPORT_SYMBOL_GPL(generic_fh_to_parent); |
853 | 853 | ||
854 | int simple_fsync(struct file *file, struct dentry *dentry, int datasync) | 854 | int simple_fsync(struct file *file, int datasync) |
855 | { | 855 | { |
856 | struct writeback_control wbc = { | 856 | struct writeback_control wbc = { |
857 | .sync_mode = WB_SYNC_ALL, | 857 | .sync_mode = WB_SYNC_ALL, |
858 | .nr_to_write = 0, /* metadata-only; caller takes care of data */ | 858 | .nr_to_write = 0, /* metadata-only; caller takes care of data */ |
859 | }; | 859 | }; |
860 | struct inode *inode = dentry->d_inode; | 860 | struct inode *inode = file->f_mapping->host; |
861 | int err; | 861 | int err; |
862 | int ret; | 862 | int ret; |
863 | 863 | ||