projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af0f441
)
pohmelfs: Use new syncing helper
author
Jan Kara
<jack@suse.cz>
Tue, 18 Aug 2009 16:38:45 +0000
(18:38 +0200)
committer
Jan Kara
<jack@suse.cz>
Mon, 14 Sep 2009 15:08:17 +0000
(17:08 +0200)
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>
drivers/staging/pohmelfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/pohmelfs/inode.c
b/drivers/staging/pohmelfs/inode.c
index e9d41e439aa734049a28c04a5feea29a8d50d451..d004a9ddddbc4bce7ecc855dfd62d9365e2f112c 100644
(file)
--- 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);