lift sb_start_write/sb_end_write out of ->aio_write()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2013-03-19 21:01:03 -04:00
parent 5f2e354f52
commit 8d71db4f08
11 changed files with 28 additions and 22 deletions

View File

@@ -1103,10 +1103,12 @@ static ssize_t compat_do_readv_writev(int type, struct file *file,
fnv = file->f_op->aio_write;
}
if (fnv)
if (fnv) {
file_start_write(file);
ret = do_sync_readv_writev(file, iov, nr_segs, tot_len,
pos, fnv);
else
file_end_write(file);
} else
ret = do_loop_readv_writev(file, iov, nr_segs, pos, fn);
out: