Lines Matching refs:recovery_head
1796 tdb_off_t recovery_head; in tdb_recovery_allocate() local
1798 if (tdb_ofs_read(tdb, TDB_RECOVERY_HEAD, &recovery_head) == -1) { in tdb_recovery_allocate()
1805 if (recovery_head != 0 && in tdb_recovery_allocate()
1806 methods->tdb_read(tdb, recovery_head, &rec, sizeof(rec), DOCONV()) == -1) { in tdb_recovery_allocate()
1813 if (recovery_head != 0 && *recovery_size <= rec.rec_len) { in tdb_recovery_allocate()
1816 *recovery_offset = recovery_head; in tdb_recovery_allocate()
1825 if (recovery_head != 0) { in tdb_recovery_allocate()
1826 if (tdb_free(tdb, recovery_head, &rec) == -1) { in tdb_recovery_allocate()
1838 recovery_head = *recovery_offset; in tdb_recovery_allocate()
1856 CONVERT(recovery_head); in tdb_recovery_allocate()
1858 &recovery_head, sizeof(tdb_off_t)) == -1) { in tdb_recovery_allocate()
2134 tdb_off_t recovery_head, recovery_eof; in tdb_transaction_recover() local
2140 if (tdb_ofs_read(tdb, TDB_RECOVERY_HEAD, &recovery_head) == -1) { in tdb_transaction_recover()
2146 if (recovery_head == 0) { in tdb_transaction_recover()
2152 if (tdb->methods->tdb_read(tdb, recovery_head, &rec, in tdb_transaction_recover()
2180 if (tdb->methods->tdb_read(tdb, recovery_head + sizeof(rec), data, in tdb_transaction_recover()
2215 if (recovery_eof <= recovery_head) { in tdb_transaction_recover()
2224 if (tdb_ofs_write(tdb, recovery_head + offsetof(struct list_struct, magic), in tdb_transaction_recover()