diff options
author | Jan Kara <jack@suse.cz> | 2009-08-18 18:38:45 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2009-09-14 17:08:17 +0200 |
commit | aa3caafe53cab7ef60605e481cd5d7943e1c3022 (patch) | |
tree | b3723d4c31c84a8b0f74d1d4e920d9ba1c867915 | |
parent | af0f4414f343429971d33b0dd8dccc85c1f3dcd2 (diff) | |
download | op-kernel-dev-aa3caafe53cab7ef60605e481cd5d7943e1c3022.zip op-kernel-dev-aa3caafe53cab7ef60605e481cd5d7943e1c3022.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c index e9d41e4..d004a9d 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); |