| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 4/5] xfs: wait for I/O completion when writing out pages in xfs_setattr_size |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Sun, 14 Aug 2011 18:24:16 -0400 |
| References: | <20110814222412.359079843@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>
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;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 5/5] xfs: remove i_iocount, Christoph Hellwig |
|---|---|
| Next by Date: | XFS status update for July 2011, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 5/5] xfs: remove i_iocount, Dave Chinner |
| Next by Thread: | Re: [PATCH 4/5] xfs: wait for I/O completion when writing out pages in xfs_setattr_size, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |