aboutsummaryrefslogtreecommitdiffstats
path: root/fs/libfs.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-05-26 11:53:25 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-05-27 22:05:02 -0400
commit7ea8085910ef3dd4f3cad6845aaa2b580d39b115 (patch)
treed9c1edb5906f943f7d70bfb4b65106e29772d379 /fs/libfs.c
parentcc967be54710d97c05229b2e5ba2d00df84ddd64 (diff)
drop unused dentry argument to ->fsync
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/libfs.c')
-rw-r--r--fs/libfs.c6
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
61int simple_sync_file(struct file * file, struct dentry *dentry, int datasync) 61int 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}
852EXPORT_SYMBOL_GPL(generic_fh_to_parent); 852EXPORT_SYMBOL_GPL(generic_fh_to_parent);
853 853
854int simple_fsync(struct file *file, struct dentry *dentry, int datasync) 854int 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