Home
last modified time | relevance | path

Searched refs:lsn (Results 1 – 25 of 38) sorted by relevance

12

/fs/xfs/
Dxfs_trans_ail.c104 xfs_lsn_t lsn = 0; in xfs_ail_min_lsn() local
110 lsn = lip->li_lsn; in xfs_ail_min_lsn()
113 return lsn; in xfs_ail_min_lsn()
123 xfs_lsn_t lsn = 0; in xfs_ail_max_lsn() local
129 lsn = lip->li_lsn; in xfs_ail_max_lsn()
132 return lsn; in xfs_ail_max_lsn()
213 xfs_lsn_t lsn) in xfs_trans_ail_cursor_first() argument
219 if (lsn == 0) { in xfs_trans_ail_cursor_first()
225 if (XFS_LSN_CMP(lip->li_lsn, lsn) >= 0) in xfs_trans_ail_cursor_first()
239 xfs_lsn_t lsn) in __xfs_trans_ail_cursor_last() argument
[all …]
Dxfs_log_priv.h477 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
479 xfs_lsn_t val = atomic64_read(lsn); in xlog_crack_atomic_lsn()
489 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
491 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
577 xfs_lsn_t lsn) in xlog_valid_lsn() argument
599 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn()
600 (CYCLE_LSN(lsn) == cur_cycle && BLOCK_LSN(lsn) > cur_block)) { in xlog_valid_lsn()
611 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn()
612 (CYCLE_LSN(lsn) == cur_cycle && BLOCK_LSN(lsn) > cur_block)) in xlog_valid_lsn()
Dxfs_trans_priv.h87 xfs_lsn_t lsn) __releases(ailp->xa_lock);
104 xfs_lsn_t lsn) __releases(ailp->xa_lock) in xfs_trans_ail_update() argument
106 xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn); in xfs_trans_ail_update()
136 xfs_lsn_t lsn);
139 xfs_lsn_t lsn);
Dxfs_dquot_item.c112 xfs_lsn_t lsn) in xfs_qm_dquot_logitem_committed() argument
118 return lsn; in xfs_qm_dquot_logitem_committed()
265 xfs_lsn_t lsn) in xfs_qm_dquot_logitem_committing() argument
388 xfs_lsn_t lsn) in xfs_qm_qoff_logitem_committed() argument
390 return lsn; in xfs_qm_qoff_logitem_committed()
396 xfs_lsn_t lsn) in xfs_qm_qoffend_logitem_committed() argument
Dxfs_export.c231 xfs_lsn_t lsn = 0; in xfs_fs_nfs_commit_metadata() local
235 lsn = ip->i_itemp->ili_last_lsn; in xfs_fs_nfs_commit_metadata()
238 if (!lsn) in xfs_fs_nfs_commit_metadata()
240 return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL); in xfs_fs_nfs_commit_metadata()
Dxfs_bmap_item.c155 xfs_lsn_t lsn) in xfs_bui_item_committed() argument
157 return lsn; in xfs_bui_item_committed()
170 xfs_lsn_t lsn) in xfs_bui_item_committing() argument
322 xfs_lsn_t lsn) in xfs_bud_item_committed() argument
348 xfs_lsn_t lsn) in xfs_bud_item_committing() argument
Dxfs_rmap_item.c153 xfs_lsn_t lsn) in xfs_rui_item_committed() argument
155 return lsn; in xfs_rui_item_committed()
168 xfs_lsn_t lsn) in xfs_rui_item_committing() argument
348 xfs_lsn_t lsn) in xfs_rud_item_committed() argument
374 xfs_lsn_t lsn) in xfs_rud_item_committing() argument
Dxfs_refcount_item.c153 xfs_lsn_t lsn) in xfs_cui_item_committed() argument
155 return lsn; in xfs_cui_item_committed()
168 xfs_lsn_t lsn) in xfs_cui_item_committing() argument
326 xfs_lsn_t lsn) in xfs_cud_item_committed() argument
352 xfs_lsn_t lsn) in xfs_cud_item_committing() argument
Dxfs_log.c517 xfs_lsn_t lsn = 0; in xfs_log_done() local
525 (xlog_commit_record(log, ticket, iclog, &lsn)))) { in xfs_log_done()
526 lsn = (xfs_lsn_t) -1; in xfs_log_done()
551 return lsn; in xfs_log_done()
830 xfs_lsn_t lsn; in xfs_log_unmount_write() local
880 error = xlog_write(log, &vec, tic, &lsn, in xfs_log_unmount_write()
2640 xfs_lsn_t lowest_lsn, lsn; in xlog_get_lowest_lsn() local
2646 lsn = be64_to_cpu(lsn_log->ic_header.h_lsn); in xlog_get_lowest_lsn()
2647 if ((lsn && !lowest_lsn) || in xlog_get_lowest_lsn()
2648 (XFS_LSN_CMP(lsn, lowest_lsn) < 0)) { in xlog_get_lowest_lsn()
[all …]
Dxfs_extfree_item.c164 xfs_lsn_t lsn) in xfs_efi_item_committed() argument
166 return lsn; in xfs_efi_item_committed()
179 xfs_lsn_t lsn) in xfs_efi_item_committing() argument
420 xfs_lsn_t lsn) in xfs_efd_item_committed() argument
446 xfs_lsn_t lsn) in xfs_efd_item_committing() argument
Dxfs_log_recover.c2265 xfs_lsn_t lsn = -1; in xlog_recover_get_buf_lsn() local
2283 lsn = be64_to_cpu(btb->bb_u.s.bb_lsn); in xlog_recover_get_buf_lsn()
2291 lsn = be64_to_cpu(btb->bb_u.l.bb_lsn); in xlog_recover_get_buf_lsn()
2296 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
2300 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
2304 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
2308 lsn = be64_to_cpu(((struct xfs_dsymlink_hdr *)blk)->sl_lsn); in xlog_recover_get_buf_lsn()
2314 lsn = be64_to_cpu(((struct xfs_dir3_blk_hdr *)blk)->lsn); in xlog_recover_get_buf_lsn()
2334 lsn = be64_to_cpu(((struct xfs_dsb *)blk)->sb_lsn); in xlog_recover_get_buf_lsn()
2344 if (lsn != (xfs_lsn_t)-1) { in xlog_recover_get_buf_lsn()
[all …]
Dxfs_file.c113 xfs_lsn_t lsn = 0; in xfs_dir_fsync() local
119 lsn = ip->i_itemp->ili_last_lsn; in xfs_dir_fsync()
122 if (!lsn) in xfs_dir_fsync()
124 return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL); in xfs_dir_fsync()
139 xfs_lsn_t lsn = 0; in xfs_file_fsync() local
180 lsn = ip->i_itemp->ili_last_lsn; in xfs_file_fsync()
183 if (lsn) { in xfs_file_fsync()
184 error = _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed); in xfs_file_fsync()
Dxfs_icreate_item.c107 xfs_lsn_t lsn) in xfs_icreate_item_committed() argument
129 xfs_lsn_t lsn) in xfs_icreate_item_committing() argument
Dxfs_inode_item.c330 xfs_lsn_t lsn) in xfs_inode_to_log_dinode() argument
377 to->di_lsn = lsn; in xfs_inode_to_log_dinode()
641 xfs_lsn_t lsn) in xfs_inode_item_committed() argument
650 return lsn; in xfs_inode_item_committed()
660 xfs_lsn_t lsn) in xfs_inode_item_committing() argument
662 INODE_ITEM(lip)->ili_last_lsn = lsn; in xfs_inode_item_committing()
Dxfs_log.h138 xfs_lsn_t lsn,
142 xfs_lsn_t lsn,
Dxfs_trace.h1058 __field(xfs_lsn_t, lsn)
1065 __entry->lsn = lip->li_lsn;
1070 CYCLE_LSN(__entry->lsn), BLOCK_LSN(__entry->lsn),
1076 TP_PROTO(struct xfs_mount *mp, xfs_lsn_t lsn, unsigned long caller_ip),
1077 TP_ARGS(mp, lsn, caller_ip),
1080 __field(xfs_lsn_t, lsn)
1085 __entry->lsn = lsn;
1090 __entry->lsn, (void *)__entry->caller_ip)
2018 __field(xfs_lsn_t, lsn)
2025 __entry->lsn = be64_to_cpu(rhead->h_lsn);
[all …]
/fs/jfs/
Djfs_logmgr.c241 int lsn; in lmLog() local
263 lsn = log->lsn; in lmLog()
270 if (mp->lsn == 0) { in lmLog()
272 mp->lsn = lsn; in lmLog()
297 if (tblk->lsn == 0) { in lmLog()
299 tblk->lsn = mp->lsn; in lmLog()
310 logdiff(diffp, mp->lsn, log); in lmLog()
311 logdiff(difft, tblk->lsn, log); in lmLog()
314 tblk->lsn = mp->lsn; in lmLog()
327 lsn = lmWriteRecord(log, tblk, lrd, tlck); in lmLog()
[all …]
Djfs_logmgr.h405 int lsn; /* 4: end-of-log */ member
482 s32 lsn; /* log sequence number */ member
496 #define logdiff(diff, lsn, log)\ argument
498 diff = (lsn) - (log)->syncpt;\
Djfs_metapage.c192 mp->lsn = 0; in alloc_metapage()
304 if (mp->lsn) { in remove_from_logsync()
306 mp->lsn = 0; in remove_from_logsync()
322 if (mp->lsn) in last_write_complete()
561 if (mp->lsn) in metapage_releasepage()
765 } else if (mp->lsn) /* discard_metapage doesn't remove it */ in release_metapage()
807 if (mp->lsn) in __invalidate_metapages()
Djfs_dmap.c435 int lsn, difft, diffp; in dbUpdatePMap() local
448 lsn = tblk->lsn; in dbUpdatePMap()
450 logdiff(difft, lsn, log); in dbUpdatePMap()
542 if (mp->lsn != 0) { in dbUpdatePMap()
544 logdiff(diffp, mp->lsn, log); in dbUpdatePMap()
546 mp->lsn = lsn; in dbUpdatePMap()
559 mp->lsn = lsn; in dbUpdatePMap()
Djfs_imap.c2746 int lsn, difft, diffp; in diUpdatePMap() local
2819 lsn = tblk->lsn; in diUpdatePMap()
2822 if (mp->lsn != 0) { in diUpdatePMap()
2824 logdiff(difft, lsn, log); in diUpdatePMap()
2825 logdiff(diffp, mp->lsn, log); in diUpdatePMap()
2827 mp->lsn = lsn; in diUpdatePMap()
2839 mp->lsn = lsn; in diUpdatePMap()
/fs/xfs/libxfs/
Dxfs_log_format.h66 #define CYCLE_LSN(lsn) ((uint)((lsn)>>32)) argument
67 #define BLOCK_LSN(lsn) ((uint)(lsn)) argument
70 #define CYCLE_LSN_DISK(lsn) (((__be32 *)&(lsn))[0]) argument
Dxfs_inode_buf.h72 xfs_lsn_t lsn);
Dxfs_da_format.h62 __be64 lsn; /* sequence number of last write */ member
340 __be64 lsn; /* sequence number of last write */ member
/fs/ntfs/
Dlogfile.c352 LSN *lsn) in ntfs_check_and_load_restart_page() argument
452 if (lsn) { in ntfs_check_and_load_restart_page()
454 *lsn = sle64_to_cpu(ra->current_lsn); in ntfs_check_and_load_restart_page()
456 *lsn = sle64_to_cpu(rp->chkdsk_lsn); in ntfs_check_and_load_restart_page()

12