commit | 03d95eb2f2578083a3f6286262e1cb5d88a00c02 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Mar 20 13:04:20 2013 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Apr 09 14:12:56 2013 -0400 |
tree | a82585b55080628e0ba0028dfb100886bf5b4099 | |
parent | 72ec35163f9f728ba1579fd80682e51e933dfa8a [diff] |
lift sb_start_write() out of ->write() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c index 4809922..317f9ee 100644 --- a/fs/cachefiles/rdwr.c +++ b/fs/cachefiles/rdwr.c
@@ -962,12 +962,14 @@ } 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; }