Lines Matching defs:wapbl
46 #include <sys/wapbl.h>
116 struct wapbl {
137 * WAPBL log layout, stored on wl_devvp at wl_logpbn:
259 struct wapbl *wapbl_debug_wl;
262 static int wapbl_write_commit(struct wapbl *, off_t, off_t);
263 static int wapbl_write_blocks(struct wapbl *, off_t *);
264 static int wapbl_write_revocations(struct wapbl *, off_t *);
265 static int wapbl_write_inodes(struct wapbl *, off_t *);
286 static void wapbl_inodetrk_init(struct wapbl *wl, u_int size);
287 static void wapbl_inodetrk_free(struct wapbl *wl);
288 static struct wapbl_ino *wapbl_inodetrk_get(struct wapbl *wl, ino_t ino);
290 static size_t wapbl_transaction_len(struct wapbl *wl);
291 static inline size_t wapbl_transaction_inodes_len(struct wapbl *wl);
293 static void wapbl_deallocation_free(struct wapbl *, struct wapbl_dealloc *,
296 static void wapbl_evcnt_init(struct wapbl *);
297 static void wapbl_evcnt_free(struct wapbl *);
299 static void wapbl_dkcache_init(struct wapbl *);
320 /* XXX: the following is only used to say "this is a wapbl buf" */
324 SYSCTL_SETUP(wapbl_sysctl_init, "wapbl sysctl")
331 CTLTYPE_NODE, "wapbl",
332 SYSCTL_DESCR("WAPBL journaling options"),
350 SYSCTL_DESCR("show time and size of wapbl log commits"),
400 wapbl_evcnt_init(struct wapbl *wl)
404 "wapbl fsid 0x%x/0x%x",
421 wapbl_evcnt_free(struct wapbl *wl)
432 wapbl_dkcache_init(struct wapbl *wl)
454 wapbl_start_flush_inodes(struct wapbl *wl, struct wapbl_replay *wr)
501 wapbl_start(struct wapbl ** wlp, struct mount *mp, struct vnode *vp,
505 struct wapbl *wl;
519 ("wapbl: log device's block size cannot be larger "
705 wapbl_discard(struct wapbl *wl)
844 wapbl_stop(struct wapbl *wl, int force)
998 wapbl_buffered_write_async(struct wapbl *wl, struct buf *bp)
1025 wapbl_buffered_flush(struct wapbl *wl, bool full)
1075 wapbl_buffered_write(void *data, size_t len, struct wapbl *wl, daddr_t pbn,
1157 wapbl_circ_write(struct wapbl *wl, void *data, size_t len, off_t *offp)
1200 * WAPBL transactions: entering, adding/removing bufs, and exiting
1204 wapbl_begin(struct wapbl *wl, const char *file, int line)
1260 wapbl_end(struct wapbl *wl)
1289 wapbl_add_buf(struct wapbl *wl, struct buf * bp)
1334 wapbl_remove_buf_locked(struct wapbl * wl, struct buf *bp)
1373 wapbl_remove_buf(struct wapbl * wl, struct buf *bp)
1382 wapbl_resize_buf(struct wapbl *wl, struct buf *bp, long oldsz, long oldcnt)
1533 wapbl_truncate(struct wapbl *wl, size_t minfree)
1622 struct wapbl *wl;
1761 wapbl_flush(struct wapbl *wl, int waitfor)
2034 wapbl_jlock_assert(struct wapbl *wl)
2041 wapbl_junlock_assert(struct wapbl *wl)
2051 wapbl_print(struct wapbl *wl, int full, void (*pr)(const char *, ...))
2055 (*pr)("wapbl %p", wl);
2171 wapbl_dump(struct wapbl *wl)
2186 wapbl_register_deallocation(struct wapbl *wl, daddr_t blk, int len, bool force,
2241 wapbl_deallocation_free(struct wapbl *wl, struct wapbl_dealloc *wd,
2261 wapbl_unregister_deallocation(struct wapbl *wl, void *cookie)
2271 wapbl_inodetrk_init(struct wapbl *wl, u_int size)
2282 wapbl_inodetrk_free(struct wapbl *wl)
2296 wapbl_inodetrk_get(struct wapbl *wl, ino_t ino)
2312 wapbl_register_inode(struct wapbl *wl, ino_t ino, mode_t mode)
2336 wapbl_unregister_inode(struct wapbl *wl, ino_t ino, mode_t mode)
2365 wapbl_transaction_inodes_len(struct wapbl *wl)
2386 wapbl_transaction_len(struct wapbl *wl)
2405 * If sysctl(vfs.wapbl.verbose_commit) >= 2, print a message
2409 wapbl_cache_sync(struct wapbl *wl, const char *msg)
2466 wapbl_write_commit(struct wapbl *wl, off_t head, off_t tail)
2556 wapbl_write_blocks(struct wapbl *wl, off_t *offp)
2651 wapbl_write_revocations(struct wapbl *wl, off_t *offp)
2707 wapbl_write_inodes(struct wapbl *wl, off_t *offp)
3018 printf("Unrecognized wapbl magic: 0x%08x\n", wch->wc_type);
3244 printf("Unrecognized wapbl type: 0x%08x\n",
3463 MODULE(MODULE_CLASS_VFS, wapbl, NULL);