Home
last modified time | relevance | path

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

12

/linux/fs/xfs/
H A 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()
215 xfs_lsn_t lsn) in xfs_trans_ail_cursor_first() argument
[all …]
H A Dxfs_buf_item_recover.c853 xfs_lsn_t lsn = -1; in xlog_recover_get_buf_lsn() local
875 lsn = be64_to_cpu(hdr->rt_lsn); in xlog_recover_get_buf_lsn()
891 lsn = be64_to_cpu(btb->bb_u.s.bb_lsn); in xlog_recover_get_buf_lsn()
901 lsn = be64_to_cpu(btb->bb_u.l.bb_lsn); in xlog_recover_get_buf_lsn()
906 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn()
910 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn()
914 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn()
918 lsn = be64_to_cpu(((struct xfs_dsymlink_hdr *)blk)->sl_lsn); in xlog_recover_get_buf_lsn()
924 lsn = be64_to_cpu(((struct xfs_dir3_blk_hdr *)blk)->lsn); in xlog_recover_get_buf_lsn()
944 lsn = be64_to_cpu(((struct xfs_dsb *)blk)->sb_lsn); in xlog_recover_get_buf_lsn()
[all …]
H A Dxfs_trans_priv.h75 xfs_lsn_t lsn) __releases(ailp->ail_lock);
92 xfs_lsn_t lsn) __releases(ailp->ail_lock) in xfs_trans_ail_update() argument
94 xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn); in xfs_trans_ail_update()
98 xfs_lsn_t lsn);
126 xfs_lsn_t lsn);
129 xfs_lsn_t lsn);
H A Dxfs_log_priv.h241 xfs_lsn_t commit_lsn; /* chkpt commit record lsn */
411 * The reservation head lsn is not made up of a cycle number and block number.
454 /* lsn of 1st LR with unflushed * buffers */
463 /* log recovery lsn tracking (for buffer submission */
548 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn()
550 xfs_lsn_t val = atomic64_read(lsn); in xlog_crack_atomic_lsn()
560 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn()
562 atomic64_set(lsn, xlog_assign_lsn(cycle, block));
643 xfs_lsn_t lsn) in xlog_valid_lsn()
650 * First, sample the current lsn withou in xlog_valid_lsn()
546 xlog_crack_atomic_lsn(atomic64_t * lsn,uint * cycle,uint * block) xlog_crack_atomic_lsn() argument
558 xlog_assign_atomic_lsn(atomic64_t * lsn,uint cycle,uint block) xlog_assign_atomic_lsn() argument
641 xlog_valid_lsn(struct xlog * log,xfs_lsn_t lsn) xlog_valid_lsn() argument
[all...]
H A 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()
H A Dxfs_refcount_item.c715 xfs_lsn_t lsn) in xlog_recover_cui_commit_pass2() argument
741 xlog_recover_intent_item(log, &cuip->cui_item, lsn, in xlog_recover_cui_commit_pass2()
757 xfs_lsn_t lsn) in xlog_recover_rtcui_commit_pass2() argument
783 xlog_recover_intent_item(log, &cuip->cui_item, lsn, in xlog_recover_rtcui_commit_pass2()
793 xfs_lsn_t lsn) in xlog_recover_rtcui_commit_pass2() argument
818 xfs_lsn_t lsn) in xlog_recover_cud_commit_pass2() argument
844 xfs_lsn_t lsn) in xlog_recover_rtcud_commit_pass2() argument
H A Dxfs_log.c462 * Hence if NEED_FUA is set and the current iclog tail lsn is empty, write the
465 * the checkpoint commit that wrote the initial tail lsn value. The tail lsn in
467 * always capture the tail lsn on the iclog on the first NEED_FUA release
2188 * B. If this is first write, save away start lsn in xlog_write()
2404 xfs_lsn_t lowest_lsn = 0, lsn; in xlog_state_iodone_process_iclog()
2411 lsn = be64_to_cpu(iclog->ic_header->h_lsn);
2412 if ((lsn && !lowest_lsn) || XFS_LSN_CMP(lsn, lowest_lsn) < 0)
2413 lowest_lsn = lsn;
2338 xfs_lsn_t lowest_lsn = 0, lsn; xlog_get_lowest_lsn() local
2773 xfs_lsn_t lsn = be64_to_cpu(iclog->ic_header->h_lsn); xlog_force_and_check_iclog() local
2905 xlog_force_lsn(struct xlog * log,xfs_lsn_t lsn,uint flags,int * log_flushed,bool already_slept) xlog_force_lsn() argument
3003 xfs_lsn_t lsn; xfs_log_force_seq() local
3469 xfs_log_check_lsn(struct xfs_mount * mp,xfs_lsn_t lsn) xfs_log_check_lsn() argument
[all...]
H A Dxfs_rmap_item.c744 xfs_lsn_t lsn) in xlog_recover_rui_commit_pass2() argument
770 xlog_recover_intent_item(log, &ruip->rui_item, lsn, in xlog_recover_rui_commit_pass2()
786 xfs_lsn_t lsn) in xlog_recover_rtrui_commit_pass2() argument
812 xlog_recover_intent_item(log, &ruip->rui_item, lsn, in xlog_recover_rtrui_commit_pass2()
822 xfs_lsn_t lsn) in xlog_recover_rtrui_commit_pass2() argument
847 xfs_lsn_t lsn) in xlog_recover_rud_commit_pass2() argument
873 xfs_lsn_t lsn) in xlog_recover_rtrud_commit_pass2() argument
H A Dxfs_exchmaps_item.c567 xfs_lsn_t lsn) in xlog_recover_xmi_commit_pass2() argument
591 xlog_recover_intent_item(log, &xmi_lip->xmi_item, lsn, in xlog_recover_xmi_commit_pass2()
613 xfs_lsn_t lsn) in xlog_recover_xmd_commit_pass2()
611 xlog_recover_xmd_commit_pass2(struct xlog * log,struct list_head * buffer_list,struct xlog_recover_item * item,xfs_lsn_t lsn) xlog_recover_xmd_commit_pass2() argument
H A Dxfs_bmap_item.c648 xfs_lsn_t lsn) in xlog_recover_bui_commit_pass2() argument
680 xlog_recover_intent_item(log, &buip->bui_item, lsn, in xlog_recover_bui_commit_pass2()
702 xfs_lsn_t lsn) in xlog_recover_bud_commit_pass2() argument
H A Dxfs_trace.h1617 __field(xfs_lsn_t, lsn)
1624 __entry->lsn = lip->li_lsn;
1626 TP_printk("dev %d:%d lip %p lsn %d/%d type %s flags %s",
1629 CYCLE_LSN(__entry->lsn), BLOCK_LSN(__entry->lsn),
1635 TP_PROTO(struct xfs_mount *mp, xfs_lsn_t lsn, unsigned long caller_ip),
1636 TP_ARGS(mp, lsn, caller_ip),
1639 __field(xfs_lsn_t, lsn)
1644 __entry->lsn = lsn;
[all...]
H A Dxfs_buf_item.c791 xfs_lsn_t lsn) in xfs_buf_item_committed() argument
799 return lsn; in xfs_buf_item_committed()
H A Dxfs_log_cil.c922 * Push into AIL immediately, rechecking the lsn once in xlog_cil_ail_insert()
1041 xfs_lsn_t lsn = be64_to_cpu(iclog->ic_header->h_lsn); in xlog_cil_set_ctx_write_state() local
1049 * the commit lsn. If we use the commit record lsn then we can in xlog_cil_set_ctx_write_state()
1053 ctx->start_lsn = lsn; in xlog_cil_set_ctx_write_state()
1095 ctx->commit_lsn = lsn; in xlog_cil_set_ctx_write_state()
1546 * iclog header lsn and compare it to the commit lsn to determine if we in xlog_cil_push_work()
1908 * We return the current commit lsn to allow the callers to determine if a
/linux/fs/ntfs3/
H A Dfslog.c264 __le64 last_end_lsn; // 0x08: lsn for the last log record which ends on the page,
398 struct LFS_RECORD_HDR *lrh; // Log record header of the current lsn.
413 /* Find the oldest lsn from active clients. */ in oldest_client_lsn()
419 u64 lsn = le64_to_cpu(cr->oldest_lsn); in oldest_client_lsn()
421 /* Ignore this block if it's oldest lsn is 0. */ in oldest_client_lsn()
422 if (lsn && lsn < *oldest_lsn) in oldest_client_lsn()
423 *oldest_lsn = lsn; in oldest_client_lsn()
1119 static inline u32 lsn_to_vbo(struct ntfs_log *log, const u64 lsn) in lsn_to_vbo()
1121 u32 vbo = (lsn << lo in lsn_to_vbo()
417 u64 lsn = le64_to_cpu(cr->oldest_lsn); oldest_client_lsn() local
1117 lsn_to_vbo(struct ntfs_log * log,const u64 lsn) lsn_to_vbo() argument
1131 lsn_to_page_off(struct ntfs_log * log,u64 lsn) lsn_to_page_off() argument
1141 is_lsn_in_file(struct ntfs_log * log,u64 lsn) is_lsn_in_file() argument
1157 base_lsn(struct ntfs_log * log,const struct RECORD_PAGE_HDR * hdr,u64 lsn) base_lsn() argument
1174 verify_client_lsn(struct ntfs_log * log,const struct CLIENT_REC * client,u64 lsn) verify_client_lsn() argument
1461 final_log_off(struct ntfs_log * log,u64 lsn,u32 data_len) final_log_off() argument
1503 next_log_lsn(struct ntfs_log * log,const struct LFS_RECORD_HDR * rh,u64 * lsn) next_log_lsn() argument
1608 u64 lsn = le64_to_cpu(rhdr->lsn); check_subseq_log_page() local
2293 u64 lsn = le64_to_cpu(rh->this_lsn); read_log_rec_buf() local
2366 read_rst_area(struct ntfs_log * log,struct NTFS_RESTART ** rst_,u64 * lsn) read_rst_area() argument
2431 find_log_rec(struct ntfs_log * log,u64 lsn,struct lcb * lcb) find_log_rec() argument
2498 read_log_rec_lcb(struct ntfs_log * log,u64 lsn,u32 ctx_mode,struct lcb ** lcb_) read_log_rec_lcb() argument
2545 find_client_next_lsn(struct ntfs_log * log,struct lcb * lcb,u64 * lsn) find_client_next_lsn() argument
2622 read_next_log_rec(struct ntfs_log * log,struct lcb * lcb,u64 * lsn) read_next_log_rec() argument
2883 u64 lsn; check_lsn() local
[all...]
H A Dntfs.h254 __le64 lsn; // 0x08: Log file sequence number, member
/linux/drivers/hwmon/
H A Dsch56xx-common.c230 int msb, lsn; in sch56xx_read_virtual_reg12()
237 lsn = sch56xx_read_virtual_reg(addr, lsn_reg); in sch56xx_read_virtual_reg12()
238 if (lsn < 0) in sch56xx_read_virtual_reg12()
239 return lsn; in sch56xx_read_virtual_reg12()
242 return (msb << 4) | (lsn >> 4); in sch56xx_read_virtual_reg12()
244 return (msb << 4) | (lsn & 0x0f); in sch56xx_read_virtual_reg12()
229 int msb, lsn; sch56xx_read_virtual_reg12() local
/linux/fs/xfs/libxfs/
H A Dxfs_log_format.h52 #define CYCLE_LSN(lsn) ((uint)((lsn)>>32)) argument
53 #define BLOCK_LSN(lsn) ((uint)(lsn)) argument
69 #define CYCLE_LSN_DISK(lsn) (((__be32 *)&(lsn))[0]) argument
H A Dxfs_log_recover.h60 struct xlog_recover_item *item, xfs_lsn_t lsn);
170 xfs_lsn_t lsn, const struct xfs_defer_op_type *ops);
H A Dxfs_inode_buf.c322 xfs_lsn_t lsn) in xfs_inode_to_disk()
360 to->di_lsn = cpu_to_be64(lsn); in xfs_inode_to_disk()
325 xfs_inode_to_disk(struct xfs_inode * ip,struct xfs_dinode * to,xfs_lsn_t lsn) xfs_inode_to_disk() argument
H A Dxfs_dir2_data.c327 if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr3->lsn))) in xfs_dir3_data_verify()
398 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify()
/linux/fs/ntfs/
H A Dlogfile.c300 * @lsn: [OUT] set to the current logfile lsn on success
313 * Simillarly, if @lsn is not NULL, on success *@lsn will be set to the current
314 * logfile lsn according to this restart page. On failure, *@lsn is undefined.
323 s64 *lsn) in ntfs_check_and_load_restart_page() argument
420 if (lsn) { in ntfs_check_and_load_restart_page()
422 *lsn = le64_to_cpu(ra->current_lsn); in ntfs_check_and_load_restart_page()
424 *lsn in ntfs_check_and_load_restart_page()
[all...]
/linux/arch/s390/include/asm/
H A Dchpid.h14 u8 lsn; member
/linux/fs/jfs/
H A Djfs_metapage.h16 int lsn; member
H A Djfs_txnmgr.h30 s32 lsn; /* recovery lsn */ member
/linux/Documentation/filesystems/xfs/
H A Dxfs-self-describing-metadata.rst200 __be64 lsn; /* last modification in log, not logged */
319 hdr->lsn = cpu_to_be64(bip->bli_item.li_lsn);

12