mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
yaffs: Fix yaffs_sync_object for 2.6.35
Change-Id: Idfab44338022238d13f9ae67fc8448373c5edce5 Signed-off-by: Arve Hjønnevåg <arve@android.com>
This commit is contained in:
committed by
Colin Cross
parent
9713f5863c
commit
b8aab015cd
@@ -202,8 +202,12 @@ static int yaffs_file_flush(struct file *file, fl_owner_t id);
|
||||
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);
|
||||
#endif
|
||||
|
||||
static int yaffs_readdir(struct file *f, void *dirent, filldir_t filldir);
|
||||
|
||||
@@ -1715,12 +1719,19 @@ static int yaffs_symlink(struct inode *dir, struct dentry *dentry,
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
#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)
|
||||
#endif
|
||||
{
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user