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:
parent
34abed55f3
commit
fe20fb9fb0
@ -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
|
* Allocate vnode and internal data structure
|
||||||
*/
|
*/
|
||||||
fp = kmem_zalloc(size, KM_SLEEP);
|
fp = kmem_zalloc(size, KM_SLEEP);
|
||||||
error = getnewvnode("zfs", vfsp, ops, &vp);
|
error = getnewvnode("zfs_gfs", vfsp, ops, &vp);
|
||||||
ASSERT(error == 0);
|
ASSERT(error == 0);
|
||||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
|
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
|
||||||
vp->v_data = (caddr_t)fp;
|
vp->v_data = (caddr_t)fp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user