Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322223
b: refs/heads/master
c: 8430f97
h: refs/heads/master
i:
  322221: 1d7c598
  322219: 0e42c93
  322215: 02a6477
  322207: a855103
v: v3
  • Loading branch information
Fengguang Wu authored and Jens Axboe committed Aug 9, 2012
1 parent 707a63f commit 87ec1ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 276f0f5d157bb4a816053f4f3a941dbcd4f76556
refs/heads/master: 8430f9772f9ac305211f177b0fa56a312175da11
3 changes: 0 additions & 3 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,14 +2527,12 @@ ssize_t generic_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
{
struct file *file = iocb->ki_filp;
struct inode *inode = file->f_mapping->host;
struct blk_plug plug;
ssize_t ret;

BUG_ON(iocb->ki_pos != pos);

sb_start_write(inode->i_sb);
mutex_lock(&inode->i_mutex);
blk_start_plug(&plug);
ret = __generic_file_aio_write(iocb, iov, nr_segs, &iocb->ki_pos);
mutex_unlock(&inode->i_mutex);

Expand All @@ -2545,7 +2543,6 @@ ssize_t generic_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
if (err < 0 && ret > 0)
ret = err;
}
blk_finish_plug(&plug);
sb_end_write(inode->i_sb);
return ret;
}
Expand Down

0 comments on commit 87ec1ac

Please sign in to comment.