summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-20 02:01:03 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 20:12:55 +0200
commit8d71db4f0890605d44815a2b2da4ca003f1bb142 (patch)
treee5bb078717c3e8ace7f032b940ada7901dbab545 /fs/ocfs2/file.c
parenthpfs: move setting hpfs-private i_dirty to ->write_end() (diff)
downloadlinux-8d71db4f0890605d44815a2b2da4ca003f1bb142.tar.xz
linux-8d71db4f0890605d44815a2b2da4ca003f1bb142.zip
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/file.c')
-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,
if (iocb->ki_left == 0)
return 0;
- sb_start_write(inode->i_sb);
-
appending = file->f_flags & O_APPEND ? 1 : 0;
direct_io = file->f_flags & O_DIRECT ? 1 : 0;
@@ -2423,7 +2421,6 @@ out_sems:
ocfs2_iocb_clear_sem_locked(iocb);
mutex_unlock(&inode->i_mutex);
- sb_end_write(inode->i_sb);
if (written)
ret = written;