aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-03-17 17:26:25 +1100
committerNathan Scott <nathans@sgi.com>2006-03-17 17:26:25 +1100
commit238f4c5468656e3e8b1d39d75c1e4fd73592c1ea (patch)
treebf1693981be95da7c05ff1cf3133582ef9d7008c /fs/xfs/linux-2.6
parent[XFS] Cleanup references to i_sem. (diff)
downloadlinux-dev-238f4c5468656e3e8b1d39d75c1e4fd73592c1ea.tar.xz
linux-dev-238f4c5468656e3e8b1d39d75c1e4fd73592c1ea.zip
[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>
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:
* free them and we should come back later via writepage.
*/
STATIC int
-xfs_vm_release_page(
+xfs_vm_releasepage(
struct page *page,
gfp_t gfp_mask)
{
@@ -1191,6 +1191,9 @@ xfs_vm_release_page(
xfs_page_trace(XFS_RELEASEPAGE_ENTER, inode, page, gfp_mask);
+ if (!page_has_buffers(page))
+ return 0;
+
xfs_count_page_state(page, &delalloc, &unmapped, &unwritten);
if (!delalloc && !unwritten)
goto free_buffers;
@@ -1440,7 +1443,7 @@ xfs_vm_readpages(
}
STATIC int
-xfs_vm_invalidate_page(
+xfs_vm_invalidatepage(
struct page *page,
unsigned long offset)
{
@@ -1454,8 +1457,8 @@ struct address_space_operations xfs_address_space_operations = {
.readpages = xfs_vm_readpages,
.writepage = xfs_vm_writepage,
.sync_page = block_sync_page,
- .releasepage = xfs_vm_release_page,
- .invalidatepage = xfs_vm_invalidate_page,
+ .releasepage = xfs_vm_releasepage,
+ .invalidatepage = xfs_vm_invalidatepage,
.prepare_write = xfs_vm_prepare_write,
.commit_write = generic_commit_write,
.bmap = xfs_vm_bmap,