Home
last modified time | relevance | path

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

12

/Linux-v4.19/fs/xfs/
Dxfs_trans_ail.c39 xfs_lsn_t lsn; in xfs_ail_check() local
56 lsn = lip->li_lsn; in xfs_ail_check()
59 (prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0) && in xfs_ail_check()
60 (next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0)) in xfs_ail_check()
65 ASSERT(prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0); in xfs_ail_check()
66 ASSERT(next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0); in xfs_ail_check()
114 xfs_lsn_t lsn = 0; in xfs_ail_min_lsn() local
120 lsn = lip->li_lsn; in xfs_ail_min_lsn()
123 return lsn; in xfs_ail_min_lsn()
133 xfs_lsn_t lsn = 0; in xfs_ail_max_lsn() local
[all …]
Dxfs_log_priv.h465 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
467 xfs_lsn_t val = atomic64_read(lsn); in xlog_crack_atomic_lsn()
477 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
479 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
565 xfs_lsn_t lsn) in xlog_valid_lsn() argument
587 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn()
588 (CYCLE_LSN(lsn) == cur_cycle && BLOCK_LSN(lsn) > cur_block)) { in xlog_valid_lsn()
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()
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()
123 xfs_lsn_t lsn);
126 xfs_lsn_t lsn);
Dxfs_dquot_item.c100 xfs_lsn_t lsn) in xfs_qm_dquot_logitem_committed() argument
106 return lsn; in xfs_qm_dquot_logitem_committed()
248 xfs_lsn_t lsn) in xfs_qm_dquot_logitem_committing() argument
371 xfs_lsn_t lsn) in xfs_qm_qoff_logitem_committed() argument
373 return lsn; in xfs_qm_qoff_logitem_committed()
379 xfs_lsn_t lsn) in xfs_qm_qoffend_logitem_committed() argument
Dxfs_export.c228 xfs_lsn_t lsn = 0; in xfs_fs_nfs_commit_metadata() local
232 lsn = ip->i_itemp->ili_last_lsn; in xfs_fs_nfs_commit_metadata()
235 if (!lsn) in xfs_fs_nfs_commit_metadata()
237 return xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL); in xfs_fs_nfs_commit_metadata()
Dxfs_bmap_item.c160 xfs_lsn_t lsn) in xfs_bui_item_committed() argument
162 return lsn; in xfs_bui_item_committed()
175 xfs_lsn_t lsn) in xfs_bui_item_committing() argument
309 xfs_lsn_t lsn) in xfs_bud_item_committed() argument
335 xfs_lsn_t lsn) in xfs_bud_item_committing() argument
Dxfs_refcount_item.c159 xfs_lsn_t lsn) in xfs_cui_item_committed() argument
161 return lsn; in xfs_cui_item_committed()
174 xfs_lsn_t lsn) in xfs_cui_item_committing() argument
314 xfs_lsn_t lsn) in xfs_cud_item_committed() argument
340 xfs_lsn_t lsn) in xfs_cud_item_committing() argument
Dxfs_rmap_item.c158 xfs_lsn_t lsn) in xfs_rui_item_committed() argument
160 return lsn; in xfs_rui_item_committed()
173 xfs_lsn_t lsn) in xfs_rui_item_committing() argument
335 xfs_lsn_t lsn) in xfs_rud_item_committed() argument
361 xfs_lsn_t lsn) in xfs_rud_item_committing() argument
Dxfs_extfree_item.c170 xfs_lsn_t lsn) in xfs_efi_item_committed() argument
172 return lsn; in xfs_efi_item_committed()
185 xfs_lsn_t lsn) in xfs_efi_item_committing() argument
408 xfs_lsn_t lsn) in xfs_efd_item_committed() argument
434 xfs_lsn_t lsn) in xfs_efd_item_committing() argument
Dxfs_log.c506 xfs_lsn_t lsn = 0; in xfs_log_done() local
514 (xlog_commit_record(log, ticket, iclog, &lsn)))) { in xfs_log_done()
515 lsn = (xfs_lsn_t) -1; in xfs_log_done()
540 return lsn; in xfs_log_done()
850 xfs_lsn_t lsn; in xfs_log_write_unmount_record() local
874 error = xlog_write(log, &vec, tic, &lsn, NULL, flags); in xfs_log_write_unmount_record()
2678 xfs_lsn_t lowest_lsn, lsn; in xlog_get_lowest_lsn() local
2684 lsn = be64_to_cpu(lsn_log->ic_header.h_lsn); in xlog_get_lowest_lsn()
2685 if ((lsn && !lowest_lsn) || in xlog_get_lowest_lsn()
2686 (XFS_LSN_CMP(lsn, lowest_lsn) < 0)) { in xlog_get_lowest_lsn()
[all …]
Dxfs_icreate_item.c95 xfs_lsn_t lsn) in xfs_icreate_item_committed() argument
117 xfs_lsn_t lsn) in xfs_icreate_item_committing() argument
Dxfs_log_recover.c2273 xfs_lsn_t lsn = -1; in xlog_recover_get_buf_lsn() local
2291 lsn = be64_to_cpu(btb->bb_u.s.bb_lsn); in xlog_recover_get_buf_lsn()
2299 lsn = be64_to_cpu(btb->bb_u.l.bb_lsn); in xlog_recover_get_buf_lsn()
2304 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
2308 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
2312 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
2316 lsn = be64_to_cpu(((struct xfs_dsymlink_hdr *)blk)->sl_lsn); in xlog_recover_get_buf_lsn()
2322 lsn = be64_to_cpu(((struct xfs_dir3_blk_hdr *)blk)->lsn); in xlog_recover_get_buf_lsn()
2342 lsn = be64_to_cpu(((struct xfs_dsb *)blk)->sb_lsn); in xlog_recover_get_buf_lsn()
2352 if (lsn != (xfs_lsn_t)-1) { in xlog_recover_get_buf_lsn()
[all …]
Dxfs_file.c88 xfs_lsn_t lsn = 0; in xfs_dir_fsync() local
94 lsn = ip->i_itemp->ili_last_lsn; in xfs_dir_fsync()
97 if (!lsn) in xfs_dir_fsync()
99 return xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL); in xfs_dir_fsync()
114 xfs_lsn_t lsn = 0; in xfs_file_fsync() local
155 lsn = ip->i_itemp->ili_last_lsn; in xfs_file_fsync()
158 if (lsn) { in xfs_file_fsync()
159 error = xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed); in xfs_file_fsync()
Dxfs_inode_item.c301 xfs_lsn_t lsn) in xfs_inode_to_log_dinode() argument
348 to->di_lsn = lsn; in xfs_inode_to_log_dinode()
609 xfs_lsn_t lsn) in xfs_inode_item_committed() argument
618 return lsn; in xfs_inode_item_committed()
624 xfs_lsn_t lsn) in xfs_inode_item_committing() argument
626 INODE_ITEM(lip)->ili_last_lsn = lsn; in xfs_inode_item_committing()
/Linux-v4.19/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()
767 } else if (mp->lsn) /* discard_metapage doesn't remove it */ in release_metapage()
809 if (mp->lsn) in __invalidate_metapages()
Djfs_metapage.h29 int lsn; member
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.c2740 int lsn, difft, diffp; in diUpdatePMap() local
2813 lsn = tblk->lsn; in diUpdatePMap()
2816 if (mp->lsn != 0) { in diUpdatePMap()
2818 logdiff(difft, lsn, log); in diUpdatePMap()
2819 logdiff(diffp, mp->lsn, log); in diUpdatePMap()
2821 mp->lsn = lsn; in diUpdatePMap()
2833 mp->lsn = lsn; in diUpdatePMap()
/Linux-v4.19/drivers/hwmon/
Dsch56xx-common.c236 int msb, lsn; in sch56xx_read_virtual_reg12() local
243 lsn = sch56xx_read_virtual_reg(addr, lsn_reg); in sch56xx_read_virtual_reg12()
244 if (lsn < 0) in sch56xx_read_virtual_reg12()
245 return lsn; in sch56xx_read_virtual_reg12()
248 return (msb << 4) | (lsn >> 4); in sch56xx_read_virtual_reg12()
250 return (msb << 4) | (lsn & 0x0f); in sch56xx_read_virtual_reg12()
/Linux-v4.19/fs/xfs/libxfs/
Dxfs_log_format.h54 #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
Dxfs_inode_buf.h60 xfs_lsn_t lsn);
/Linux-v4.19/arch/s390/include/asm/
Dchpid.h14 u8 lsn; member
/Linux-v4.19/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