diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-09-27 10:49:32 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-09-27 10:49:32 -0400 |
commit | e154a2613d455f3bdf13c8aeb179c8634f1b6bf5 (patch) | |
tree | 34eff07c828d9dae02be20ec3c3d87650ec6e7ee /tapset/nfs.stp | |
parent | 000e930e3b60f784a5c1889c8fa59b368c1a4de0 (diff) | |
parent | 5e4c160908b88e1272ec09f2c88d7612ce82b7c8 (diff) | |
download | systemtap-steved-e154a2613d455f3bdf13c8aeb179c8634f1b6bf5.tar.gz systemtap-steved-e154a2613d455f3bdf13c8aeb179c8634f1b6bf5.tar.xz systemtap-steved-e154a2613d455f3bdf13c8aeb179c8634f1b6bf5.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset/nfs.stp')
-rw-r--r-- | tapset/nfs.stp | 4 |
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(); %} |