/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 int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 153 static int 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 int 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()
|
D | super.c | 570 sbi->log = NULL; in jfs_fill_super() 626 struct jfs_log *log = sbi->log; in jfs_freeze() local 631 rc = lmLogShutdown(log); in jfs_freeze() 656 struct jfs_log *log = sbi->log; in jfs_unfreeze() local 665 rc = lmLogInit(log); in jfs_unfreeze() 682 struct jfs_log *log = JFS_SBI(sb)->log; in jfs_sync_fs() local 685 if (log) { in jfs_sync_fs() 691 jfs_flush_journal(log, wait); in jfs_sync_fs() 692 jfs_syncpt(log, 0); in jfs_sync_fs()
|
D | jfs_metapage.c | 182 mp->log = NULL; in alloc_metapage() 281 struct jfs_log *log = mp->log; in remove_from_logsync() local 287 if (!log) in remove_from_logsync() 290 LOGSYNC_LOCK(log, flags); in remove_from_logsync() 292 mp->log = NULL; in remove_from_logsync() 295 log->count--; in remove_from_logsync() 298 LOGSYNC_UNLOCK(log, flags); in remove_from_logsync() 373 if (mp->log && !(mp->log->cflag & logGC_PAGEOUT)) in metapage_writepage() 374 jfs_flush_journal(mp->log, 0); in metapage_writepage()
|
/fs/xfs/ |
D | xfs_log.c | 35 struct xlog *log, 39 struct xlog *log); 46 struct xlog *log, 54 struct xlog *log, 59 struct xlog *log, 63 struct xlog *log, 68 struct xlog *log, 72 struct xlog *log); 75 struct xlog *log, 80 struct xlog *log, [all …]
|
D | xfs_log_recover.c | 44 #define xlog_recover_check_summary(log) argument 61 struct xlog *log, in xlog_verify_bno() argument 65 if (blk_no < 0 || blk_no >= log->l_logBBsize) in xlog_verify_bno() 67 if (bbcount <= 0 || (blk_no + bbcount) > log->l_logBBsize) in xlog_verify_bno() 78 struct xlog *log, in xlog_alloc_buffer() argument 81 int align_mask = xfs_buftarg_dma_alignment(log->l_targ); in xlog_alloc_buffer() 87 if (XFS_IS_CORRUPT(log->l_mp, !xlog_verify_bno(log, 0, nbblks))) { in xlog_alloc_buffer() 88 xfs_warn(log->l_mp, "Invalid block length (0x%x) for buffer", in xlog_alloc_buffer() 107 if (nbblks > 1 && log->l_sectBBsize > 1) in xlog_alloc_buffer() 108 nbblks += log->l_sectBBsize; in xlog_alloc_buffer() [all …]
|
D | xfs_log_priv.h | 362 #define XLOG_CIL_SPACE_LIMIT(log) \ argument 363 min_t(int, (log)->l_logsize >> 3, BBTOB(XLOG_TOTAL_REC_SHIFT(log)) << 4) 365 #define XLOG_CIL_BLOCKING_SPACE_LIMIT(log) \ argument 366 (XLOG_CIL_SPACE_LIMIT(log) * 2) 441 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument 442 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE)) 444 #define XLOG_FORCED_SHUTDOWN(log) \ argument 445 (unlikely((log)->l_flags & XLOG_IO_ERROR)) 450 struct xlog *log); 453 struct xlog *log); [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() 62 struct xlog *log) in xlog_cil_init_post_recovery() argument 64 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery() 65 log->l_cilp->xc_ctx->sequence = 1; in xlog_cil_init_post_recovery() 125 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument 225 struct xlog *log, in xfs_cil_prepare_item() argument 266 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence; in xfs_cil_prepare_item() 299 struct xlog *log, in xlog_cil_insert_format_items() argument 374 xfs_cil_prepare_item(log, lv, old_lv, diff_len, diff_iovecs); in xlog_cil_insert_format_items() [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_buf_item_recover.c | 39 struct xlog *log, in xlog_find_buffer_cancelled() argument 46 if (!log->l_buf_cancel_table) in xlog_find_buffer_cancelled() 49 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); in xlog_find_buffer_cancelled() 60 struct xlog *log, in xlog_add_buffer_cancelled() argument 73 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled() 83 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled() 92 struct xlog *log, in xlog_is_buffer_cancelled() argument 96 return xlog_find_buffer_cancelled(log, blkno, len) != NULL; in xlog_is_buffer_cancelled() 109 struct xlog *log, in xlog_put_buffer_cancelled() argument 115 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_put_buffer_cancelled() [all …]
|
D | xfs_icreate_item.c | 142 struct xlog *log, in xlog_recover_icreate_commit_pass2() argument 147 struct xfs_mount *mp = log->l_mp; in xlog_recover_icreate_commit_pass2() 162 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad type"); in xlog_recover_icreate_commit_pass2() 167 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad icl size"); in xlog_recover_icreate_commit_pass2() 173 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agno"); in xlog_recover_icreate_commit_pass2() 178 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad agbno"); in xlog_recover_icreate_commit_pass2() 183 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad isize"); in xlog_recover_icreate_commit_pass2() 188 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad count"); in xlog_recover_icreate_commit_pass2() 193 xfs_warn(log->l_mp, "xlog_recover_do_icreate_trans: bad length"); in xlog_recover_icreate_commit_pass2() 203 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 | 322 struct xlog *log = to_xlog(kobject); in log_head_lsn_show() local 324 spin_lock(&log->l_icloglock); in log_head_lsn_show() 325 cycle = log->l_curr_cycle; in log_head_lsn_show() 326 block = log->l_curr_block; in log_head_lsn_show() 327 spin_unlock(&log->l_icloglock); in log_head_lsn_show() 340 struct xlog *log = to_xlog(kobject); in log_tail_lsn_show() local 342 xlog_crack_atomic_lsn(&log->l_tail_lsn, &cycle, &block); in log_tail_lsn_show() 355 struct xlog *log = to_xlog(kobject); in reserve_grant_head_show() local 357 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show() 369 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 …]
|
/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() 192 static int fs_param_bad_value(struct p_log *log, struct fs_parameter *param) in fs_param_bad_value() argument 194 return inval_plog(log, "Bad value for '%s'", param->key); in fs_param_bad_value() 197 int fs_param_is_bool(struct p_log *log, const struct fs_parameter_spec *p, in fs_param_is_bool() argument 202 return fs_param_bad_value(log, param); in fs_param_is_bool() 205 return fs_param_bad_value(log, param); in fs_param_is_bool() 211 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 | 244 fc->log.prefix = fs_type->name; in alloc_fs_context() 338 if (fc->log.log) in vfs_dup_fs_context() 339 refcount_inc(&fc->log.log->usage); in vfs_dup_fs_context() 362 void logfc(struct fc_log *log, const char *prefix, char level, const char *fmt, ...) in logfc() argument 368 if (!log) { in logfc() 384 unsigned int logsize = ARRAY_SIZE(log->buffer); in logfc() 390 index = log->head & (logsize - 1); in logfc() 391 BUILD_BUG_ON(sizeof(log->head) != sizeof(u8) || in logfc() 392 sizeof(log->tail) != sizeof(u8)); in logfc() 393 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, 121 void xlog_buf_readahead(struct xlog *log, xfs_daddr_t blkno, uint len, 123 bool xlog_is_buffer_cancelled(struct xlog *log, xfs_daddr_t blkno, uint len); 125 void xlog_recover_release_intent(struct xlog *log, unsigned short intent_type,
|
D | xfs_log_format.h | 37 #define XLOG_BTOLSUNIT(log, b) (((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \ argument 38 (log)->l_mp->m_sb.sb_logsunit) 39 #define XLOG_LSUNITTOB(log, su) ((su) * (log)->l_mp->m_sb.sb_logsunit) argument 46 #define XLOG_REC_SHIFT(log) \ argument 47 BTOBB(1 << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \ 49 #define XLOG_TOTAL_REC_SHIFT(log) \ argument 50 BTOBB(XLOG_MAX_ICLOGS << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \
|
/fs/btrfs/ |
D | tree-log.c | 105 struct btrfs_root *log, 291 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, 298 static int process_one_buffer(struct btrfs_root *log, in process_one_buffer() argument 302 struct btrfs_fs_info *fs_info = log->fs_info; in process_one_buffer() 950 static noinline int backref_in_log(struct btrfs_root *log, in backref_in_log() argument 962 ret = btrfs_search_slot(NULL, log, key, path, 0, 0); in backref_in_log() 1424 struct btrfs_root *log, in add_inode_ref() argument 1513 ret = __add_inode_ref(trans, root, path, log, in add_inode_ref() 2237 struct btrfs_root *log, in check_item_in_log() argument 2273 if (log && dir_key->type == BTRFS_DIR_ITEM_KEY) { 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 | 155 #define nfs_errorf(fc, fmt, ...) ((fc)->log.log ? \ 159 #define nfs_ferrorf(fc, fac, fmt, ...) ((fc)->log.log ? \ 163 #define nfs_invalf(fc, fmt, ...) ((fc)->log.log ? \ 167 #define nfs_finvalf(fc, fac, fmt, ...) ((fc)->log.log ? \ 171 #define nfs_warnf(fc, fmt, ...) ((fc)->log.log ? \ 175 #define nfs_fwarnf(fc, fac, fmt, ...) ((fc)->log.log ? \
|