diff options
author | 2013-03-20 13:04:20 -0400 | |
---|---|---|
committer | 2013-04-09 14:12:56 -0400 | |
commit | 03d95eb2f2578083a3f6286262e1cb5d88a00c02 (patch) | |
tree | a82585b55080628e0ba0028dfb100886bf5b4099 /fs/cachefiles/rdwr.c | |
parent | switch compat readv/writev variants to COMPAT_SYSCALL_DEFINE (diff) | |
download | linux-03d95eb2f2578083a3f6286262e1cb5d88a00c02.tar.gz linux-03d95eb2f2578083a3f6286262e1cb5d88a00c02.tar.bz2 linux-03d95eb2f2578083a3f6286262e1cb5d88a00c02.zip |
lift sb_start_write() out of ->write()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cachefiles/rdwr.c')
-rw-r--r-- | fs/cachefiles/rdwr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c index 480992259707..317f9ee9c991 100644 --- 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; } |