lift sb_start_write/sb_end_write out of ->aio_write()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / fs / xfs / xfs_file.c
index f03bf1a456fbcacf43cc4999124a5d9072d733f0..3800128d2171b916a0d0652699bf72c9b6cf3ab7 100644 (file)
@@ -775,8 +775,6 @@ xfs_file_aio_write(
        if (ocount == 0)
                return 0;
 
-       sb_start_write(inode->i_sb);
-
        if (XFS_FORCED_SHUTDOWN(ip->i_mount)) {
                ret = -EIO;
                goto out;
@@ -800,7 +798,6 @@ xfs_file_aio_write(
        }
 
 out:
-       sb_end_write(inode->i_sb);
        return ret;
 }