/fs/jfs/ |
D | jfs_logmgr.c | 80 #define LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) argument 81 #define LOG_LOCK(log) mutex_lock(&((log)->loglock)) argument 82 #define LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) argument 89 #define LOGGC_LOCK_INIT(log) spin_lock_init(&(log)->gclock) argument 90 #define LOGGC_LOCK(log) spin_lock_irq(&(log)->gclock) argument 91 #define LOGGC_UNLOCK(log) spin_unlock_irq(&(log)->gclock) argument 163 static int lmWriteRecord(struct jfs_log * log, struct tblock * tblk, 166 static int lmNextPage(struct jfs_log * log); 167 static int lmLogFileSystem(struct jfs_log * log, struct jfs_sb_info *sbi, 172 static int lbmLogInit(struct jfs_log * log); [all …]
|
D | jfs_txnmgr.c | 151 static void diLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd, 153 static void dataLog(struct jfs_log *log, struct tblock *tblk, struct lrd *lrd, 155 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 157 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 162 static void txLog(struct jfs_log *log, struct tblock *tblk, 166 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 352 struct jfs_log *log; in txBegin() local 355 log = JFS_SBI(sb)->log; in txBegin() 357 if (!log) { in txBegin() 371 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBegin() [all …]
|
D | jfs_logmgr.h | 336 } log; member 477 #define LOGSYNC_LOCK_INIT(log) spin_lock_init(&(log)->synclock) argument 478 #define LOGSYNC_LOCK(log, flags) spin_lock_irqsave(&(log)->synclock, flags) argument 479 #define LOGSYNC_UNLOCK(log, flags) \ argument 480 spin_unlock_irqrestore(&(log)->synclock, flags) 483 #define logdiff(diff, lsn, log)\ argument 485 diff = (lsn) - (log)->syncpt;\ 487 diff += (log)->logsize;\ 492 extern int lmLogShutdown(struct jfs_log * log); 493 extern int lmLogInit(struct jfs_log * log); [all …]
|
D | jfs_umount.c | 44 struct jfs_log *log; in jfs_umount() local 54 if ((log = sbi->log)) in jfs_umount() 58 jfs_flush_journal(log, 2); in jfs_umount() 108 if (log) { /* log = NULL if read-only mount */ in jfs_umount() 126 struct jfs_log *log = sbi->log; in jfs_umount_rw() local 128 if (!log) in jfs_umount_rw() 136 jfs_flush_journal(log, 2); in jfs_umount_rw()
|
D | resize.c | 57 struct jfs_log *log = sbi->log; in jfs_extendfs() local 185 if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) in jfs_extendfs() 208 lmLogShutdown(log); in jfs_extendfs() 249 if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) in jfs_extendfs() 255 log->base = newLogAddress; in jfs_extendfs() 256 log->size = newLogSize >> (L2LOGPSIZE - sb->s_blocksize_bits); in jfs_extendfs() 257 if ((rc = lmLogInit(log))) in jfs_extendfs() 500 j_sb->s_logserial = cpu_to_le32(log->serial); in jfs_extendfs()
|
/fs/xfs/ |
D | xfs_log.c | 35 struct xlog *log, 39 struct xlog *log); 45 struct xlog *log); 48 struct xlog *log, 56 struct xlog *log, 60 struct xlog *log, 65 struct xlog *log, 69 struct xlog *log); 72 struct xlog *log, 77 struct xlog *log, [all …]
|
D | xfs_log_recover.c | 47 #define xlog_recover_check_summary(log) argument 64 struct xlog *log, in xlog_verify_bno() argument 68 if (blk_no < 0 || blk_no >= log->l_logBBsize) in xlog_verify_bno() 70 if (bbcount <= 0 || (blk_no + bbcount) > log->l_logBBsize) in xlog_verify_bno() 81 struct xlog *log, in xlog_alloc_buffer() argument 88 if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, 0, nbblks))) { in xlog_alloc_buffer() 89 xfs_warn(log->l_mp, "Invalid block length (0x%x) for buffer", in xlog_alloc_buffer() 108 if (nbblks > 1 && log->l_sectBBsize > 1) in xlog_alloc_buffer() 109 nbblks += log->l_sectBBsize; in xlog_alloc_buffer() 110 nbblks = round_up(nbblks, log->l_sectBBsize); in xlog_alloc_buffer() [all …]
|
D | xfs_log_cil.c | 36 struct xlog *log) in xlog_cil_ticket_alloc() argument 40 tic = xlog_ticket_alloc(log, 0, 1, XFS_TRANSACTION, 0); in xlog_cil_ticket_alloc() 90 struct xlog *log) in xlog_cil_init_post_recovery() argument 92 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery() 93 log->l_cilp->xc_ctx->sequence = 1; in xlog_cil_init_post_recovery() 153 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument 261 struct xlog *log, in xfs_cil_prepare_item() argument 302 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence; in xfs_cil_prepare_item() 335 struct xlog *log, in xlog_cil_insert_format_items() argument 410 xfs_cil_prepare_item(log, lv, old_lv, diff_len, diff_iovecs); in xlog_cil_insert_format_items() [all …]
|
D | xfs_log_priv.h | 373 #define XLOG_CIL_SPACE_LIMIT(log) \ argument 374 min_t(int, (log)->l_logsize >> 3, BBTOB(XLOG_TOTAL_REC_SHIFT(log)) << 4) 376 #define XLOG_CIL_BLOCKING_SPACE_LIMIT(log) \ argument 377 (XLOG_CIL_SPACE_LIMIT(log) * 2) 467 xlog_recovery_needed(struct xlog *log) in xlog_recovery_needed() argument 469 return test_bit(XLOG_RECOVERY_NEEDED, &log->l_opstate); in xlog_recovery_needed() 473 xlog_in_recovery(struct xlog *log) in xlog_in_recovery() argument 475 return test_bit(XLOG_ACTIVE_RECOVERY, &log->l_opstate); in xlog_in_recovery() 479 xlog_is_shutdown(struct xlog *log) in xlog_is_shutdown() argument 481 return test_bit(XLOG_IO_ERROR, &log->l_opstate); in xlog_is_shutdown() [all …]
|
D | xfs_buf_item_recover.c | 32 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument 33 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE)) 48 struct xlog *log, in xlog_find_buffer_cancelled() argument 55 if (!log->l_buf_cancel_table) in xlog_find_buffer_cancelled() 58 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); in xlog_find_buffer_cancelled() 69 struct xlog *log, in xlog_add_buffer_cancelled() argument 82 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled() 92 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled() 101 struct xlog *log, in xlog_is_buffer_cancelled() argument 105 return xlog_find_buffer_cancelled(log, blkno, len) != NULL; in xlog_is_buffer_cancelled() [all …]
|
D | xfs_dquot_item_recover.c | 25 struct xlog *log, in xlog_recover_dquot_ra_pass2() argument 28 struct xfs_mount *mp = log->l_mp; in xlog_recover_dquot_ra_pass2() 44 if (log->l_quotaoffs_flag & type) in xlog_recover_dquot_ra_pass2() 51 xlog_buf_readahead(log, dq_f->qlf_blkno, in xlog_recover_dquot_ra_pass2() 61 struct xlog *log, in xlog_recover_dquot_commit_pass2() argument 66 struct xfs_mount *mp = log->l_mp; in xlog_recover_dquot_commit_pass2() 82 xfs_alert(log->l_mp, "NULL dquot in %s.", __func__); in xlog_recover_dquot_commit_pass2() 86 xfs_alert(log->l_mp, "dquot too small (%d) in %s.", in xlog_recover_dquot_commit_pass2() 96 if (log->l_quotaoffs_flag & type) in xlog_recover_dquot_commit_pass2() 177 struct xlog *log, in xlog_recover_quotaoff_commit_pass1() argument [all …]
|
D | xfs_icreate_item.c | 143 struct xlog *log, in xlog_recover_icreate_commit_pass2() argument 148 struct xfs_mount *mp = log->l_mp; in xlog_recover_icreate_commit_pass2() 163 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad type"); in xlog_recover_icreate_commit_pass2() 168 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad icl size"); in xlog_recover_icreate_commit_pass2() 174 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agno"); in xlog_recover_icreate_commit_pass2() 179 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agbno"); in xlog_recover_icreate_commit_pass2() 184 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad isize"); in xlog_recover_icreate_commit_pass2() 189 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad count"); in xlog_recover_icreate_commit_pass2() 194 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad length"); in xlog_recover_icreate_commit_pass2() 204 xfs_warn(log->l_mp, in xlog_recover_icreate_commit_pass2() [all …]
|
D | xfs_inode_item_recover.c | 28 struct xlog *log, in xlog_recover_inode_ra_pass2() argument 34 xlog_buf_readahead(log, ilfp->ilf_blkno, ilfp->ilf_len, in xlog_recover_inode_ra_pass2() 39 xlog_buf_readahead(log, ilfp->ilf_blkno, ilfp->ilf_len, in xlog_recover_inode_ra_pass2() 197 struct xlog *log, in xlog_recover_inode_commit_pass2() argument 203 struct xfs_mount *mp = log->l_mp; in xlog_recover_inode_commit_pass2() 230 if (xlog_is_buffer_cancelled(log, in_f->ilf_blkno, in_f->ilf_len)) { in xlog_recover_inode_commit_pass2() 232 trace_xfs_log_recover_inode_cancel(log, in_f); in xlog_recover_inode_commit_pass2() 235 trace_xfs_log_recover_inode_recover(log, in_f); in xlog_recover_inode_commit_pass2() 284 trace_xfs_log_recover_inode_skip(log, in_f); in xlog_recover_inode_commit_pass2() 308 trace_xfs_log_recover_inode_skip(log, in_f); in xlog_recover_inode_commit_pass2() [all …]
|
D | xfs_sysfs.c | 323 struct xlog *log = to_xlog(kobject); in log_head_lsn_show() local 325 spin_lock(&log->l_icloglock); in log_head_lsn_show() 326 cycle = log->l_curr_cycle; in log_head_lsn_show() 327 block = log->l_curr_block; in log_head_lsn_show() 328 spin_unlock(&log->l_icloglock); in log_head_lsn_show() 341 struct xlog *log = to_xlog(kobject); in log_tail_lsn_show() local 343 xlog_crack_atomic_lsn(&log->l_tail_lsn, &cycle, &block); in log_tail_lsn_show() 356 struct xlog *log = to_xlog(kobject); in reserve_grant_head_show() local 358 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show() 370 struct xlog *log = to_xlog(kobject); in write_grant_head_show() local [all …]
|
D | xfs_rtalloc.c | 33 int log, /* log2 of extent size */ in xfs_rtget_summary() argument 39 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary() 58 int log; /* loop counter, log2 of ext. size */ in xfs_rtany_summary() local 68 for (log = low; log <= high; log++) { in xfs_rtany_summary() 72 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary() 90 if (mp->m_rsum_cache && log > mp->m_rsum_cache[bbno]) in xfs_rtany_summary() 91 mp->m_rsum_cache[bbno] = log; in xfs_rtany_summary() 109 int log; /* summary level number (log length) */ in xfs_rtcopy_summary() local 114 for (log = omp->m_rsumlevels - 1; log >= 0; log--) { in xfs_rtcopy_summary() 118 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary() [all …]
|
D | xfs_log.h | 142 xfs_lsn_t xlog_grant_push_threshold(struct xlog *log, int need_bytes); 143 bool xlog_force_shutdown(struct xlog *log, int shutdown_flags); 145 void xlog_use_incompat_feat(struct xlog *log); 146 void xlog_drop_incompat_feat(struct xlog *log);
|
/fs/ntfs3/ |
D | fslog.c | 1047 static inline u32 lsn_to_vbo(struct ntfs_log *log, const u64 lsn) in lsn_to_vbo() argument 1049 u32 vbo = (lsn << log->seq_num_bits) >> (log->seq_num_bits - 3); in lsn_to_vbo() 1055 static inline u32 next_page_off(struct ntfs_log *log, u32 off) in next_page_off() argument 1057 off = (off & ~log->sys_page_mask) + log->page_size; in next_page_off() 1058 return off >= log->l_size ? log->first_page : off; in next_page_off() 1061 static inline u32 lsn_to_page_off(struct ntfs_log *log, u64 lsn) in lsn_to_page_off() argument 1063 return (((u32)lsn) << 3) & log->page_mask; in lsn_to_page_off() 1066 static inline u64 vbo_to_lsn(struct ntfs_log *log, u32 off, u64 Seq) in vbo_to_lsn() argument 1068 return (off >> 3) + (Seq << log->file_data_bits); in vbo_to_lsn() 1071 static inline bool is_lsn_in_file(struct ntfs_log *log, u64 lsn) in is_lsn_in_file() argument [all …]
|
/fs/ |
D | fs_parser.c | 103 int __fs_parse(struct p_log *log, in __fs_parse() argument 117 warn_plog(log, "Deprecated parameter '%s'", param->key); in __fs_parse() 124 return inval_plog(log, "Unexpected value for '%s'", in __fs_parse() 128 int ret = p->type(log, p, param, result); in __fs_parse() 191 static int fs_param_bad_value(struct p_log *log, struct fs_parameter *param) in fs_param_bad_value() argument 193 return inval_plog(log, "Bad value for '%s'", param->key); in fs_param_bad_value() 196 int fs_param_is_bool(struct p_log *log, const struct fs_parameter_spec *p, in fs_param_is_bool() argument 201 return fs_param_bad_value(log, param); in fs_param_is_bool() 204 return fs_param_bad_value(log, param); in fs_param_is_bool() 210 int fs_param_is_u32(struct p_log *log, const struct fs_parameter_spec *p, in fs_param_is_u32() argument [all …]
|
D | fsopen.c | 28 struct fc_log *log = fc->log.log; in fscontext_read() local 29 unsigned int logsize = ARRAY_SIZE(log->buffer); in fscontext_read() 39 if (log->head == log->tail) { in fscontext_read() 44 index = log->tail & (logsize - 1); in fscontext_read() 45 p = log->buffer[index]; in fscontext_read() 46 need_free = log->need_free & (1 << index); in fscontext_read() 47 log->buffer[index] = NULL; in fscontext_read() 48 log->need_free &= ~(1 << index); in fscontext_read() 49 log->tail++; in fscontext_read() 100 fc->log.log = kzalloc(sizeof(*fc->log.log), GFP_KERNEL); in fscontext_alloc_log() [all …]
|
D | fs_context.c | 267 fc->log.prefix = fs_type->name; in alloc_fs_context() 361 if (fc->log.log) in vfs_dup_fs_context() 362 refcount_inc(&fc->log.log->usage); in vfs_dup_fs_context() 385 void logfc(struct fc_log *log, const char *prefix, char level, const char *fmt, ...) in logfc() argument 391 if (!log) { in logfc() 407 unsigned int logsize = ARRAY_SIZE(log->buffer); in logfc() 413 index = log->head & (logsize - 1); in logfc() 414 BUILD_BUG_ON(sizeof(log->head) != sizeof(u8) || in logfc() 415 sizeof(log->tail) != sizeof(u8)); in logfc() 416 if ((u8)(log->head - log->tail) == logsize) { in logfc() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_log_recover.h | 36 void (*ra_pass2)(struct xlog *log, struct xlog_recover_item *item); 39 int (*commit_pass1)(struct xlog *log, struct xlog_recover_item *item); 58 int (*commit_pass2)(struct xlog *log, struct list_head *buffer_list, 115 void xlog_buf_readahead(struct xlog *log, xfs_daddr_t blkno, uint len, 117 bool xlog_is_buffer_cancelled(struct xlog *log, xfs_daddr_t blkno, uint len); 121 void xlog_recover_release_intent(struct xlog *log, unsigned short intent_type, 123 int xlog_alloc_buf_cancel_table(struct xlog *log); 124 void xlog_free_buf_cancel_table(struct xlog *log); 127 void xlog_check_buf_cancel_table(struct xlog *log); 129 #define xlog_check_buf_cancel_table(log) do { } while (0) argument
|
/fs/btrfs/ |
D | tree-log.c | 105 struct btrfs_root *log, 332 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, 339 static int process_one_buffer(struct btrfs_root *log, in process_one_buffer() argument 343 struct btrfs_fs_info *fs_info = log->fs_info; in process_one_buffer() 1011 static noinline int backref_in_log(struct btrfs_root *log, in backref_in_log() argument 1023 ret = btrfs_search_slot(NULL, log, key, path, 0, 0); in backref_in_log() 1466 struct btrfs_root *log, in add_inode_ref() argument 1555 ret = __add_inode_ref(trans, root, path, log, in add_inode_ref() 2264 struct btrfs_root *log, in check_item_in_log() argument 2299 if (log) { in check_item_in_log() [all …]
|
/fs/incfs/ |
D | data_mgmt.c | 553 struct read_log *log = &mi->mi_log; in log_block_read() local 569 if (READ_ONCE(log->rl_size) == 0) in log_block_read() 574 spin_lock(&log->rl_lock); in log_block_read() 575 if (log->rl_size == 0) { in log_block_read() 576 spin_unlock(&log->rl_lock); in log_block_read() 580 head = &log->rl_head; in log_block_read() 581 tail = &log->rl_tail; in log_block_read() 652 log_read_one_record(log, tail); in log_block_read() 654 memcpy(((u8 *)log->rl_ring_buf) + head->next_offset, &record, in log_block_read() 657 if (head->next_offset > log->rl_size - sizeof(record)) { in log_block_read() [all …]
|
/fs/nfs/ |
D | internal.h | 152 #define nfs_errorf(fc, fmt, ...) ((fc)->log.log ? \ 156 #define nfs_ferrorf(fc, fac, fmt, ...) ((fc)->log.log ? \ 160 #define nfs_invalf(fc, fmt, ...) ((fc)->log.log ? \ 164 #define nfs_finvalf(fc, fac, fmt, ...) ((fc)->log.log ? \ 168 #define nfs_warnf(fc, fmt, ...) ((fc)->log.log ? \ 172 #define nfs_fwarnf(fc, fac, fmt, ...) ((fc)->log.log ? \
|
/fs/pstore/ |
D | Kconfig | 18 int "Default kernel log storage space" if EXPERT 22 Defines default size of pstore kernel log storage. 123 When the option is enabled, pstore will log all kernel 132 interface /dev/pmsg0 to log user space messages. On reboot 217 int "Size in Kbytes of kmsg dump log to store" 221 This just sets size of kmsg dump (oops, panic, etc) log for 252 int "Size in Kbytes of console log to store" 257 This just sets size of console log (console_size) to store via 264 int "Size in Kbytes of ftrace log to store" 269 This just sets size of ftrace log (ftrace_size) for pstore/blk. The
|