diff options
authorStefan Agner <>2014-09-19 09:44:16 +0200
committerStefan Agner <>2014-09-25 15:21:40 +0200
commit5fc897d5626f59d7fcda45d41401f0baaf558c1f (patch)
parent3273c585dfef2c846744c62d7392047672dade31 (diff)
yaffs: fix function prototype
The fsync function in the fs.h header file in our kernel version has two additional function introduced by this commit: 02c24a82187d5a628c68edfe71ae60dc135cd178 fs: push i_mutex and filemap_write_and_wait down into ->fsync() handlers Update the function prototype for YAFFS2 too to avoid missinterpreted datasync parameter and to avoid warnings.
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
index d95875fe1e57..6d4136dcff7a 100644
--- a/fs/yaffs2/yaffs_vfs.c
+++ b/fs/yaffs2/yaffs_vfs.c
@@ -439,7 +439,8 @@ static int yaffs_unlink(struct inode *dir, struct dentry *dentry)
return -ENOTEMPTY;
-static int yaffs_sync_object(struct file *file, int datasync)
+static int yaffs_sync_object(struct file *file,
+ loff_t start, loff_t end, int datasync)
struct yaffs_obj *obj;