ceph: remove sb_start/end_write in ceph_aio_write.
authorJianpeng Ma <majianpeng@gmail.com>
Sun, 23 Jun 2013 16:48:38 +0000 (09:48 -0700)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 22:32:52 +0000 (15:32 -0700)
Either in vfs_write or io_submit,it call file_start/end_write.
The different between file_start/end_write and sb_start/end_write is
file_ only handle regular file.But i think in ceph_aio_write,it only
for regular file.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Acked-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/file.c

index 656e169074305f12d34859ca07ee710c4c1a954d..7c69f4f0dee6a89ccfe39a073c77549405f8f352 100644 (file)
@@ -716,7 +716,6 @@ static ssize_t ceph_aio_write(struct kiocb *iocb, const struct iovec *iov,
        if (ceph_snap(inode) != CEPH_NOSNAP)
                return -EROFS;
 
-       sb_start_write(inode->i_sb);
        mutex_lock(&inode->i_mutex);
        hold_mutex = true;
 
@@ -809,7 +808,6 @@ retry_snap:
 out:
        if (hold_mutex)
                mutex_unlock(&inode->i_mutex);
-       sb_end_write(inode->i_sb);
        current->backing_dev_info = NULL;
 
        return written ? written : err;