Use the "zfs_gfs" tag for GFS vnodes to make them easier to identify.

MFC after:	1 week
Sponsored by:	Spectra Logic
This commit is contained in:
Will Andrews 2015-01-20 22:31:26 +00:00
parent 34abed55f3
commit fe20fb9fb0

View File

@ -489,7 +489,7 @@ gfs_file_create(size_t size, vnode_t *pvp, vfs_t *vfsp, vnodeops_t *ops)
* Allocate vnode and internal data structure
*/
fp = kmem_zalloc(size, KM_SLEEP);
error = getnewvnode("zfs", vfsp, ops, &vp);
error = getnewvnode("zfs_gfs", vfsp, ops, &vp);
ASSERT(error == 0);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
vp->v_data = (caddr_t)fp;