summaryrefslogtreecommitdiffstats
path: root/tapset/nfs.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/nfs.stp')
-rw-r--r--tapset/nfs.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/nfs.stp b/tapset/nfs.stp
index 61443581..87a2f4cc 100644
--- a/tapset/nfs.stp
+++ b/tapset/nfs.stp
@@ -60,7 +60,11 @@ function __nfsi_ndirty:long (inode:long) %{ /* pure */
THIS->__retvalue = -1;
else {
struct nfs_inode * nfsi = NFS_I(inode);
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22)
THIS->__retvalue = kread(&(nfsi->ndirty));
+#else
+ THIS->__retvalue = -1;
+#endif
}
CATCH_DEREF_FAULT();
%}