diff options
Diffstat (limited to 'fs/jfs/file.c')
-rw-r--r-- | fs/jfs/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jfs/file.c b/fs/jfs/file.c index 2f3f531f3606..9f32315acef1 100644 --- a/fs/jfs/file.c +++ b/fs/jfs/file.c | |||
@@ -110,6 +110,8 @@ int jfs_setattr(struct dentry *dentry, struct iattr *iattr) | |||
110 | 110 | ||
111 | if ((iattr->ia_valid & ATTR_SIZE) && | 111 | if ((iattr->ia_valid & ATTR_SIZE) && |
112 | iattr->ia_size != i_size_read(inode)) { | 112 | iattr->ia_size != i_size_read(inode)) { |
113 | inode_dio_wait(inode); | ||
114 | |||
113 | rc = vmtruncate(inode, iattr->ia_size); | 115 | rc = vmtruncate(inode, iattr->ia_size); |
114 | if (rc) | 116 | if (rc) |
115 | return rc; | 117 | return rc; |