diff options
author | Jianpeng Ma <majianpeng@gmail.com> | 2013-06-23 12:48:38 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-03 18:32:52 -0400 |
commit | 0405a1499df42a2b9fd4906096c6bb950e15e850 (patch) | |
tree | ffa21d143072f825f25232b8f8680872d0aec816 /fs/ceph | |
parent | c62988ec0910a2d480fecb2f0140a36fcdc7b691 (diff) |
ceph: remove sb_start/end_write in ceph_aio_write.
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/file.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 656e16907430..7c69f4f0dee6 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -716,7 +716,6 @@ static ssize_t ceph_aio_write(struct kiocb *iocb, const struct iovec *iov, | |||
716 | if (ceph_snap(inode) != CEPH_NOSNAP) | 716 | if (ceph_snap(inode) != CEPH_NOSNAP) |
717 | return -EROFS; | 717 | return -EROFS; |
718 | 718 | ||
719 | sb_start_write(inode->i_sb); | ||
720 | mutex_lock(&inode->i_mutex); | 719 | mutex_lock(&inode->i_mutex); |
721 | hold_mutex = true; | 720 | hold_mutex = true; |
722 | 721 | ||
@@ -809,7 +808,6 @@ retry_snap: | |||
809 | out: | 808 | out: |
810 | if (hold_mutex) | 809 | if (hold_mutex) |
811 | mutex_unlock(&inode->i_mutex); | 810 | mutex_unlock(&inode->i_mutex); |
812 | sb_end_write(inode->i_sb); | ||
813 | current->backing_dev_info = NULL; | 811 | current->backing_dev_info = NULL; |
814 | 812 | ||
815 | return written ? written : err; | 813 | return written ? written : err; |