aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 448912f0e753..d9bf130c63ba 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -1178,7 +1178,7 @@ out_unlock:
1178 * free them and we should come back later via writepage. 1178 * free them and we should come back later via writepage.
1179 */ 1179 */
1180STATIC int 1180STATIC int
1181xfs_vm_release_page( 1181xfs_vm_releasepage(
1182 struct page *page, 1182 struct page *page,
1183 gfp_t gfp_mask) 1183 gfp_t gfp_mask)
1184{ 1184{
@@ -1191,6 +1191,9 @@ xfs_vm_release_page(
1191 1191
1192 xfs_page_trace(XFS_RELEASEPAGE_ENTER, inode, page, gfp_mask); 1192 xfs_page_trace(XFS_RELEASEPAGE_ENTER, inode, page, gfp_mask);
1193 1193
1194 if (!page_has_buffers(page))
1195 return 0;
1196
1194 xfs_count_page_state(page, &delalloc, &unmapped, &unwritten); 1197 xfs_count_page_state(page, &delalloc, &unmapped, &unwritten);
1195 if (!delalloc && !unwritten) 1198 if (!delalloc && !unwritten)
1196 goto free_buffers; 1199 goto free_buffers;
@@ -1440,7 +1443,7 @@ xfs_vm_readpages(
1440} 1443}
1441 1444
1442STATIC int 1445STATIC int
1443xfs_vm_invalidate_page( 1446xfs_vm_invalidatepage(
1444 struct page *page, 1447 struct page *page,
1445 unsigned long offset) 1448 unsigned long offset)
1446{ 1449{
@@ -1454,8 +1457,8 @@ struct address_space_operations xfs_address_space_operations = {
1454 .readpages = xfs_vm_readpages, 1457 .readpages = xfs_vm_readpages,
1455 .writepage = xfs_vm_writepage, 1458 .writepage = xfs_vm_writepage,
1456 .sync_page = block_sync_page, 1459 .sync_page = block_sync_page,
1457 .releasepage = xfs_vm_release_page, 1460 .releasepage = xfs_vm_releasepage,
1458 .invalidatepage = xfs_vm_invalidate_page, 1461 .invalidatepage = xfs_vm_invalidatepage,
1459 .prepare_write = xfs_vm_prepare_write, 1462 .prepare_write = xfs_vm_prepare_write,
1460 .commit_write = generic_commit_write, 1463 .commit_write = generic_commit_write,
1461 .bmap = xfs_vm_bmap, 1464 .bmap = xfs_vm_bmap,