diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-19 21:01:03 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 14:12:55 -0400 |
commit | 8d71db4f0890605d44815a2b2da4ca003f1bb142 (patch) | |
tree | e5bb078717c3e8ace7f032b940ada7901dbab545 /fs/compat.c | |
parent | 5f2e354f5212a49fc639c25de2581cc8ae90d11b (diff) |
lift sb_start_write/sb_end_write out of ->aio_write()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/compat.c b/fs/compat.c index d487985dd0ea..daa3b771d64d 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -1103,10 +1103,12 @@ static ssize_t compat_do_readv_writev(int type, struct file *file, | |||
1103 | fnv = file->f_op->aio_write; | 1103 | fnv = file->f_op->aio_write; |
1104 | } | 1104 | } |
1105 | 1105 | ||
1106 | if (fnv) | 1106 | if (fnv) { |
1107 | file_start_write(file); | ||
1107 | ret = do_sync_readv_writev(file, iov, nr_segs, tot_len, | 1108 | ret = do_sync_readv_writev(file, iov, nr_segs, tot_len, |
1108 | pos, fnv); | 1109 | pos, fnv); |
1109 | else | 1110 | file_end_write(file); |
1111 | } else | ||
1110 | ret = do_loop_readv_writev(file, iov, nr_segs, pos, fn); | 1112 | ret = do_loop_readv_writev(file, iov, nr_segs, pos, fn); |
1111 | 1113 | ||
1112 | out: | 1114 | out: |