19fc74a87SXin LI /*-
2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause
3d915a14eSPedro F. Giffuni *
49fc74a87SXin LI * Copyright (c) 2009 Xin LI <delphij@FreeBSD.org>
59fc74a87SXin LI *
69fc74a87SXin LI * Redistribution and use in source and binary forms, with or without
79fc74a87SXin LI * modification, are permitted provided that the following conditions
89fc74a87SXin LI * are met:
99fc74a87SXin LI * 1. Redistributions of source code must retain the above copyright
109fc74a87SXin LI * notice, this list of conditions and the following disclaimer.
119fc74a87SXin LI * 2. Redistributions in binary form must reproduce the above copyright
129fc74a87SXin LI * notice, this list of conditions and the following disclaimer in the
139fc74a87SXin LI * documentation and/or other materials provided with the distribution.
149fc74a87SXin LI *
159fc74a87SXin LI * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
169fc74a87SXin LI * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
179fc74a87SXin LI * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
189fc74a87SXin LI * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
199fc74a87SXin LI * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
209fc74a87SXin LI * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
219fc74a87SXin LI * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
229fc74a87SXin LI * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
239fc74a87SXin LI * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
249fc74a87SXin LI * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
259fc74a87SXin LI * SUCH DAMAGE.
269fc74a87SXin LI *
279fc74a87SXin LI */
289fc74a87SXin LI
299fc74a87SXin LI #include <db.h>
309fc74a87SXin LI #include <mpool.h>
319fc74a87SXin LI
329fc74a87SXin LI void *__mpool_new__44bsd(MPOOL *, pgno_t *);
339fc74a87SXin LI
349fc74a87SXin LI void *
__mpool_new__44bsd(MPOOL * mp,pgno_t * pgnoaddr)359fc74a87SXin LI __mpool_new__44bsd(MPOOL *mp, pgno_t *pgnoaddr)
369fc74a87SXin LI {
379fc74a87SXin LI
389fc74a87SXin LI return (mpool_new(mp, pgnoaddr, MPOOL_PAGE_NEXT));
399fc74a87SXin LI }
409fc74a87SXin LI
419fc74a87SXin LI __sym_compat(mpool_new, __mpool_new_44bsd, FBSD_1.0);
42