| /fs/jfs/ |
| A D | jfs_logmgr.c | 258 mp->log = log; in lmLog() 946 if (log->sync == log->syncpt) { in lmLogSync() 949 log->sync = log->lsn; in lmLogSync() 971 log->syncpt = log->sync; in lmLogSync() 1130 sbi->log = log; in lmLogOpen() 1182 JFS_SBI(sb)->log = log; in open_inline_log() 1315 log, (unsigned long long)log->base, log->size); in lmLogInit() 1325 log, (unsigned long long)log->base, log->size); in lmLogInit() 1391 log->sync = log->syncpt; in lmLogInit() 1395 log->lsn, log->syncpt, log->sync); in lmLogInit() [all …]
|
| A D | jfs_txnmgr.c | 355 log = JFS_SBI(sb)->log; in txBegin() 357 if (!log) { in txBegin() 456 log = JFS_SBI(sb)->log; in txBeginAnon() 506 log = JFS_SBI(tblk->sb)->log; in txEnd() 911 log = JFS_SBI(tblk->sb)->log; in txUnlock() 1160 log = JFS_SBI(sb)->log; in txCommit() 1161 cd.log = log; in txCommit() 2666 log = (struct jfs_log *) JFS_SBI(tblk->sb)->log; in txLazyCommit() 2794 struct jfs_log *log = mp->log; in LogSyncRelease() local 2815 struct jfs_log *log = JFS_SBI(sb)->log; in txQuiesce() local [all …]
|
| A 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 …]
|
| A 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() 106 if (log) { /* log = NULL if read-only mount */ in jfs_umount() 124 struct jfs_log *log = sbi->log; in jfs_umount_rw() local 126 if (!log) in jfs_umount_rw() 134 jfs_flush_journal(log, 2); in jfs_umount_rw()
|
| A D | resize.c | 57 struct jfs_log *log = sbi->log; in jfs_extendfs() local 184 if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) in jfs_extendfs() 207 lmLogShutdown(log); in jfs_extendfs() 248 if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) in jfs_extendfs() 254 log->base = newLogAddress; in jfs_extendfs() 255 log->size = newLogSize >> (L2LOGPSIZE - sb->s_blocksize_bits); in jfs_extendfs() 256 if ((rc = lmLogInit(log))) in jfs_extendfs() 499 j_sb->s_logserial = cpu_to_le32(log->serial); in jfs_extendfs()
|
| /fs/xfs/ |
| A D | xfs_log.c | 1286 log->l_iclog_hsize = log->l_iclog_heads << BBSHIFT; in xlog_get_iclog_buffer_size() 1666 if (log->l_targ != log->l_mp->m_ddev_targp && in xlog_write_iclog() 2629 xlog_wait(&log->l_flush_wait, &log->l_icloglock); in xlog_state_get_iclog_space() 2798 log->l_prev_block = log->l_curr_block; in xlog_state_switch_iclogs() 2799 log->l_prev_cycle = log->l_curr_cycle; in xlog_state_switch_iclogs() 2810 if (log->l_curr_block >= log->l_logBBsize) { in xlog_state_switch_iclogs() 2818 log->l_curr_block -= log->l_logBBsize; in xlog_state_switch_iclogs() 3255 log->l_curr_cycle, log->l_curr_block, in xlog_verify_dump_tail() 3256 log->l_prev_cycle, log->l_prev_block); in xlog_verify_dump_tail() 3261 log->l_tail_space, log->l_logsize, in xlog_verify_dump_tail() [all …]
|
| A D | xfs_log_recover.c | 57 struct xlog *log, in xlog_verify_bno() argument 74 struct xlog *log, in xlog_alloc_buffer() argument 81 if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, 0, nbblks))) { in xlog_alloc_buffer() 113 struct xlog *log, in xlog_align() argument 121 struct xlog *log, in xlog_do_io() argument 153 struct xlog *log, in xlog_bread_noalign() argument 163 struct xlog *log, in xlog_bread() argument 179 struct xlog *log, in xlog_bwrite() argument 270 struct xlog *log, in xlog_find_cycle_start() argument 3429 !xfs_log_check_lsn(log->l_mp, log->l_mp->m_sb.sb_lsn)) in xlog_recover() [all …]
|
| A D | xfs_log_priv.h | 378 min_t(int, (log)->l_logsize >> 3, BBTOB(XLOG_TOTAL_REC_SHIFT(log)) << 4) 381 (XLOG_CIL_SPACE_LIMIT(log) * 2) 487 struct xlog *log) in xlog_shutdown_wait() argument 489 wait_var_event(&log->l_opstate, xlog_is_shutdown(log)); in xlog_shutdown_wait() 495 struct xlog *log); 498 struct xlog *log); 567 xlog_cil_force(struct xlog *log) in xlog_cil_force() argument 569 xlog_cil_force_seq(log, log->l_cilp->xc_current_sequence); in xlog_cil_force() 598 struct xlog *log, in xlog_lsn_sub() argument 624 struct xlog *log, in xlog_valid_lsn() argument [all …]
|
| A D | xfs_log_cil.c | 35 struct xlog *log) in xlog_cil_ticket_alloc() argument 57 (log->l_iclog_size - log->l_iclog_hsize))); in xlog_cil_set_iclog_hdr_count() 205 struct xlog *log) in xlog_cil_init_post_recovery() argument 207 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery() 269 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument 372 struct xlog *log, in xfs_cil_prepare_item() argument 442 struct xlog *log, in xlog_cil_insert_format_items() argument 517 struct xlog *log, in xlog_cil_over_hard_limit() argument 536 struct xlog *log, in xlog_cil_insert_items() argument 1540 struct xlog *log) in xlog_cil_push_background() argument [all …]
|
| A D | xfs_buf_item_recover.c | 53 struct xlog *log, in xlog_find_buffer_cancelled() argument 60 if (!log->l_buf_cancel_table) in xlog_find_buffer_cancelled() 74 struct xlog *log, in xlog_add_buffer_cancelled() argument 106 struct xlog *log, in xlog_is_buffer_cancelled() argument 123 struct xlog *log, in xlog_put_buffer_cancelled() argument 187 struct xlog *log, in xlog_recover_buf_commit_pass1() argument 561 struct xlog *log, in xlog_recover_do_dquot_buffer() argument 1000 struct xlog *log, in xlog_recover_buf_commit_pass2() argument 1155 struct xlog *log) in xlog_check_buf_cancel_table() argument 1166 struct xlog *log) in xlog_alloc_buf_cancel_table() argument [all …]
|
| A D | xfs_dquot_item_recover.c | 26 struct xlog *log, in xlog_recover_dquot_ra_pass2() argument 29 struct xfs_mount *mp = log->l_mp; in xlog_recover_dquot_ra_pass2() 45 if (log->l_quotaoffs_flag & type) in xlog_recover_dquot_ra_pass2() 52 xlog_buf_readahead(log, dq_f->qlf_blkno, in xlog_recover_dquot_ra_pass2() 62 struct xlog *log, in xlog_recover_dquot_commit_pass2() argument 67 struct xfs_mount *mp = log->l_mp; in xlog_recover_dquot_commit_pass2() 98 if (log->l_quotaoffs_flag & type) in xlog_recover_dquot_commit_pass2() 192 struct xlog *log, in xlog_recover_quotaoff_commit_pass1() argument 203 log->l_quotaoffs_flag |= XFS_DQTYPE_USER; in xlog_recover_quotaoff_commit_pass1() 205 log->l_quotaoffs_flag |= XFS_DQTYPE_PROJ; in xlog_recover_quotaoff_commit_pass1() [all …]
|
| A 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() 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() 204 xfs_warn(log->l_mp, in xlog_recover_icreate_commit_pass2() 211 xfs_warn(log->l_mp, in xlog_recover_icreate_commit_pass2() 230 if (xlog_is_buffer_cancelled(log, daddr, bb_per_cluster)) in xlog_recover_icreate_commit_pass2() 249 trace_xfs_log_recover_icreate_cancel(log, icl); in xlog_recover_icreate_commit_pass2() [all …]
|
| A D | xfs_trans_ail.c | 403 struct xlog *log = ailp->ail_log; in xfs_ail_calc_push_target() local 439 free_bytes = log->l_logsize - xlog_lsn_sub(log, max_lsn, min_lsn); in xfs_ail_calc_push_target() 440 if (free_bytes >= log->l_logsize >> 2) in xfs_ail_calc_push_target() 445 if (target_block >= log->l_logBBsize) { in xfs_ail_calc_push_target() 446 target_block -= log->l_logBBsize; in xfs_ail_calc_push_target() 733 struct xlog *log = ailp->ail_log; in __xfs_ail_assign_tail_lsn() local 738 if (xlog_is_shutdown(log)) in __xfs_ail_assign_tail_lsn() 745 WRITE_ONCE(log->l_tail_space, in __xfs_ail_assign_tail_lsn() 764 struct xlog *log = ailp->ail_log; in xfs_ail_update_finish() local 776 xfs_log_space_wake(log->l_mp); in xfs_ail_update_finish() [all …]
|
| A D | xfs_inode_item_recover.c | 30 struct xlog *log, in xlog_recover_inode_ra_pass2() argument 36 xlog_buf_readahead(log, ilfp->ilf_blkno, ilfp->ilf_len, in xlog_recover_inode_ra_pass2() 41 xlog_buf_readahead(log, ilfp->ilf_blkno, ilfp->ilf_len, in xlog_recover_inode_ra_pass2() 309 struct xlog *log, in xlog_recover_inode_commit_pass2() argument 315 struct xfs_mount *mp = log->l_mp; in xlog_recover_inode_commit_pass2() 346 trace_xfs_log_recover_inode_cancel(log, in_f); in xlog_recover_inode_commit_pass2() 349 trace_xfs_log_recover_inode_recover(log, in_f); in xlog_recover_inode_commit_pass2() 398 trace_xfs_log_recover_inode_skip(log, in_f); in xlog_recover_inode_commit_pass2() 422 trace_xfs_log_recover_inode_skip(log, in_f); in xlog_recover_inode_commit_pass2() 561 xfs_warn(log->l_mp, "%s: Invalid flag", __func__); in xlog_recover_inode_commit_pass2() [all …]
|
| A D | xfs_refcount_item.c | 710 struct xlog *log, in xlog_recover_cui_commit_pass2() argument 715 struct xfs_mount *mp = log->l_mp; in xlog_recover_cui_commit_pass2() 739 xlog_recover_intent_item(log, &cuip->cui_item, lsn, in xlog_recover_cui_commit_pass2() 752 struct xlog *log, in xlog_recover_rtcui_commit_pass2() argument 757 struct xfs_mount *mp = log->l_mp; in xlog_recover_rtcui_commit_pass2() 781 xlog_recover_intent_item(log, &cuip->cui_item, lsn, in xlog_recover_rtcui_commit_pass2() 788 struct xlog *log, in xlog_recover_rtcui_commit_pass2() argument 793 XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, log->l_mp, in xlog_recover_rtcui_commit_pass2() 813 struct xlog *log, in xlog_recover_cud_commit_pass2() argument 839 struct xlog *log, in xlog_recover_rtcud_commit_pass2() argument [all …]
|
| A D | xfs_rmap_item.c | 739 struct xlog *log, in xlog_recover_rui_commit_pass2() argument 744 struct xfs_mount *mp = log->l_mp; in xlog_recover_rui_commit_pass2() 768 xlog_recover_intent_item(log, &ruip->rui_item, lsn, in xlog_recover_rui_commit_pass2() 781 struct xlog *log, in xlog_recover_rtrui_commit_pass2() argument 786 struct xfs_mount *mp = log->l_mp; in xlog_recover_rtrui_commit_pass2() 810 xlog_recover_intent_item(log, &ruip->rui_item, lsn, in xlog_recover_rtrui_commit_pass2() 817 struct xlog *log, in xlog_recover_rtrui_commit_pass2() argument 822 XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, log->l_mp, in xlog_recover_rtrui_commit_pass2() 842 struct xlog *log, in xlog_recover_rud_commit_pass2() argument 868 struct xlog *log, in xlog_recover_rtrud_commit_pass2() argument [all …]
|
| A D | xfs_extfree_item.c | 861 struct xlog *log, in xlog_recover_efi_commit_pass2() argument 866 struct xfs_mount *mp = log->l_mp; in xlog_recover_efi_commit_pass2() 887 xlog_recover_intent_item(log, &efip->efi_item, lsn, in xlog_recover_efi_commit_pass2() 900 struct xlog *log, in xlog_recover_rtefi_commit_pass2() argument 905 struct xfs_mount *mp = log->l_mp; in xlog_recover_rtefi_commit_pass2() 926 xlog_recover_intent_item(log, &efip->efi_item, lsn, in xlog_recover_rtefi_commit_pass2() 933 struct xlog *log, in xlog_recover_rtefi_commit_pass2() argument 938 XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, log->l_mp, in xlog_recover_rtefi_commit_pass2() 958 struct xlog *log, in xlog_recover_efd_commit_pass2() argument 995 struct xlog *log, in xlog_recover_rtefd_commit_pass2() argument [all …]
|
| /fs/ntfs3/ |
| A D | fslog.c | 1340 log->oldest_lsn = log->seq_num << log->file_data_bits; in log_create() 1358 log->data_size = log->page_size - log->data_off; in log_create() 1362 log->reserved = log->data_size - log->record_header_len; in log_create() 1370 log->restart_size = log->sys_page_size - log->ra_off; in log_create() 1378 log->total_avail_pages = log->l_size - log->first_page; in log_create() 1387 log->total_avail = log->total_avail * log->data_size; in log_create() 1545 log->next_page == log->first_page ? log->l_size : in current_log_avail() 3955 log->seq_num = log->last_lsn >> log->file_data_bits; in log_replay() 3957 log->restart_size = log->sys_page_size - log->ra_off; in log_replay() 3961 log->data_size = log->page_size - log->data_off; in log_replay() [all …]
|
| /fs/ |
| A D | fs_parser.c | 104 int __fs_parse(struct p_log *log, in __fs_parse() argument 204 return fs_param_bad_value(log, param); in fs_param_is_bool() 209 return fs_param_bad_value(log, param); in fs_param_is_bool() 220 return fs_param_bad_value(log, param); in fs_param_is_u32() 224 return fs_param_bad_value(log, param); in fs_param_is_u32() 233 return fs_param_bad_value(log, param); in fs_param_is_s32() 237 return fs_param_bad_value(log, param); in fs_param_is_s32() 246 return fs_param_bad_value(log, param); in fs_param_is_u64() 250 return fs_param_bad_value(log, param); in fs_param_is_u64() 309 return fs_param_bad_value(log, param); in fs_param_is_fd() [all …]
|
| A D | fsopen.c | 28 struct fc_log *log = fc->log.log; in fscontext_read() local 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() 47 log->buffer[index] = NULL; in fscontext_read() 48 log->need_free &= ~(1 << index); in fscontext_read() 49 log->tail++; in fscontext_read() 99 fc->log.log = kzalloc(sizeof(*fc->log.log), GFP_KERNEL); in fscontext_alloc_log() 100 if (!fc->log.log) in fscontext_alloc_log() 102 refcount_set(&fc->log.log->usage, 1); in fscontext_alloc_log() [all …]
|
| A D | fs_context.c | 410 if (fc->log.log) in vfs_dup_fs_context() 411 refcount_inc(&fc->log.log->usage); in vfs_dup_fs_context() 442 if (!log) { in logfc() 471 if ((u8)(log->head - log->tail) == logsize) { in logfc() 475 log->tail++; in logfc() 483 log->head++; in logfc() 494 struct fc_log *log = fc->log.log; in put_fc_log() local 497 if (log) { in put_fc_log() 499 fc->log.log = NULL; in put_fc_log() 502 kfree(log->buffer[i]); in put_fc_log() [all …]
|
| /fs/xfs/libxfs/ |
| A D | xfs_log_recover.h | 37 void (*ra_pass2)(struct xlog *log, struct xlog_recover_item *item); 40 int (*commit_pass1)(struct xlog *log, struct xlog_recover_item *item); 59 int (*commit_pass2)(struct xlog *log, struct list_head *buffer_list, 126 void xlog_buf_readahead(struct xlog *log, xfs_daddr_t blkno, uint len, 128 bool xlog_is_buffer_cancelled(struct xlog *log, xfs_daddr_t blkno, uint len); 134 void xlog_recover_release_intent(struct xlog *log, unsigned short intent_type, 136 int xlog_alloc_buf_cancel_table(struct xlog *log); 137 void xlog_free_buf_cancel_table(struct xlog *log); 140 void xlog_check_buf_cancel_table(struct xlog *log); 142 #define xlog_check_buf_cancel_table(log) do { } while (0) argument [all …]
|
| /fs/btrfs/ |
| A D | tree-log.c | 2177 if (log) { in check_item_in_log() 3062 btrfs_set_root_node(&log->root_item, log->node); in btrfs_sync_log() 3279 if (log->node) { in free_log_tree() 3315 btrfs_put_root(log); in free_log_tree() 3562 struct btrfs_root *log; in btrfs_del_inode_ref_in_log() local 3577 log = root->log_root; in btrfs_del_inode_ref_in_log() 7300 if (IS_ERR(log)) { in btrfs_recover_log_trees() 7301 ret = PTR_ERR(log); in btrfs_recover_log_trees() 7312 btrfs_put_root(log); in btrfs_recover_log_trees() 7330 btrfs_put_root(log); in btrfs_recover_log_trees() [all …]
|
| /fs/pstore/ |
| A D | Kconfig | 17 int "Default kernel log storage space" if EXPERT 21 Defines default size of pstore kernel log storage. 41 When the option is enabled, pstore will log all kernel 50 interface /dev/pmsg0 to log user space messages. On reboot 135 int "Size in Kbytes of kmsg dump log to store" 139 This just sets size of kmsg dump (oops, panic, etc) log for 170 int "Size in Kbytes of console log to store" 175 This just sets size of console log (console_size) to store via 182 int "Size in Kbytes of ftrace log to store" 187 This just sets size of ftrace log (ftrace_size) for pstore/blk. The
|
| /fs/nfs/ |
| A D | internal.h | 165 #define nfs_errorf(fc, fmt, ...) ((fc)->log.log ? \ 169 #define nfs_ferrorf(fc, fac, fmt, ...) ((fc)->log.log ? \ 173 #define nfs_invalf(fc, fmt, ...) ((fc)->log.log ? \ 177 #define nfs_finvalf(fc, fac, fmt, ...) ((fc)->log.log ? \ 181 #define nfs_warnf(fc, fmt, ...) ((fc)->log.log ? \ 185 #define nfs_fwarnf(fc, fac, fmt, ...) ((fc)->log.log ? \
|