projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa...
[firefly-linux-kernel-4.4.55.git]
/
fs
/
cachefiles
/
rdwr.c
diff --git
a/fs/cachefiles/rdwr.c
b/fs/cachefiles/rdwr.c
index 480992259707fe4f932646353245a640c5c9dfec..317f9ee9c99178d7afd774ff424bbd63fab2ff17 100644
(file)
--- a/
fs/cachefiles/rdwr.c
+++ b/
fs/cachefiles/rdwr.c
@@
-962,12
+962,14
@@
int cachefiles_write_page(struct fscache_storage *op, struct page *page)
}
data = kmap(page);
+ file_start_write(file);
old_fs = get_fs();
set_fs(KERNEL_DS);
ret = file->f_op->write(
file, (const void __user *) data, len, &pos);
set_fs(old_fs);
kunmap(page);
+ file_end_write(file);
if (ret != len)
ret = -EIO;
}