Lines Matching defs:log

60 #define XLOG_BTOLSUNIT(log, b)  (((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \  argument
62 #define XLOG_LSUNITTOB(log, su) ((su) * (log)->l_mp->m_sb.sb_logsunit) argument
66 #define XLOG_REC_SHIFT(log) \ argument
69 #define XLOG_TOTAL_REC_SHIFT(log) \ argument
86 #define ASSIGN_LSN(lsn,log,arch) \ argument
125 #define XLOG_GRANT_SUB_SPACE(log,bytes,type) \ argument
128 #define XLOG_GRANT_SUB_SPACE(log,bytes,type) \ argument
147 #define XLOG_GRANT_ADD_SPACE(log,bytes,type) \ argument
150 #define XLOG_GRANT_ADD_SPACE(log,bytes,type) \ argument
194 #define GRANT_LOCK(log) mutex_spinlock(&(log)->l_grant_lock) argument
195 #define GRANT_UNLOCK(log, s) mutex_spinunlock(&(log)->l_grant_lock, s) argument
196 #define LOG_LOCK(log) mutex_spinlock(&(log)->l_icloglock) argument
197 #define LOG_UNLOCK(log, s) mutex_spinunlock(&(log)->l_icloglock, s) argument
475 typedef struct log { struct
477 sema_t l_flushsema; /* iclog flushing semaphore */ argument
483 * log entries" */ argument
484 xlog_ticket_t *l_freelist; /* free list of tickets */ argument
485 xlog_ticket_t *l_unmount_free;/* kmem_free these addresses */ argument
486 xlog_ticket_t *l_tail; /* free list of tickets */ argument
487 xlog_in_core_t *l_iclog; /* head log queue */ argument
488 lock_t l_icloglock; /* grab to change iclog state */ argument
493 struct xfs_buf *l_xbuf; /* extra buffer for log argument
495 struct xfs_buftarg *l_targ; /* buftarg of log */ argument
496 xfs_daddr_t l_logBBstart; /* start block of log */ argument
497 int l_logsize; /* size of log in bytes */ argument
498 int l_logBBsize; /* size of log in BB chunks */ argument
499 int l_curr_cycle; /* Cycle number of log writes */ argument
502 int l_curr_block; /* current logical log block */ argument
503 int l_prev_block; /* previous logical log block */ argument
504 int l_iclog_size; /* size of log in bytes */ argument
505 int l_iclog_size_log; /* log power size of log */ argument
506 int l_iclog_bufs; /* number of iclog buffers */ argument
509 char *l_iclog_bak[XLOG_MAX_ICLOGS]; argument
513 xlog_ticket_t *l_reserve_headq; argument
514 xlog_ticket_t *l_write_headq; argument
528 int l_iclog_hsize; /* size of iclog header */ argument
529 int l_iclog_heads; /* # of iclog header sectors */ argument
530 uint l_sectbb_log; /* log2 of sector size in BBs */ argument
538 extern int xlog_find_head(xlog_t *log, xfs_daddr_t *head_blk); argument