[XFS] Add a chunk of tracing code to diagnose truncate related issues.
[deliverable/linux.git] / fs / xfs / linux-2.6 / xfs_aops.c
index a3a4b5aaf5d985020672a47e0c6858a21b190ad4..bd9aba1f23538a3c2af01ceaac28def63d8db6f6 100644 (file)
@@ -1202,6 +1202,16 @@ out_unlock:
        return error;
 }
 
+STATIC int
+linvfs_invalidate_page(
+       struct page             *page,
+       unsigned long           offset)
+{
+       xfs_page_trace(XFS_INVALIDPAGE_ENTER,
+                       page->mapping->host, page, offset);
+       return block_invalidatepage(page, offset);
+}
+
 /*
  * Called to move a page into cleanable state - and from there
  * to be released. Possibly the page is already clean. We always
@@ -1279,6 +1289,7 @@ struct address_space_operations linvfs_aops = {
        .writepage              = linvfs_writepage,
        .sync_page              = block_sync_page,
        .releasepage            = linvfs_release_page,
+       .invalidatepage         = linvfs_invalidate_page,
        .prepare_write          = linvfs_prepare_write,
        .commit_write           = generic_commit_write,
        .bmap                   = linvfs_bmap,
This page took 0.026563 seconds and 5 git commands to generate.