Home
last modified time | relevance | path

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

/linux-4.4.14/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.h472 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument
474 xfs_lsn_t val = atomic64_read(lsn); in xlog_crack_atomic_lsn()
484 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument
486 atomic64_set(lsn, xlog_assign_lsn(cycle, block)); in xlog_assign_atomic_lsn()
572 xfs_lsn_t lsn) in xlog_valid_lsn() argument
594 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn()
595 (CYCLE_LSN(lsn) == cur_cycle && BLOCK_LSN(lsn) > cur_block)) { in xlog_valid_lsn()
606 if ((CYCLE_LSN(lsn) > cur_cycle) || in xlog_valid_lsn()
607 (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()
145 xfs_lsn_t lsn);
148 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()
230 xfs_lsn_t lsn) in xfs_qm_dquot_logitem_committing() argument
352 xfs_lsn_t lsn) in xfs_qm_qoff_logitem_committed() argument
354 return lsn; in xfs_qm_qoff_logitem_committed()
360 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_extfree_item.c160 xfs_lsn_t lsn) in xfs_efi_item_committed() argument
162 return lsn; in xfs_efi_item_committed()
175 xfs_lsn_t lsn) in xfs_efi_item_committing() argument
414 xfs_lsn_t lsn) in xfs_efd_item_committed() argument
440 xfs_lsn_t lsn) in xfs_efd_item_committing() argument
Dxfs_log.c519 xfs_lsn_t lsn = 0; in xfs_log_done() local
527 (xlog_commit_record(log, ticket, iclog, &lsn)))) { in xfs_log_done()
528 lsn = (xfs_lsn_t) -1; in xfs_log_done()
553 return lsn; in xfs_log_done()
802 xfs_lsn_t lsn; in xfs_log_unmount_write() local
850 error = xlog_write(log, &vec, tic, &lsn, in xfs_log_unmount_write()
2594 xfs_lsn_t lowest_lsn, lsn; in xlog_get_lowest_lsn() local
2600 lsn = be64_to_cpu(lsn_log->ic_header.h_lsn); in xlog_get_lowest_lsn()
2601 if ((lsn && !lowest_lsn) || in xlog_get_lowest_lsn()
2602 (XFS_LSN_CMP(lsn, lowest_lsn) < 0)) { in xlog_get_lowest_lsn()
[all …]
Dxfs_log_recover.c1838 xfs_lsn_t lsn = -1; in xlog_recover_get_buf_lsn() local
1854 lsn = be64_to_cpu(btb->bb_u.s.bb_lsn); in xlog_recover_get_buf_lsn()
1862 lsn = be64_to_cpu(btb->bb_u.l.bb_lsn); in xlog_recover_get_buf_lsn()
1867 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
1871 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
1875 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
1879 lsn = be64_to_cpu(((struct xfs_dsymlink_hdr *)blk)->sl_lsn); in xlog_recover_get_buf_lsn()
1885 lsn = be64_to_cpu(((struct xfs_dir3_blk_hdr *)blk)->lsn); in xlog_recover_get_buf_lsn()
1905 lsn = be64_to_cpu(((struct xfs_dsb *)blk)->sb_lsn); in xlog_recover_get_buf_lsn()
1915 if (lsn != (xfs_lsn_t)-1) { in xlog_recover_get_buf_lsn()
[all …]
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_log.h139 xfs_lsn_t lsn,
143 xfs_lsn_t lsn,
Dxfs_file.c191 xfs_lsn_t lsn = 0; in xfs_dir_fsync() local
197 lsn = ip->i_itemp->ili_last_lsn; in xfs_dir_fsync()
200 if (!lsn) in xfs_dir_fsync()
202 return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL); in xfs_dir_fsync()
217 xfs_lsn_t lsn = 0; in xfs_file_fsync() local
261 lsn = ip->i_itemp->ili_last_lsn; in xfs_file_fsync()
264 if (lsn) { in xfs_file_fsync()
265 error = _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed); in xfs_file_fsync()
Dxfs_inode_item.c516 xfs_lsn_t lsn) in xfs_inode_item_committed() argument
525 return lsn; in xfs_inode_item_committed()
535 xfs_lsn_t lsn) in xfs_inode_item_committing() argument
537 INODE_ITEM(lip)->ili_last_lsn = lsn; in xfs_inode_item_committing()
Dxfs_trace.h1038 __field(xfs_lsn_t, lsn)
1045 __entry->lsn = lip->li_lsn;
1050 CYCLE_LSN(__entry->lsn), BLOCK_LSN(__entry->lsn),
1056 TP_PROTO(struct xfs_mount *mp, xfs_lsn_t lsn),
1057 TP_ARGS(mp, lsn),
1060 __field(xfs_lsn_t, lsn)
1064 __entry->lsn = lsn;
1068 __entry->lsn)
1475 __field(xfs_lsn_t, lsn)
1480 __entry->lsn = trans->t_commit_lsn;
[all …]
Dxfs_buf_item.c680 xfs_lsn_t lsn) in xfs_buf_item_committed() argument
688 return lsn; in xfs_buf_item_committed()
/linux-4.4.14/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()
559 if (mp->lsn) in metapage_releasepage()
760 } else if (mp->lsn) /* discard_metapage doesn't remove it */ in release_metapage()
802 if (mp->lsn) in __invalidate_metapages()
Djfs_metapage.h29 int lsn; member
Djfs_imap.c2747 int lsn, difft, diffp; in diUpdatePMap() local
2820 lsn = tblk->lsn; in diUpdatePMap()
2823 if (mp->lsn != 0) { in diUpdatePMap()
2825 logdiff(difft, lsn, log); in diUpdatePMap()
2826 logdiff(diffp, mp->lsn, log); in diUpdatePMap()
2828 mp->lsn = lsn; in diUpdatePMap()
2840 mp->lsn = lsn; in diUpdatePMap()
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_txnmgr.h43 s32 lsn; /* recovery lsn */ member
Djfs_txnmgr.c431 tblk->next = tblk->last = tblk->xflag = tblk->flag = tblk->lsn = 0; in txBegin()
559 jfs_info("log barrier off: 0x%x", log->lsn); in txEnd()
720 if ((tid == 0) && mp->lsn) in txLock()
981 if (tblk->lsn) { in txUnlock()
2669 if (mp->xflag & COMMIT_PAGE && mp->lsn) in txAbort()
/linux-4.4.14/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_da_format.h62 __be64 lsn; /* sequence number of last write */ member
359 __be64 lsn; /* sequence number of last write */ member
Dxfs_dir2_data.c228 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_data_verify()
302 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify()
Dxfs_dir2_block.c75 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_block_verify()
120 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_block_write_verify()
Dxfs_dir2_leaf.c168 if (!xfs_log_check_lsn(mp, be64_to_cpu(leaf3->info.lsn))) in xfs_dir3_leaf_verify()
214 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in __write_verify()
Dxfs_dir2_node.c101 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_free_verify()
147 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_free_write_verify()
Dxfs_da_btree.c154 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn))) in xfs_da3_node_verify()
198 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_da3_node_write_verify()
Dxfs_attr_leaf.c270 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->info.lsn))) in xfs_attr3_leaf_verify()
303 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_attr3_leaf_write_verify()
/linux-4.4.14/drivers/hwmon/
Dsch56xx-common.c239 int msb, lsn; in sch56xx_read_virtual_reg12() local
246 lsn = sch56xx_read_virtual_reg(addr, lsn_reg); in sch56xx_read_virtual_reg12()
247 if (lsn < 0) in sch56xx_read_virtual_reg12()
248 return lsn; in sch56xx_read_virtual_reg12()
251 return (msb << 4) | (lsn >> 4); in sch56xx_read_virtual_reg12()
253 return (msb << 4) | (lsn & 0x0f); in sch56xx_read_virtual_reg12()
/linux-4.4.14/arch/s390/include/asm/
Dchpid.h13 u8 lsn; member
/linux-4.4.14/fs/ntfs/
Dlogfile.c351 LSN *lsn) in ntfs_check_and_load_restart_page() argument
451 if (lsn) { in ntfs_check_and_load_restart_page()
453 *lsn = sle64_to_cpu(ra->current_lsn); in ntfs_check_and_load_restart_page()
455 *lsn = sle64_to_cpu(rp->chkdsk_lsn); in ntfs_check_and_load_restart_page()
Dlayout.h333 /* 8*/ le64 lsn; /* $LogFile sequence number for this record. member
402 /* 8*/ le64 lsn; /* $LogFile sequence number for this record. member
2058 /* 8*/ sle64 lsn; /* $LogFile sequence number of the last member
Dmft.c2053 m->lsn = 0; in ntfs_mft_record_layout()
/linux-4.4.14/drivers/s390/cio/
Dchsc.h26 u8 lsn; member
/linux-4.4.14/Documentation/filesystems/
Dxfs-self-describing-metadata.txt196 __be64 lsn; /* last modification in log, not logged */
315 hdr->lsn = cpu_to_be64(bip->bli_item.li_lsn);