/fs/xfs/ |
D | xfs_trans_ail.c | 40 xfs_lsn_t lsn; in xfs_ail_check() local 57 lsn = lip->li_lsn; in xfs_ail_check() 60 (prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0) && in xfs_ail_check() 61 (next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0)) in xfs_ail_check() 66 ASSERT(prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0); in xfs_ail_check() 67 ASSERT(next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0); in xfs_ail_check() 126 xfs_lsn_t lsn; in xfs_ail_min_lsn() local 129 lsn = __xfs_ail_min_lsn(ailp); in xfs_ail_min_lsn() 132 return lsn; in xfs_ail_min_lsn() 142 xfs_lsn_t lsn = 0; in xfs_ail_max_lsn() local [all …]
|
D | xfs_log_priv.h | 506 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument 508 xfs_lsn_t val = atomic64_read(lsn); in xlog_crack_atomic_lsn() 518 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument 520 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn() 606 xfs_lsn_t lsn) in xlog_valid_lsn() argument 628 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn() 629 (CYCLE_LSN(lsn) == cur_cycle && BLOCK_LSN(lsn) > cur_block)) { in xlog_valid_lsn() 640 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn() 641 (CYCLE_LSN(lsn) == cur_cycle && BLOCK_LSN(lsn) > cur_block)) in xlog_valid_lsn()
|
D | xfs_trans_priv.h | 72 xfs_lsn_t lsn) __releases(ailp->ail_lock); 89 xfs_lsn_t lsn) __releases(ailp->ail_lock) in xfs_trans_ail_update() argument 91 xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn); in xfs_trans_ail_update() 123 xfs_lsn_t lsn); 126 xfs_lsn_t lsn);
|
D | xfs_log.c | 537 xfs_lsn_t lsn = 0; in xfs_log_done() local 545 (xlog_commit_record(log, ticket, iclog, &lsn)))) { in xfs_log_done() 546 lsn = (xfs_lsn_t) -1; in xfs_log_done() 571 return lsn; in xfs_log_done() 851 xfs_lsn_t lsn; in xfs_log_write_unmount_record() local 862 error = xlog_write(log, &vec, tic, &lsn, NULL, flags); in xfs_log_write_unmount_record() 2673 xfs_lsn_t lowest_lsn = 0, lsn; in xlog_get_lowest_lsn() local 2679 lsn = be64_to_cpu(iclog->ic_header.h_lsn); in xlog_get_lowest_lsn() 2680 if ((lsn && !lowest_lsn) || XFS_LSN_CMP(lsn, lowest_lsn) < 0) in xlog_get_lowest_lsn() 2681 lowest_lsn = lsn; in xlog_get_lowest_lsn() [all …]
|
D | xfs_log_recover.c | 2195 xfs_lsn_t lsn = -1; in xlog_recover_get_buf_lsn() local 2215 lsn = be64_to_cpu(btb->bb_u.s.bb_lsn); in xlog_recover_get_buf_lsn() 2223 lsn = be64_to_cpu(btb->bb_u.l.bb_lsn); in xlog_recover_get_buf_lsn() 2228 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn() 2232 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn() 2236 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn() 2240 lsn = be64_to_cpu(((struct xfs_dsymlink_hdr *)blk)->sl_lsn); in xlog_recover_get_buf_lsn() 2246 lsn = be64_to_cpu(((struct xfs_dir3_blk_hdr *)blk)->lsn); in xlog_recover_get_buf_lsn() 2266 lsn = be64_to_cpu(((struct xfs_dsb *)blk)->sb_lsn); in xlog_recover_get_buf_lsn() 2276 if (lsn != (xfs_lsn_t)-1) { in xlog_recover_get_buf_lsn() [all …]
|
D | xfs_inode_item.c | 302 xfs_lsn_t lsn) in xfs_inode_to_log_dinode() argument 348 to->di_lsn = lsn; in xfs_inode_to_log_dinode() 608 xfs_lsn_t lsn) in xfs_inode_item_committed() argument 617 return lsn; in xfs_inode_item_committed() 746 xfs_lsn_t lsn = xfs_ail_delete_one(ailp, blip); in xfs_iflush_done() local 747 if (!tail_lsn && lsn) in xfs_iflush_done() 748 tail_lsn = lsn; in xfs_iflush_done()
|
D | xfs_file.c | 100 xfs_lsn_t lsn = 0; in xfs_file_fsync() local 141 lsn = ip->i_itemp->ili_last_lsn; in xfs_file_fsync() 144 if (lsn) { in xfs_file_fsync() 145 error = xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed); in xfs_file_fsync()
|
D | xfs_trace.h | 1024 __field(xfs_lsn_t, lsn) 1031 __entry->lsn = lip->li_lsn; 1036 CYCLE_LSN(__entry->lsn), BLOCK_LSN(__entry->lsn), 1042 TP_PROTO(struct xfs_mount *mp, xfs_lsn_t lsn, unsigned long caller_ip), 1043 TP_ARGS(mp, lsn, caller_ip), 1046 __field(xfs_lsn_t, lsn) 1051 __entry->lsn = lsn; 1056 __entry->lsn, (void *)__entry->caller_ip) 1973 __field(xfs_lsn_t, lsn) 1980 __entry->lsn = be64_to_cpu(rhead->h_lsn); [all …]
|
D | xfs_log.h | 113 int xfs_log_force_lsn(struct xfs_mount *mp, xfs_lsn_t lsn, uint flags,
|
D | xfs_dquot_item.c | 307 xfs_lsn_t lsn) in xfs_qm_qoffend_logitem_committed() argument
|
D | xfs_buf_item.c | 669 xfs_lsn_t lsn) in xfs_buf_item_committed() argument 677 return lsn; in xfs_buf_item_committed()
|
/fs/jfs/ |
D | jfs_logmgr.c | 228 int lsn; in lmLog() local 250 lsn = log->lsn; in lmLog() 257 if (mp->lsn == 0) { in lmLog() 259 mp->lsn = lsn; in lmLog() 284 if (tblk->lsn == 0) { in lmLog() 286 tblk->lsn = mp->lsn; in lmLog() 297 logdiff(diffp, mp->lsn, log); in lmLog() 298 logdiff(difft, tblk->lsn, log); in lmLog() 301 tblk->lsn = mp->lsn; in lmLog() 314 lsn = lmWriteRecord(log, tblk, lrd, tlck); in lmLog() [all …]
|
D | jfs_logmgr.h | 392 int lsn; /* 4: end-of-log */ member 469 s32 lsn; /* log sequence number */ member 483 #define logdiff(diff, lsn, log)\ argument 485 diff = (lsn) - (log)->syncpt;\
|
D | jfs_metapage.c | 179 mp->lsn = 0; in alloc_metapage() 291 if (mp->lsn) { in remove_from_logsync() 293 mp->lsn = 0; in remove_from_logsync() 309 if (mp->lsn) in last_write_complete() 548 if (mp->lsn) in metapage_releasepage() 754 } else if (mp->lsn) /* discard_metapage doesn't remove it */ in release_metapage() 796 if (mp->lsn) in __invalidate_metapages()
|
D | jfs_imap.c | 2734 int lsn, difft, diffp; in diUpdatePMap() local 2807 lsn = tblk->lsn; in diUpdatePMap() 2810 if (mp->lsn != 0) { in diUpdatePMap() 2812 logdiff(difft, lsn, log); in diUpdatePMap() 2813 logdiff(diffp, mp->lsn, log); in diUpdatePMap() 2815 mp->lsn = lsn; in diUpdatePMap() 2827 mp->lsn = lsn; in diUpdatePMap()
|
D | jfs_dmap.c | 460 int lsn, difft, diffp; in dbUpdatePMap() local 473 lsn = tblk->lsn; in dbUpdatePMap() 475 logdiff(difft, lsn, log); in dbUpdatePMap() 567 if (mp->lsn != 0) { in dbUpdatePMap() 569 logdiff(diffp, mp->lsn, log); in dbUpdatePMap() 571 mp->lsn = lsn; in dbUpdatePMap() 584 mp->lsn = lsn; in dbUpdatePMap()
|
D | jfs_metapage.h | 16 int lsn; member
|
D | jfs_txnmgr.h | 30 s32 lsn; /* recovery lsn */ member
|
D | jfs_txnmgr.c | 423 tblk->next = tblk->last = tblk->xflag = tblk->flag = tblk->lsn = 0; in txBegin() 551 jfs_info("log barrier off: 0x%x", log->lsn); in txEnd() 712 if ((tid == 0) && mp->lsn) in txLock() 973 if (tblk->lsn) { in txUnlock() 2657 if (mp->xflag & COMMIT_PAGE && mp->lsn) in txAbort()
|
/fs/xfs/libxfs/ |
D | xfs_log_format.h | 54 #define CYCLE_LSN(lsn) ((uint)((lsn)>>32)) argument 55 #define BLOCK_LSN(lsn) ((uint)(lsn)) argument 58 #define CYCLE_LSN_DISK(lsn) (((__be32 *)&(lsn))[0]) argument
|
D | xfs_inode_buf.h | 56 xfs_lsn_t lsn);
|
D | xfs_da_format.h | 50 __be64 lsn; /* sequence number of last write */ member 315 __be64 lsn; /* sequence number of last write */ member
|
D | xfs_inode_buf.c | 256 xfs_lsn_t lsn) in xfs_inode_to_disk() argument 300 to->di_lsn = cpu_to_be64(lsn); in xfs_inode_to_disk()
|
/fs/ntfs/ |
D | logfile.c | 338 LSN *lsn) in ntfs_check_and_load_restart_page() argument 438 if (lsn) { in ntfs_check_and_load_restart_page() 440 *lsn = sle64_to_cpu(ra->current_lsn); in ntfs_check_and_load_restart_page() 442 *lsn = sle64_to_cpu(rp->chkdsk_lsn); in ntfs_check_and_load_restart_page()
|
D | layout.h | 319 /* 8*/ le64 lsn; /* $LogFile sequence number for this record. member 388 /* 8*/ le64 lsn; /* $LogFile sequence number for this record. member 2044 /* 8*/ sle64 lsn; /* $LogFile sequence number of the last member
|