Commit 5f315a6a authored by Nathan Scott's avatar Nathan Scott

[XFS] Fix BUG in debug trace code, it was plain wrong for the unmapped page case.

SGI Modid: xfs-linux:xfs-kern:166828a
parent ddc13f45
...@@ -71,9 +71,10 @@ xfs_page_trace( ...@@ -71,9 +71,10 @@ xfs_page_trace(
vnode_t *vp = LINVFS_GET_VP(inode); vnode_t *vp = LINVFS_GET_VP(inode);
loff_t isize = i_size_read(inode); loff_t isize = i_size_read(inode);
loff_t offset = page->index << PAGE_CACHE_SHIFT; loff_t offset = page->index << PAGE_CACHE_SHIFT;
int delalloc, unmapped, unwritten; int delalloc = -1, unmapped = -1, unwritten = -1;
xfs_count_page_state(page, &delalloc, &unmapped, &unwritten); if (page_has_buffers(page))
xfs_count_page_state(page, &delalloc, &unmapped, &unwritten);
bdp = vn_bhv_lookup(VN_BHV_HEAD(vp), &xfs_vnodeops); bdp = vn_bhv_lookup(VN_BHV_HEAD(vp), &xfs_vnodeops);
ip = XFS_BHVTOI(bdp); ip = XFS_BHVTOI(bdp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment