| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 10/11] xfs: wait for I/O completion when writing out pages in xfs_setattr_size |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Tue, 23 Aug 2011 04:28:12 -0400 |
| References: | <20110823082802.335389799@xxxxxxxxxxxxxxxxxxxxxx> |
| User-agent: | quilt/0.48-1 |
The current code relies on the xfs_ioend_wait call later on to make sure
all I/O actually has completed. The xfs_ioend_wait call will go away soon,
so prepare for that by using the waiting filemap function.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>
Index: xfs/fs/xfs/xfs_iops.c
===================================================================
--- xfs.orig/fs/xfs/xfs_iops.c 2011-08-13 09:18:59.458202448 -0700
+++ xfs/fs/xfs/xfs_iops.c 2011-08-13 09:19:21.664748812 -0700
@@ -825,8 +825,8 @@ xfs_setattr_size(
* care about here.
*/
if (ip->i_size != ip->i_d.di_size && iattr->ia_size > ip->i_d.di_size) {
- error = xfs_flush_pages(ip, ip->i_d.di_size, iattr->ia_size,
- XBF_ASYNC, FI_NONE);
+ error = xfs_flush_pages(ip, ip->i_d.di_size, iattr->ia_size, 0,
+ FI_NONE);
if (error)
goto out_unlock;
}
|
| Previous by Date: | [PATCH 06/11] xfs: use the "delwri" terminology consistently, Christoph Hellwig |
|---|---|
| Next by Date: | [PATCH 05/11] xfs: let xfs_bwrite callers handle the xfs_buf_relse, Christoph Hellwig |
| Previous by Thread: | [PATCH 06/11] xfs: use the "delwri" terminology consistently, Christoph Hellwig |
| Next by Thread: | [PATCH 05/11] xfs: let xfs_bwrite callers handle the xfs_buf_relse, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |