btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / src / add-ons / kernel / file_systems / googlefs / vnidpool.h
bloba8f99bb746b1bb433ecbd280a25be8958dec3cb9
1 /*
2 * Copyright 2004-2008, François Revol, <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _VNIDPOOL_H
6 #define _VNIDPOOL_H
8 #include "googlefs.h"
10 typedef struct vnidpool {
11 lock lock;
12 ino_t nextvnid;
13 uint32 *bitmap;
14 size_t bmsize;
15 } vnidpool;
17 status_t vnidpool_alloc(struct vnidpool **pool, size_t size);
18 status_t vnidpool_free(struct vnidpool *pool);
19 status_t vnidpool_get(struct vnidpool *pool, ino_t *vnid);
20 status_t vnidpool_put(struct vnidpool *pool, ino_t vnid);
22 #endif /* _VNIDPOOL_H */