+
+#if CONFIG_FREEZE
+int
+vm_swap_vol_get_budget(vnode_t vp, uint64_t *freeze_daily_budget)
+{
+ vnode_t devvp = NULL;
+ vfs_context_t ctx = vfs_context_kernel();
+ errno_t err = 0;
+
+ devvp = vp->v_mount->mnt_devvp;
+
+ err = VNOP_IOCTL(devvp, DKIOCGETMAXSWAPWRITE, (caddr_t)freeze_daily_budget, 0, ctx);
+
+ return err;
+}
+#endif /* CONFIG_FREEZE */