diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-03-12 11:38:01 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-03-12 11:38:01 +1100 |
commit | 27b7c499e5f57b9e03fb874c58240ae2b8050d70 (patch) | |
tree | f7c23d1d2d562a7e38bd2150a4a6413574b1f4a0 | |
parent | 7a3e401fdd9db4431193faa8b8af10c5654a0606 (diff) | |
parent | 1b24bc3aaba899f4e7f681cbbc3b93cadcf4d770 (diff) |
Merge commit 'ubi/linux-next'
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index e63c8fc3df3a..f8e0f68f2186 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c @@ -186,6 +186,16 @@ static loff_t vol_cdev_llseek(struct file *file, loff_t offset, int origin) return new_offset; } +static int vol_cdev_fsync(struct file *file, struct dentry *dentry, + int datasync) +{ + struct ubi_volume_desc *desc = file->private_data; + struct ubi_device *ubi = desc->vol->ubi; + + return ubi_sync(ubi->ubi_num); +} + + static ssize_t vol_cdev_read(struct file *file, __user char *buf, size_t count, loff_t *offp) { @@ -1073,6 +1083,7 @@ const struct file_operations ubi_vol_cdev_operations = { .llseek = vol_cdev_llseek, .read = vol_cdev_read, .write = vol_cdev_write, + .fsync = vol_cdev_fsync, .unlocked_ioctl = vol_cdev_ioctl, .compat_ioctl = vol_cdev_compat_ioctl, }; |