diff -r a7a805f15593 usr.bin/fstat/zfs.c --- a/usr.bin/fstat/zfs.c Tue May 26 21:56:18 2009 +0000 +++ b/usr.bin/fstat/zfs.c Wed May 27 19:41:13 2009 +0000 @@ -29,6 +29,7 @@ #include #define _KERNEL #include +#include #undef _KERNEL #include @@ -57,7 +58,8 @@ * definition. */ #define LOCATION_ZID (2 * sizeof(void *)) -#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *))) +#define LOCATION_ZPHYS(zsize) ((zsize) - \ + (2 * sizeof(void *)) - sizeof(struct task)) int zfs_filestat(struct vnode *vp, struct filestat *fsp)