Skip to content

Commit

Permalink
ceph: remove sb_start/end_write in ceph_aio_write.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Yan, Zheng <[email protected]>
  • Loading branch information
majianpeng authored and Sage Weil committed Jul 3, 2013
1 parent c62988e commit 0405a14
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -809,7 +808,6 @@ static ssize_t ceph_aio_write(struct kiocb *iocb, const struct iovec *iov,
out:
if (hold_mutex)
mutex_unlock(&inode->i_mutex);
sb_end_write(inode->i_sb);
current->backing_dev_info = NULL;

return written ? written : err;
Expand Down

0 comments on commit 0405a14

Please sign in to comment.