Home
last modified time | relevance | path

Searched refs:log (Results 1 – 25 of 89) sorted by relevance

1234

/linux-4.19.296/fs/jfs/
Djfs_logmgr.c93 #define LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) argument
94 #define LOG_LOCK(log) mutex_lock(&((log)->loglock)) argument
95 #define LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) argument
102 #define LOGGC_LOCK_INIT(log) spin_lock_init(&(log)->gclock) argument
103 #define LOGGC_LOCK(log) spin_lock_irq(&(log)->gclock) argument
104 #define LOGGC_UNLOCK(log) spin_unlock_irq(&(log)->gclock) argument
176 static int lmWriteRecord(struct jfs_log * log, struct tblock * tblk,
179 static int lmNextPage(struct jfs_log * log);
180 static int lmLogFileSystem(struct jfs_log * log, struct jfs_sb_info *sbi,
185 static int lbmLogInit(struct jfs_log * log);
[all …]
Djfs_txnmgr.c164 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
166 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
168 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
170 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
175 static int txLog(struct jfs_log * log, struct tblock * tblk,
179 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd,
365 struct jfs_log *log; in txBegin() local
368 log = JFS_SBI(sb)->log; in txBegin()
370 if (!log) { in txBegin()
384 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBegin()
[all …]
Djfs_umount.c57 struct jfs_log *log; in jfs_umount() local
67 if ((log = sbi->log)) in jfs_umount()
71 jfs_flush_journal(log, 2); in jfs_umount()
121 if (log) { /* log = NULL if read-only mount */ in jfs_umount()
139 struct jfs_log *log = sbi->log; in jfs_umount_rw() local
141 if (!log) in jfs_umount_rw()
149 jfs_flush_journal(log, 2); in jfs_umount_rw()
Djfs_logmgr.h349 } log; member
490 #define LOGSYNC_LOCK_INIT(log) spin_lock_init(&(log)->synclock) argument
491 #define LOGSYNC_LOCK(log, flags) spin_lock_irqsave(&(log)->synclock, flags) argument
492 #define LOGSYNC_UNLOCK(log, flags) \ argument
493 spin_unlock_irqrestore(&(log)->synclock, flags)
496 #define logdiff(diff, lsn, log)\ argument
498 diff = (lsn) - (log)->syncpt;\
500 diff += (log)->logsize;\
505 extern int lmLogShutdown(struct jfs_log * log);
506 extern int lmLogInit(struct jfs_log * log);
[all …]
Dresize.c69 struct jfs_log *log = sbi->log; in jfs_extendfs() local
197 if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) in jfs_extendfs()
220 lmLogShutdown(log); in jfs_extendfs()
261 if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) in jfs_extendfs()
267 log->base = newLogAddress; in jfs_extendfs()
268 log->size = newLogSize >> (L2LOGPSIZE - sb->s_blocksize_bits); in jfs_extendfs()
269 if ((rc = lmLogInit(log))) in jfs_extendfs()
512 j_sb->s_logserial = cpu_to_le32(log->serial); in jfs_extendfs()
Djfs_metapage.c195 mp->log = NULL; in alloc_metapage()
294 struct jfs_log *log = mp->log; in remove_from_logsync() local
300 if (!log) in remove_from_logsync()
303 LOGSYNC_LOCK(log, flags); in remove_from_logsync()
305 mp->log = NULL; in remove_from_logsync()
308 log->count--; in remove_from_logsync()
311 LOGSYNC_UNLOCK(log, flags); in remove_from_logsync()
386 if (mp->log && !(mp->log->cflag & logGC_PAGEOUT)) in metapage_writepage()
387 jfs_flush_journal(mp->log, 0); in metapage_writepage()
/linux-4.19.296/fs/xfs/
Dxfs_log.c32 struct xlog *log,
45 struct xlog *log,
49 struct xlog *log,
53 struct xlog *log);
59 struct xlog *log,
64 struct xlog *log,
72 struct xlog *log,
76 struct xlog *log,
81 struct xlog *log,
86 struct xlog *log,
[all …]
Dxfs_log_recover.c55 #define xlog_recover_check_summary(log) argument
83 struct xlog *log, in xlog_verify_bp() argument
87 if (blk_no < 0 || blk_no >= log->l_logBBsize) in xlog_verify_bp()
89 if (bbcount <= 0 || (blk_no + bbcount) > log->l_logBBsize) in xlog_verify_bp()
101 struct xlog *log, in xlog_get_bp() argument
110 if (!xlog_verify_bp(log, 0, nbblks)) { in xlog_get_bp()
111 xfs_warn(log->l_mp, "Invalid block length (0x%x) for buffer", in xlog_get_bp()
113 XFS_ERROR_REPORT(__func__, XFS_ERRLEVEL_HIGH, log->l_mp); in xlog_get_bp()
133 if (nbblks > 1 && log->l_sectBBsize > 1) in xlog_get_bp()
134 nbblks += log->l_sectBBsize; in xlog_get_bp()
[all …]
Dxfs_log_cil.c39 struct xlog *log) in xlog_cil_ticket_alloc() argument
43 tic = xlog_ticket_alloc(log, 0, 1, XFS_TRANSACTION, 0, in xlog_cil_ticket_alloc()
66 struct xlog *log) in xlog_cil_init_post_recovery() argument
68 log->l_cilp->xc_ctx->ticket = xlog_cil_ticket_alloc(log); in xlog_cil_init_post_recovery()
69 log->l_cilp->xc_ctx->sequence = 1; in xlog_cil_init_post_recovery()
129 struct xlog *log, in xlog_cil_alloc_shadow_bufs() argument
229 struct xlog *log, in xfs_cil_prepare_item() argument
269 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence; in xfs_cil_prepare_item()
302 struct xlog *log, in xlog_cil_insert_format_items() argument
377 xfs_cil_prepare_item(log, lv, old_lv, diff_len, diff_iovecs); in xlog_cil_insert_format_items()
[all …]
Dxfs_log_priv.h330 #define XLOG_CIL_SPACE_LIMIT(log) (log->l_logsize >> 3) argument
409 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument
410 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE))
412 #define XLOG_FORCED_SHUTDOWN(log) ((log)->l_flags & XLOG_IO_ERROR) argument
417 struct xlog *log);
420 struct xlog *log);
424 extern __le32 xlog_cksum(struct xlog *log, struct xlog_rec_header *rhead,
430 struct xlog *log,
450 struct xlog *log,
515 int xlog_cil_init(struct xlog *log);
[all …]
Dxfs_sysfs.c273 struct xlog *log = to_xlog(kobject); in log_head_lsn_show() local
275 spin_lock(&log->l_icloglock); in log_head_lsn_show()
276 cycle = log->l_curr_cycle; in log_head_lsn_show()
277 block = log->l_curr_block; in log_head_lsn_show()
278 spin_unlock(&log->l_icloglock); in log_head_lsn_show()
291 struct xlog *log = to_xlog(kobject); in log_tail_lsn_show() local
293 xlog_crack_atomic_lsn(&log->l_tail_lsn, &cycle, &block); in log_tail_lsn_show()
306 struct xlog *log = to_xlog(kobject); in reserve_grant_head_show() local
308 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
320 struct xlog *log = to_xlog(kobject); in write_grant_head_show() local
[all …]
Dxfs_rtalloc.c39 int log, /* log2 of extent size */ in xfs_rtget_summary() argument
45 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary()
64 int log; /* loop counter, log2 of ext. size */ in xfs_rtany_summary() local
70 for (log = low; log <= high; log++) { in xfs_rtany_summary()
74 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary()
107 int log; /* summary level number (log length) */ in xfs_rtcopy_summary() local
112 for (log = omp->m_rsumlevels - 1; log >= 0; log--) { in xfs_rtcopy_summary()
116 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary()
122 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary()
126 error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, in xfs_rtcopy_summary()
/linux-4.19.296/include/linux/
Ddm-dirty-log.h35 int (*ctr)(struct dm_dirty_log *log, struct dm_target *ti,
37 void (*dtr)(struct dm_dirty_log *log);
43 int (*presuspend)(struct dm_dirty_log *log);
44 int (*postsuspend)(struct dm_dirty_log *log);
45 int (*resume)(struct dm_dirty_log *log);
51 uint32_t (*get_region_size)(struct dm_dirty_log *log);
57 int (*is_clean)(struct dm_dirty_log *log, region_t region);
70 int (*in_sync)(struct dm_dirty_log *log, region_t region,
77 int (*flush)(struct dm_dirty_log *log);
85 void (*mark_region)(struct dm_dirty_log *log, region_t region);
[all …]
Dbpf_verifier.h185 static inline bool bpf_verifier_log_full(const struct bpf_verifier_log *log) in bpf_verifier_log_full() argument
187 return log->len_used >= log->len_total - 1; in bpf_verifier_log_full()
190 static inline bool bpf_verifier_log_needed(const struct bpf_verifier_log *log) in bpf_verifier_log_needed() argument
192 return log->level && log->ubuf && !bpf_verifier_log_full(log); in bpf_verifier_log_needed()
222 struct bpf_verifier_log log; member
228 __printf(2, 0) void bpf_verifier_vlog(struct bpf_verifier_log *log,
/linux-4.19.296/drivers/char/tpm/eventlog/
Dacpi.c56 struct tpm_bios_log *log; in tpm_read_log_acpi() local
61 log = &chip->log; in tpm_read_log_acpi()
93 log->bios_event_log = kmalloc(len, GFP_KERNEL); in tpm_read_log_acpi()
94 if (!log->bios_event_log) in tpm_read_log_acpi()
97 log->bios_event_log_end = log->bios_event_log + len; in tpm_read_log_acpi()
103 memcpy_fromio(log->bios_event_log, virt, len); in tpm_read_log_acpi()
109 kfree(log->bios_event_log); in tpm_read_log_acpi()
110 log->bios_event_log = NULL; in tpm_read_log_acpi()
Defi.c25 struct tpm_bios_log *log; in tpm_read_log_efi() local
35 log = &chip->log; in tpm_read_log_efi()
59 log->bios_event_log = kmemdup(log_tbl->log, log_size, GFP_KERNEL); in tpm_read_log_efi()
60 if (!log->bios_event_log) in tpm_read_log_efi()
62 log->bios_event_log_end = log->bios_event_log + log_size; in tpm_read_log_efi()
Dof.c30 struct tpm_bios_log *log; in tpm_read_log_of() local
34 log = &chip->log; in tpm_read_log_of()
72 log->bios_event_log = kmemdup(__va(base), size, GFP_KERNEL); in tpm_read_log_of()
73 if (!log->bios_event_log) in tpm_read_log_of()
76 log->bios_event_log_end = log->bios_event_log + size; in tpm_read_log_of()
Dtpm2.c94 struct tpm_bios_log *log = &chip->log; in tpm2_bios_measurements_start() local
95 void *addr = log->bios_event_log; in tpm2_bios_measurements_start()
96 void *limit = log->bios_event_log_end; in tpm2_bios_measurements_start()
141 struct tpm_bios_log *log = &chip->log; in tpm2_bios_measurements_next() local
142 void *limit = log->bios_event_log_end; in tpm2_bios_measurements_next()
147 event_header = log->bios_event_log; in tpm2_bios_measurements_next()
181 struct tpm_bios_log *log = &chip->log; in tpm2_binary_bios_measurements_show() local
182 struct tcg_pcr_event *event_header = log->bios_event_log; in tpm2_binary_bios_measurements_show()
Dtpm1.c79 struct tpm_bios_log *log = &chip->log; in tpm1_bios_measurements_start() local
80 void *addr = log->bios_event_log; in tpm1_bios_measurements_start()
81 void *limit = log->bios_event_log_end; in tpm1_bios_measurements_start()
127 struct tpm_bios_log *log = &chip->log; in tpm1_bios_measurements_next() local
128 void *limit = log->bios_event_log_end; in tpm1_bios_measurements_next()
/linux-4.19.296/drivers/edac/
Dx38_edac.c116 static unsigned long eccerrlog_syndrome(u64 log) in eccerrlog_syndrome() argument
118 return (log & X38_ECCERRLOG_SYNDROME_BITS) >> 16; in eccerrlog_syndrome()
121 static int eccerrlog_row(int channel, u64 log) in eccerrlog_row() argument
123 return ((log & X38_ECCERRLOG_RANK_BITS) >> 27) | in eccerrlog_row()
207 u64 log; in x38_process_error_info() local
220 log = info->eccerrlog[channel]; in x38_process_error_info()
221 if (log & X38_ECCERRLOG_UE) { in x38_process_error_info()
224 eccerrlog_row(channel, log), in x38_process_error_info()
227 } else if (log & X38_ECCERRLOG_CE) { in x38_process_error_info()
229 0, 0, eccerrlog_syndrome(log), in x38_process_error_info()
[all …]
Di3200_edac.c129 static unsigned long eccerrlog_syndrome(u64 log) in eccerrlog_syndrome() argument
131 return (log & I3200_ECCERRLOG_SYNDROME_BITS) >> in eccerrlog_syndrome()
135 static int eccerrlog_row(int channel, u64 log) in eccerrlog_row() argument
137 u64 rank = ((log & I3200_ECCERRLOG_RANK_BITS) >> in eccerrlog_row()
223 u64 log; in i3200_process_error_info() local
235 log = info->eccerrlog[channel]; in i3200_process_error_info()
236 if (log & I3200_ECCERRLOG_UE) { in i3200_process_error_info()
239 eccerrlog_row(channel, log), in i3200_process_error_info()
242 } else if (log & I3200_ECCERRLOG_CE) { in i3200_process_error_info()
244 0, 0, eccerrlog_syndrome(log), in i3200_process_error_info()
[all …]
Die31200_edac.c124 #define IE31200_ECCERRLOG_SYNDROME(log) \ argument
125 ((log & IE31200_ECCERRLOG_SYNDROME_BITS) >> \
220 static int eccerrlog_row(u64 log) in eccerrlog_row() argument
222 return ((log & IE31200_ECCERRLOG_RANK_BITS) >> in eccerrlog_row()
279 u64 log; in ie31200_process_error_info() local
291 log = info->eccerrlog[channel]; in ie31200_process_error_info()
292 if (log & IE31200_ECCERRLOG_UE) { in ie31200_process_error_info()
295 eccerrlog_row(log), in ie31200_process_error_info()
298 } else if (log & IE31200_ECCERRLOG_CE) { in ie31200_process_error_info()
301 IE31200_ECCERRLOG_SYNDROME(log), in ie31200_process_error_info()
[all …]
/linux-4.19.296/drivers/media/dvb-core/
Ddvb_math.c125 u64 log; in intlog10() local
132 log = intlog2(value); in intlog10()
139 return (log * 646456993) >> 31; in intlog10()
/linux-4.19.296/fs/btrfs/
Dtree-log.c99 struct btrfs_root *log,
279 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb,
286 static int process_one_buffer(struct btrfs_root *log, in process_one_buffer() argument
290 struct btrfs_fs_info *fs_info = log->fs_info; in process_one_buffer()
938 static noinline int backref_in_log(struct btrfs_root *log, in backref_in_log() argument
957 ret = btrfs_search_slot(NULL, log, key, path, 0, 0); in backref_in_log()
1369 struct btrfs_root *log, in add_inode_ref() argument
1458 ret = __add_inode_ref(trans, root, path, log, in add_inode_ref()
2187 struct btrfs_root *log, in check_item_in_log() argument
2223 if (log && dir_key->type == BTRFS_DIR_ITEM_KEY) { in check_item_in_log()
[all …]
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_log_format.h37 #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) ? \

1234