aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_aops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 5835e699a7fc..c0a904316854 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -1157,6 +1157,18 @@ out_unlock:
1157 return error; 1157 return error;
1158} 1158}
1159 1159
1160STATIC int
1161xfs_vm_writepages(
1162 struct address_space *mapping,
1163 struct writeback_control *wbc)
1164{
1165 struct vnode *vp = vn_from_inode(mapping->host);
1166
1167 if (VN_TRUNC(vp))
1168 VUNTRUNCATE(vp);
1169 return generic_writepages(mapping, wbc);
1170}
1171
1160/* 1172/*
1161 * Called to move a page into cleanable state - and from there 1173 * Called to move a page into cleanable state - and from there
1162 * to be released. Possibly the page is already clean. We always 1174 * to be released. Possibly the page is already clean. We always
@@ -1451,6 +1463,7 @@ struct address_space_operations xfs_address_space_operations = {
1451 .readpage = xfs_vm_readpage, 1463 .readpage = xfs_vm_readpage,
1452 .readpages = xfs_vm_readpages, 1464 .readpages = xfs_vm_readpages,
1453 .writepage = xfs_vm_writepage, 1465 .writepage = xfs_vm_writepage,
1466 .writepages = xfs_vm_writepages,
1454 .sync_page = block_sync_page, 1467 .sync_page = block_sync_page,
1455 .releasepage = xfs_vm_releasepage, 1468 .releasepage = xfs_vm_releasepage,
1456 .invalidatepage = xfs_vm_invalidatepage, 1469 .invalidatepage = xfs_vm_invalidatepage,