summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2009-08-18 18:38:45 +0200
committerJan Kara <jack@suse.cz>2009-09-14 17:08:17 +0200
commitaa3caafe53cab7ef60605e481cd5d7943e1c3022 (patch)
treeb3723d4c31c84a8b0f74d1d4e920d9ba1c867915
parentaf0f4414f343429971d33b0dd8dccc85c1f3dcd2 (diff)
downloadlinux-rpi3-aa3caafe53cab7ef60605e481cd5d7943e1c3022.tar.gz
linux-rpi3-aa3caafe53cab7ef60605e481cd5d7943e1c3022.tar.bz2
linux-rpi3-aa3caafe53cab7ef60605e481cd5d7943e1c3022.zip
pohmelfs: Use new syncing helper
Use new generic_write_sync() helper instead of sync_page_range(). Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--drivers/staging/pohmelfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c
index e9d41e439aa7..d004a9ddddbc 100644
--- a/drivers/staging/pohmelfs/inode.c
+++ b/drivers/staging/pohmelfs/inode.c
@@ -927,10 +927,10 @@ ssize_t pohmelfs_write(struct file *file, const char __user *buf,
mutex_unlock(&inode->i_mutex);
WARN_ON(ret < 0);
- if (ret > 0 && ((file->f_flags & O_SYNC) || IS_SYNC(inode))) {
+ if (ret > 0) {
ssize_t err;
- err = sync_page_range(inode, mapping, pos, ret);
+ err = generic_write_sync(file, pos, ret);
if (err < 0)
ret = err;
WARN_ON(ret < 0);