Lines Matching defs:we
463 * the same as the new log we just opened.
591 * is the same as the log of the maximum power of two. So we can do
707 struct wapbl_entry *we;
713 * XXX we may consider using upgrade here
714 * if we want to call flush from inside a transaction
741 SIMPLEQ_FOREACH(we, &wl->wl_entries, we_entries) {
745 we->we_bufcount, we->we_reclaimable_bytes,
746 we->we_error, we->we_unsynced_bufbytes));
759 SIMPLEQ_FOREACH(we, &wl->wl_entries, we_entries) {
763 we->we_bufcount, we->we_reclaimable_bytes,
764 we->we_error));
809 while ((we = SIMPLEQ_FIRST(&wl->wl_entries)) != NULL) {
811 /* XXX should we be accumulating wl_error_count
813 we->we_wapbl = NULL;
814 if (we->we_bufcount == 0) {
816 KASSERT(we->we_unsynced_bufbytes == 0);
818 pool_put(&wapbl_entry_pool, we);
829 /* XXX should we clear wl_reserved_bytes? */
1102 * If this write goes to an empty buffer we have to
1547 * First check to see if we have to do a commit
1593 * we only call this routine from inside flush itself.
1621 struct wapbl_entry *we = bp->b_private;
1628 wl = we->we_wapbl;
1636 KASSERT(we->we_bufcount > 0);
1637 we->we_bufcount--;
1639 KASSERT(we->we_unsynced_bufbytes >= bufsize);
1640 we->we_unsynced_bufbytes -= bufsize;
1643 if (we->we_bufcount == 0) {
1645 KASSERT(we->we_unsynced_bufbytes == 0);
1647 pool_put(&wapbl_entry_pool, we);
1668 * as a delayed write on the LRU queue so that we can retry
1689 * log to become empty and we better unbusy the buffer before
1696 KASSERT(we->we_bufcount > 0);
1697 we->we_bufcount--;
1699 KASSERT(we->we_unsynced_bufbytes >= bufsize);
1700 we->we_unsynced_bufbytes -= bufsize;
1709 * transactions. If we successfully reclaim anything,
1712 if (we->we_bufcount == 0) {
1716 KDASSERT(we->we_unsynced_bufbytes == 0);
1722 while ((we = SIMPLEQ_FIRST(&wl->wl_entries)) &&
1723 we->we_bufcount == 0) {
1724 delta += we->we_reclaimable_bytes;
1725 if (we->we_error)
1728 pool_put(&wapbl_entry_pool, we);
1764 struct wapbl_entry *we;
1791 * XXX we may consider using LK_UPGRADE here
1792 * if we want to call flush from inside a transaction
1798 * Now that we are exclusively locked and the file system has
1872 /* Opportunistically move the tail forward if we can */
1883 we = pool_get(&wapbl_entry_pool, PR_WAITOK);
1921 we->we_wapbl = wl;
1922 we->we_bufcount = wl->wl_bufcount;
1924 we->we_unsynced_bufbytes = wl->wl_bufbytes;
1926 we->we_reclaimable_bytes = flushsize;
1927 we->we_error = 0;
1928 SIMPLEQ_INSERT_TAIL(&wl->wl_entries, we, we_entries);
1939 bp->b_private = we;
1997 SIMPLEQ_FOREACH(we, &wl->wl_entries, we_entries) {
2001 we->we_bufcount, we->we_reclaimable_bytes,
2002 we->we_error, we->we_unsynced_bufbytes));
2016 SIMPLEQ_FOREACH(we, &wl->wl_entries, we_entries) {
2019 "error = %d\n", we->we_bufcount,
2020 we->we_reclaimable_bytes, we->we_error));
2054 struct wapbl_entry *we;
2081 SIMPLEQ_FOREACH(we, &wl->wl_entries, we_entries) {
2085 we->we_bufcount, we->we_reclaimable_bytes,
2086 we->we_error, we->we_unsynced_bufbytes);
2089 we->we_bufcount, we->we_reclaimable_bytes, we->we_error);
2477 * Flush disk cache to ensure that blocks we've written are actually
2482 * XXX Calc checksum here, instead we do this for now
2532 * This panic should be able to be removed if we do the
2533 * zero'ing mentioned above, and we are certain to roll
2588 * filesystem requires that we must take the vnode lock
2589 * to call VOP_BMAP, then we can probably do it in
2970 /* Use this until we read the actual log header */
2990 * especially root. However, we might still want to verify
3185 * Keep track of where we found this so location won't be