aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-19 21:01:03 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:12:55 -0400
commit8d71db4f0890605d44815a2b2da4ca003f1bb142 (patch)
treee5bb078717c3e8ace7f032b940ada7901dbab545 /fs/ocfs2
parent5f2e354f5212a49fc639c25de2581cc8ae90d11b (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/ocfs2')
-rw-r--r--fs/ocfs2/file.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 6474cb44004d..1c93e771e950 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2248,8 +2248,6 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb,
2248 if (iocb->ki_left == 0) 2248 if (iocb->ki_left == 0)
2249 return 0; 2249 return 0;
2250 2250
2251 sb_start_write(inode->i_sb);
2252
2253 appending = file->f_flags & O_APPEND ? 1 : 0; 2251 appending = file->f_flags & O_APPEND ? 1 : 0;
2254 direct_io = file->f_flags & O_DIRECT ? 1 : 0; 2252 direct_io = file->f_flags & O_DIRECT ? 1 : 0;
2255 2253
@@ -2423,7 +2421,6 @@ out_sems:
2423 ocfs2_iocb_clear_sem_locked(iocb); 2421 ocfs2_iocb_clear_sem_locked(iocb);
2424 2422
2425 mutex_unlock(&inode->i_mutex); 2423 mutex_unlock(&inode->i_mutex);
2426 sb_end_write(inode->i_sb);
2427 2424
2428 if (written) 2425 if (written)
2429 ret = written; 2426 ret = written;