Fix bug in zphys offset calculation I introduced while retyping

original patch.
This commit is contained in:
Alexander Nedotsukov 2009-06-09 04:09:31 +00:00
parent e29dea04cb
commit 64fbf83d6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193802

View File

@ -58,7 +58,7 @@
* definition.
*/
#define LOCATION_ZID (2 * sizeof(void *))
#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *) - sizeof(struct task)))
#define LOCATION_ZPHYS(zsize) ((zsize) - (2 * sizeof(void *) + sizeof(struct task)))
int
zfs_filestat(struct vnode *vp, struct filestat *fsp)