summaryrefslogtreecommitdiffstats
path: root/tapset/dentry.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/dentry.stp')
-rw-r--r--tapset/dentry.stp14
1 files changed, 6 insertions, 8 deletions
diff --git a/tapset/dentry.stp b/tapset/dentry.stp
index af8a866f..1d045d02 100644
--- a/tapset/dentry.stp
+++ b/tapset/dentry.stp
@@ -86,14 +86,12 @@ function reverse_path_walk:string(dentry:long)
function d_path:string(nd:long)
{
root = __dentry_get_current_root()
- dentry = %( kernel_vr < "2.6.25"
- %? @cast(nd,"nameidata")->dentry
- %: @cast(nd,"nameidata")->path->dentry
- %)
- vfsmnt = %( kernel_vr < "2.6.25"
- %? @cast(nd,"nameidata")->mnt
- %: @cast(nd,"nameidata")->path->mnt
- %)
+ dentry = (@defined(@cast(nd,"nameidata")->path->dentry)
+ ? @cast(nd,"nameidata")->path->dentry
+ : @cast(nd,"nameidata")->dentry)
+ vfsmnt = (@defined(@cast(nd,"nameidata")->path->mnt)
+ ? @cast(nd,"nameidata")->path->mnt
+ : @cast(nd,"nameidata")->mnt)
while (1) {
if (dentry == @cast(root, "path")->dentry &&
vfsmnt == @cast(root, "path")->mnt)