aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-03-17 01:26:25 -0500
committerNathan Scott <nathans@sgi.com>2006-03-17 01:26:25 -0500
commit238f4c5468656e3e8b1d39d75c1e4fd73592c1ea (patch)
treebf1693981be95da7c05ff1cf3133582ef9d7008c
parenta13828b167532a2145c9e3f563a99f810500c7b4 (diff)
[XFS] Make couple names consitent, be more defensive on releasepage (and
prep for nobh, someday, maybe). SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:25481a Signed-off-by: Nathan Scott <nathans@sgi.com>
-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,