Home
last modified time | relevance | path

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

12

/linux-6.6.21/fs/xfs/
Dxfs_trans_ail.c42 xfs_lsn_t lsn; in xfs_ail_check() local
59 lsn = lip->li_lsn; in xfs_ail_check()
62 (prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0) && in xfs_ail_check()
63 (next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0)) in xfs_ail_check()
68 ASSERT(prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0); in xfs_ail_check()
69 ASSERT(next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0); in xfs_ail_check()
128 xfs_lsn_t lsn; in xfs_ail_min_lsn() local
131 lsn = __xfs_ail_min_lsn(ailp); in xfs_ail_min_lsn()
134 return lsn; in xfs_ail_min_lsn()
144 xfs_lsn_t lsn = 0; in xfs_ail_max_lsn() local
[all …]
Dxfs_buf_item_recover.c718 xfs_lsn_t lsn = -1; in xlog_recover_get_buf_lsn() local
747 lsn = be64_to_cpu(btb->bb_u.s.bb_lsn); in xlog_recover_get_buf_lsn()
755 lsn = be64_to_cpu(btb->bb_u.l.bb_lsn); in xlog_recover_get_buf_lsn()
760 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
764 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
768 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
772 lsn = be64_to_cpu(((struct xfs_dsymlink_hdr *)blk)->sl_lsn); in xlog_recover_get_buf_lsn()
778 lsn = be64_to_cpu(((struct xfs_dir3_blk_hdr *)blk)->lsn); in xlog_recover_get_buf_lsn()
798 lsn = be64_to_cpu(((struct xfs_dsb *)blk)->sb_lsn); in xlog_recover_get_buf_lsn()
808 if (lsn != (xfs_lsn_t)-1) { in xlog_recover_get_buf_lsn()
[all …]
Dxfs_log_priv.h533 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
535 xfs_lsn_t val = atomic64_read(lsn); in xlog_crack_atomic_lsn()
545 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
547 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
636 xfs_lsn_t lsn) in xlog_valid_lsn() argument
658 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn()
659 (CYCLE_LSN(lsn) == cur_cycle && BLOCK_LSN(lsn) > cur_block)) { in xlog_valid_lsn()
670 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn()
671 (CYCLE_LSN(lsn) == cur_cycle && BLOCK_LSN(lsn) > cur_block)) in xlog_valid_lsn()
Dxfs_trans_priv.h74 xfs_lsn_t lsn) __releases(ailp->ail_lock);
91 xfs_lsn_t lsn) __releases(ailp->ail_lock) in xfs_trans_ail_update() argument
93 xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn); in xfs_trans_ail_update()
97 xfs_lsn_t lsn);
112 xfs_lsn_t lsn);
115 xfs_lsn_t lsn);
Dxfs_dquot_item_recover.c143 xfs_lsn_t lsn = be64_to_cpu(dqb->dd_lsn); in xlog_recover_dquot_commit_pass2() local
145 if (lsn && lsn != -1 && XFS_LSN_CMP(lsn, current_lsn) >= 0) { in xlog_recover_dquot_commit_pass2()
Dxfs_inode_item_recover.c172 xfs_lsn_t lsn) in xfs_log_dinode_to_disk() argument
206 to->di_lsn = cpu_to_be64(lsn); in xfs_log_dinode_to_disk()
356 xfs_lsn_t lsn = be64_to_cpu(dip->di_lsn); in xlog_recover_inode_commit_pass2() local
358 if (lsn && lsn != -1 && XFS_LSN_CMP(lsn, current_lsn) > 0) { in xlog_recover_inode_commit_pass2()
Dxfs_inode_item.c517 xfs_lsn_t lsn) in xfs_inode_to_log_dinode() argument
555 to->di_lsn = lsn; in xfs_inode_to_log_dinode()
790 xfs_lsn_t lsn) in xfs_inode_item_committed() argument
799 return lsn; in xfs_inode_item_committed()
878 xfs_lsn_t lsn; in xfs_iflush_ail_updates() local
895 lsn = xfs_ail_delete_one(ailp, lip); in xfs_iflush_ail_updates()
896 if (!tail_lsn && lsn) in xfs_iflush_ail_updates()
897 tail_lsn = lsn; in xfs_iflush_ail_updates()
Dxfs_log.c2666 xfs_lsn_t lowest_lsn = 0, lsn; in xlog_get_lowest_lsn() local
2673 lsn = be64_to_cpu(iclog->ic_header.h_lsn); in xlog_get_lowest_lsn()
2674 if ((lsn && !lowest_lsn) || XFS_LSN_CMP(lsn, lowest_lsn) < 0) in xlog_get_lowest_lsn()
2675 lowest_lsn = lsn; in xlog_get_lowest_lsn()
3135 xfs_lsn_t lsn = be64_to_cpu(iclog->ic_header.h_lsn); in xlog_force_and_check_iclog() local
3147 if (be64_to_cpu(iclog->ic_header.h_lsn) != lsn) in xlog_force_and_check_iclog()
3267 xfs_lsn_t lsn, in xlog_force_lsn() argument
3280 while (be64_to_cpu(iclog->ic_header.h_lsn) != lsn) { in xlog_force_lsn()
3365 xfs_lsn_t lsn; in xfs_log_force_seq() local
3372 lsn = xlog_cil_force_seq(log, seq); in xfs_log_force_seq()
[all …]
Dxfs_bmap_item.c653 xfs_lsn_t lsn) in xlog_recover_bui_commit_pass2() argument
688 xfs_trans_ail_insert(log->l_ailp, &buip->bui_item, lsn); in xlog_recover_bui_commit_pass2()
710 xfs_lsn_t lsn) in xlog_recover_bud_commit_pass2() argument
Dxfs_refcount_item.c674 xfs_lsn_t lsn) in xlog_recover_cui_commit_pass2() argument
703 xfs_trans_ail_insert(log->l_ailp, &cuip->cui_item, lsn); in xlog_recover_cui_commit_pass2()
725 xfs_lsn_t lsn) in xlog_recover_cud_commit_pass2() argument
Dxfs_rmap_item.c680 xfs_lsn_t lsn) in xlog_recover_rui_commit_pass2() argument
709 xfs_trans_ail_insert(log->l_ailp, &ruip->rui_item, lsn); in xlog_recover_rui_commit_pass2()
731 xfs_lsn_t lsn) in xlog_recover_rud_commit_pass2() argument
/linux-6.6.21/fs/jfs/
Djfs_logmgr.c228 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 …]
Djfs_logmgr.h392 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;\
Djfs_metapage.c180 mp->lsn = 0; in alloc_metapage()
292 if (mp->lsn) { in remove_from_logsync()
294 mp->lsn = 0; in remove_from_logsync()
310 if (mp->lsn) in last_write_complete()
547 if (mp->lsn) in metapage_release_folio()
782 } else if (mp->lsn) /* discard_metapage doesn't remove it */ in release_metapage()
824 if (mp->lsn) in __invalidate_metapages()
Djfs_metapage.h16 int lsn; member
Djfs_dmap.c460 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()
Djfs_imap.c2732 int lsn, difft, diffp; in diUpdatePMap() local
2805 lsn = tblk->lsn; in diUpdatePMap()
2808 if (mp->lsn != 0) { in diUpdatePMap()
2810 logdiff(difft, lsn, log); in diUpdatePMap()
2811 logdiff(diffp, mp->lsn, log); in diUpdatePMap()
2813 mp->lsn = lsn; in diUpdatePMap()
2825 mp->lsn = lsn; in diUpdatePMap()
/linux-6.6.21/fs/ntfs3/
Dfslog.c417 u64 lsn = le64_to_cpu(cr->oldest_lsn); in oldest_client_lsn() local
420 if (lsn && lsn < *oldest_lsn) in oldest_client_lsn()
421 *oldest_lsn = lsn; in oldest_client_lsn()
1060 static inline u32 lsn_to_vbo(struct ntfs_log *log, const u64 lsn) in lsn_to_vbo() argument
1062 u32 vbo = (lsn << log->seq_num_bits) >> (log->seq_num_bits - 3); in lsn_to_vbo()
1074 static inline u32 lsn_to_page_off(struct ntfs_log *log, u64 lsn) in lsn_to_page_off() argument
1076 return (((u32)lsn) << 3) & log->page_mask; in lsn_to_page_off()
1084 static inline bool is_lsn_in_file(struct ntfs_log *log, u64 lsn) in is_lsn_in_file() argument
1086 return lsn >= log->oldest_lsn && in is_lsn_in_file()
1087 lsn <= le64_to_cpu(log->ra->current_lsn); in is_lsn_in_file()
[all …]
/linux-6.6.21/drivers/hwmon/
Dsch56xx-common.c223 int msb, lsn; in sch56xx_read_virtual_reg12() local
230 lsn = sch56xx_read_virtual_reg(addr, lsn_reg); in sch56xx_read_virtual_reg12()
231 if (lsn < 0) in sch56xx_read_virtual_reg12()
232 return lsn; in sch56xx_read_virtual_reg12()
235 return (msb << 4) | (lsn >> 4); in sch56xx_read_virtual_reg12()
237 return (msb << 4) | (lsn & 0x0f); in sch56xx_read_virtual_reg12()
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_log_format.h51 #define CYCLE_LSN(lsn) ((uint)((lsn)>>32)) argument
52 #define BLOCK_LSN(lsn) ((uint)(lsn)) argument
55 #define CYCLE_LSN_DISK(lsn) (((__be32 *)&(lsn))[0]) argument
Dxfs_inode_buf.h26 xfs_lsn_t lsn);
Dxfs_log_recover.h59 struct xlog_recover_item *item, xfs_lsn_t lsn);
Dxfs_da_format.h50 __be64 lsn; /* sequence number of last write */ member
316 __be64 lsn; /* sequence number of last write */ member
/linux-6.6.21/fs/ntfs/
Dlogfile.c338 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()
/linux-6.6.21/arch/s390/include/asm/
Dchpid.h14 u8 lsn; member

12