The sync interface changed, we change too...
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
static int yaffs_file_flush(struct file *file);
#endif
static int yaffs_file_flush(struct file *file);
#endif
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 34))
+static int yaffs_sync_object(struct file *file, int datasync);
+#else
static int yaffs_sync_object(struct file *file, struct dentry *dentry,
int datasync);
static int yaffs_sync_object(struct file *file, struct dentry *dentry,
int datasync);
static int yaffs_readdir(struct file *f, void *dirent, filldir_t filldir);
static int yaffs_readdir(struct file *f, void *dirent, filldir_t filldir);
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 34))
+static int yaffs_sync_object(struct file *file, int datasync)
+#else
static int yaffs_sync_object(struct file *file, struct dentry *dentry,
int datasync)
static int yaffs_sync_object(struct file *file, struct dentry *dentry,
int datasync)
{
yaffs_Object *obj;
yaffs_Device *dev;
{
yaffs_Object *obj;
yaffs_Device *dev;
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 34))
+ struct dentry *dentry = file->f_path.dentry;
+#endif
obj = yaffs_DentryToObject(dentry);
obj = yaffs_DentryToObject(dentry);