From d2d885a0f315de0bb2229e83ea282f0c036a83b6 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 10 Jul 2008 11:24:09 -0700 Subject: Correct access to the mapping field in vfs::__address_inode(). --- tapset/ChangeLog | 4 ++++ tapset/vfs.stp | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tapset') diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 670f3255..4560494e 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,7 @@ +2008-07-10 Josh Stone + + * vfs.stp (__address_inode): Correct access to the mapping field. + 2008-07-09 Mark Wielaard PR 6732 diff --git a/tapset/vfs.stp b/tapset/vfs.stp index 3c38786a..46bc3d21 100644 --- a/tapset/vfs.stp +++ b/tapset/vfs.stp @@ -59,8 +59,7 @@ function __page_ino:long (page:long) %{ /* pure */ function __address_inode:long (page:long) %{ /* pure */ struct page *page = (struct page *)(long)THIS->page; - struct address_space *mapping = - (struct address_space *)(long)THIS; + struct address_space *mapping = kread(&(page->mapping)); if (mapping == NULL) { THIS->__retvalue = -1; } else { -- cgit