/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_trans_ail.c | 41 xfs_lsn_t lsn; variable 58 lsn = lip->li_lsn; 61 (prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0) && 62 (next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0)) 67 ASSERT(prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0); 68 ASSERT(next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0); 109 * We need the AIL lock in order to get a coherent read of the lsn of the last 127 xfs_lsn_t lsn; in xfs_ail_min_lsn() local 130 lsn = __xfs_ail_min_lsn(ailp); in xfs_ail_min_lsn() 133 return lsn; in xfs_ail_min_lsn() 143 xfs_lsn_t lsn = 0; xfs_ail_max_lsn() local 230 xfs_trans_ail_cursor_first( struct xfs_ail *ailp, struct xfs_ail_cursor *cur, xfs_lsn_t lsn) xfs_trans_ail_cursor_first() argument 257 __xfs_trans_ail_cursor_last( struct xfs_ail *ailp, xfs_lsn_t lsn) __xfs_trans_ail_cursor_last() argument 277 xfs_trans_ail_cursor_last( struct xfs_ail *ailp, struct xfs_ail_cursor *cur, xfs_lsn_t lsn) xfs_trans_ail_cursor_last() argument 294 xfs_ail_splice( struct xfs_ail *ailp, struct xfs_ail_cursor *cur, struct list_head *list, xfs_lsn_t lsn) xfs_ail_splice() argument 423 xfs_lsn_t lsn; xfsaild_push() local 820 xfs_trans_ail_insert( struct xfs_ail *ailp, struct xfs_log_item *lip, xfs_lsn_t lsn) xfs_trans_ail_insert() argument 842 xfs_lsn_t lsn = lip->li_lsn; xfs_ail_delete_one() local [all...] |
H A D | xfs_buf_item_recover.c | 708 xfs_lsn_t lsn = -1; in xlog_recover_get_buf_lsn() local 728 lsn = be64_to_cpu(btb->bb_u.s.bb_lsn); in xlog_recover_get_buf_lsn() 736 lsn = be64_to_cpu(btb->bb_u.l.bb_lsn); in xlog_recover_get_buf_lsn() 741 lsn = be64_to_cpu(((struct xfs_agf *)blk)->agf_lsn); in xlog_recover_get_buf_lsn() 745 lsn = be64_to_cpu(((struct xfs_agfl *)blk)->agfl_lsn); in xlog_recover_get_buf_lsn() 749 lsn = be64_to_cpu(((struct xfs_agi *)blk)->agi_lsn); in xlog_recover_get_buf_lsn() 753 lsn = be64_to_cpu(((struct xfs_dsymlink_hdr *)blk)->sl_lsn); in xlog_recover_get_buf_lsn() 759 lsn = be64_to_cpu(((struct xfs_dir3_blk_hdr *)blk)->lsn); in xlog_recover_get_buf_lsn() 779 lsn in xlog_recover_get_buf_lsn() 876 xfs_lsn_t lsn; xlog_recover_buf_commit_pass2() local [all...] |
H A D | xfs_log_priv.h | 235 xfs_lsn_t commit_lsn; /* chkpt commit record lsn */ 379 * The reservation head lsn is not made up of a cycle number and block number. 423 /* lsn of last LR on disk */ 425 /* lsn of 1st LR with unflushed * buffers */ 437 /* log recovery lsn tracking (for buffer submission */ 484 struct xlog_in_core **iclog, xfs_lsn_t *lsn); 496 xlog_crack_atomic_lsn(atomic64_t *lsn, uint *cycle, uint *block) in xlog_crack_atomic_lsn() argument 498 xfs_lsn_t val = atomic64_read(lsn); in xlog_crack_atomic_lsn() 508 xlog_assign_atomic_lsn(atomic64_t *lsn, uint cycle, uint block) in xlog_assign_atomic_lsn() argument 510 atomic64_set(lsn, xlog_assign_ls in xlog_assign_atomic_lsn() 591 xlog_valid_lsn( struct xlog *log, xfs_lsn_t lsn) xlog_valid_lsn() argument [all...] |
H A D | xfs_trans_priv.h | 72 xfs_lsn_t lsn) __releases(ailp->ail_lock); 89 xfs_lsn_t lsn) __releases(ailp->ail_lock) 91 xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn); 95 xfs_lsn_t lsn); 110 xfs_lsn_t lsn); 113 xfs_lsn_t lsn);
|
H A D | xfs_dquot_item_recover.c | 137 * than the lsn of the transaction we are replaying. in xlog_recover_dquot_commit_pass2() 141 xfs_lsn_t lsn = be64_to_cpu(dqb->dd_lsn); in xlog_recover_dquot_commit_pass2() local 143 if (lsn && lsn != -1 && XFS_LSN_CMP(lsn, current_lsn) >= 0) { in xlog_recover_dquot_commit_pass2()
|
H A D | xfs_inode_item.c | 338 xfs_lsn_t lsn) in xfs_inode_to_log_dinode() 380 to->di_lsn = lsn; in xfs_inode_to_log_dinode() 583 * at the given lsn. Since we always re-log all dirty data in an inode, the 585 * simply return the given lsn. 605 xfs_lsn_t lsn) in xfs_inode_item_committed() 614 return lsn; in xfs_inode_item_committed() 678 * flush. Thus, we only bother if the inode's lsn has not changed. 691 xfs_lsn_t lsn; in xfs_iflush_ail_updates() local 697 lsn = xfs_ail_delete_one(ailp, lip); in xfs_iflush_ail_updates() 698 if (!tail_lsn && lsn) in xfs_iflush_ail_updates() 335 xfs_inode_to_log_dinode( struct xfs_inode *ip, struct xfs_log_dinode *to, xfs_lsn_t lsn) xfs_inode_to_log_dinode() argument 603 xfs_inode_item_committed( struct xfs_log_item *lip, xfs_lsn_t lsn) xfs_inode_item_committed() argument [all...] |
H A D | xfs_inode_item_recover.c | 149 xfs_lsn_t lsn) in xfs_log_dinode_to_disk() 186 to->di_lsn = cpu_to_be64(lsn); in xfs_log_dinode_to_disk() 266 * inode's LSN is older than the lsn of the transaction we are in xlog_recover_inode_commit_pass2() 281 xfs_lsn_t lsn = be64_to_cpu(dip->di_lsn); in xlog_recover_inode_commit_pass2() local 283 if (lsn && lsn != -1 && XFS_LSN_CMP(lsn, current_lsn) > 0) { in xlog_recover_inode_commit_pass2() 146 xfs_log_dinode_to_disk( struct xfs_log_dinode *from, struct xfs_dinode *to, xfs_lsn_t lsn) xfs_log_dinode_to_disk() argument
|
H A D | xfs_log.c | 820 xfs_lsn_t *lsn, in xlog_write_unmount_record() 838 return xlog_write(log, &vec, ticket, lsn, NULL, flags, false); in xlog_write_unmount_record() 852 xfs_lsn_t lsn; in xlog_unmount_write() local 860 error = xlog_write_unmount_record(log, tic, &lsn, flags); in xlog_unmount_write() 1462 * ticket to close off a running log write. Return the lsn of the commit record. 1469 xfs_lsn_t *lsn) in xlog_commit_record() 1485 error = xlog_write(log, &vec, ticket, lsn, iclog, XLOG_COMMIT_TRANS, in xlog_commit_record() 1538 * Don't pass in an lsn greater than the lsn of the last in xlog_grant_push_threshold() 1539 * log record known to be on disk. Use a snapshot of the last sync lsn in xlog_grant_push_threshold() 817 xlog_write_unmount_record( struct xlog *log, struct xlog_ticket *ticket, xfs_lsn_t *lsn, uint flags) xlog_write_unmount_record() argument 1465 xlog_commit_record( struct xlog *log, struct xlog_ticket *ticket, struct xlog_in_core **iclog, xfs_lsn_t *lsn) xlog_commit_record() argument 2603 xfs_lsn_t lowest_lsn = 0, lsn; xlog_get_lowest_lsn() local 3146 xfs_lsn_t lsn; xfs_log_force() local 3216 xlog_force_lsn( struct xlog *log, xfs_lsn_t lsn, uint flags, int *log_flushed, bool already_slept) xlog_force_lsn() argument 3299 xfs_lsn_t lsn; xfs_log_force_seq() local 3812 xfs_log_check_lsn( struct xfs_mount *mp, xfs_lsn_t lsn) xfs_log_check_lsn() argument [all...] |
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_trans_ail.c | 42 xfs_lsn_t lsn; variable 59 lsn = lip->li_lsn; 62 (prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0) && 63 (next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0)) 68 ASSERT(prev_lsn == NULLCOMMITLSN || XFS_LSN_CMP(prev_lsn, lsn) <= 0); 69 ASSERT(next_lsn == NULLCOMMITLSN || XFS_LSN_CMP(next_lsn, lsn) >= 0); 110 * We need the AIL lock in order to get a coherent read of the lsn of the last 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; xfs_ail_max_lsn() local 231 xfs_trans_ail_cursor_first( struct xfs_ail *ailp, struct xfs_ail_cursor *cur, xfs_lsn_t lsn) xfs_trans_ail_cursor_first() argument 258 __xfs_trans_ail_cursor_last( struct xfs_ail *ailp, xfs_lsn_t lsn) __xfs_trans_ail_cursor_last() argument 278 xfs_trans_ail_cursor_last( struct xfs_ail *ailp, struct xfs_ail_cursor *cur, xfs_lsn_t lsn) xfs_trans_ail_cursor_last() argument 295 xfs_ail_splice( struct xfs_ail *ailp, struct xfs_ail_cursor *cur, struct list_head *list, xfs_lsn_t lsn) xfs_ail_splice() argument 424 xfs_lsn_t lsn; xfsaild_push() local 837 xfs_trans_ail_insert( struct xfs_ail *ailp, struct xfs_log_item *lip, xfs_lsn_t lsn) xfs_trans_ail_insert() argument 859 xfs_lsn_t lsn = lip->li_lsn; xfs_ail_delete_one() local [all...] |
H A D | xfs_buf_item_recover.c | 718 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 in xlog_recover_get_buf_lsn() 895 xfs_lsn_t lsn; xlog_recover_buf_commit_pass2() local [all...] |
H A D | xfs_log_priv.h | 224 xfs_lsn_t commit_lsn; /* chkpt commit record lsn */ 394 * The reservation head lsn is not made up of a cycle number and block number. 438 /* lsn of last LR on disk */ 440 /* lsn of 1st LR with unflushed * buffers */ 448 /* log recovery lsn tracking (for buffer submission */ 533 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() 634 xlog_valid_lsn( struct xlog *log, xfs_lsn_t lsn) xlog_valid_lsn() argument [all...] |
H A D | xfs_trans_priv.h | 74 xfs_lsn_t lsn) __releases(ailp->ail_lock); 91 xfs_lsn_t lsn) __releases(ailp->ail_lock) 93 xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn); 97 xfs_lsn_t lsn); 112 xfs_lsn_t lsn); 115 xfs_lsn_t lsn);
|
H A D | xfs_dquot_item_recover.c | 140 * than the lsn of the transaction we are replaying. in xlog_recover_dquot_commit_pass2() 143 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 D | xfs_inode_item_recover.c | 172 xfs_lsn_t lsn) in xfs_log_dinode_to_disk() 206 to->di_lsn = cpu_to_be64(lsn); in xfs_log_dinode_to_disk() 341 * inode's LSN is older than the lsn of the transaction we are in xlog_recover_inode_commit_pass2() 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() 169 xfs_log_dinode_to_disk( struct xfs_log_dinode *from, struct xfs_dinode *to, xfs_lsn_t lsn) xfs_log_dinode_to_disk() argument
|
H A D | xfs_inode_item.c | 517 xfs_lsn_t lsn) in xfs_inode_to_log_dinode() 555 to->di_lsn = lsn; in xfs_inode_to_log_dinode() 768 * at the given lsn. Since we always re-log all dirty data in an inode, the 770 * simply return the given lsn. 790 xfs_lsn_t lsn) in xfs_inode_item_committed() 799 return lsn; in xfs_inode_item_committed() 865 * flush. Thus, we only bother if the inode's lsn has not changed. 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() 514 xfs_inode_to_log_dinode( struct xfs_inode *ip, struct xfs_log_dinode *to, xfs_lsn_t lsn) xfs_inode_to_log_dinode() argument 788 xfs_inode_item_committed( struct xfs_log_item *lip, xfs_lsn_t lsn) xfs_inode_item_committed() argument [all...] |
H A D | xfs_log.c | 560 * Hence if NEED_FUA is set and the current iclog tail lsn is empty, write the 563 * the checkpoint commit that wrote the initial tail lsn value. The tail lsn in 565 * always capture the tail lsn on the iclog on the first NEED_FUA release 1720 * Don't pass in an lsn greater than the lsn of the last in xlog_grant_push_threshold() 1721 * log record known to be on disk. Use a snapshot of the last sync lsn in xlog_grant_push_threshold() 1734 * policy which pushes on an lsn which is further along in the log once we 2446 * B. If this is first write, save away start lsn 2666 xfs_lsn_t lowest_lsn = 0, lsn; in xlog_get_lowest_lsn() local 3135 xfs_lsn_t lsn = be64_to_cpu(iclog->ic_header.h_lsn); xlog_force_and_check_iclog() local 3265 xlog_force_lsn( struct xlog *log, xfs_lsn_t lsn, uint flags, int *log_flushed, bool already_slept) xlog_force_lsn() argument 3365 xfs_lsn_t lsn; xfs_log_force_seq() local 3834 xfs_log_check_lsn( struct xfs_mount *mp, xfs_lsn_t lsn) xfs_log_check_lsn() argument [all...] |
/kernel/linux/linux-5.10/fs/jfs/ |
H A D | jfs_logmgr.c | 45 * lsn - 64-bit monotonically increasing integer vs 220 * RETURN: lsn - offset to the next log record to write (end-of-log); 228 int lsn; in lmLog() local 248 * initialize/update page/transaction recovery lsn in lmLog() 250 lsn = log->lsn; in lmLog() 255 * initialize page lsn if first log write of the page in lmLog() 257 if (mp->lsn == 0) { in lmLog() 259 mp->lsn = lsn; in lmLog() 347 int lsn = 0; /* end-of-log address */ lmWriteRecord() local 937 int lsn; lmLogSync() local 1256 int lsn = 0; lmLogInit() local 1643 int lsn; lmLogShutdown() local [all...] |
H A D | jfs_logmgr.h | 392 int lsn; /* 4: end-of-log */ member 469 s32 lsn; /* log sequence number */ member 482 /* compute the difference in bytes of lsn from sync point */ 483 #define logdiff(diff, lsn, log)\ 485 diff = (lsn) - (log)->syncpt;\
|
/kernel/linux/linux-6.6/fs/jfs/ |
H A D | jfs_logmgr.c | 45 * lsn - 64-bit monotonically increasing integer vs 220 * RETURN: lsn - offset to the next log record to write (end-of-log); 228 int lsn; in lmLog() local 248 * initialize/update page/transaction recovery lsn in lmLog() 250 lsn = log->lsn; in lmLog() 255 * initialize page lsn if first log write of the page in lmLog() 257 if (mp->lsn == 0) { in lmLog() 259 mp->lsn = lsn; in lmLog() 347 int lsn = 0; /* end-of-log address */ lmWriteRecord() local 929 int lsn; lmLogSync() local 1248 int lsn = 0; lmLogInit() local 1635 int lsn; lmLogShutdown() local [all...] |
H A D | jfs_logmgr.h | 392 int lsn; /* 4: end-of-log */ member 469 s32 lsn; /* log sequence number */ member 482 /* compute the difference in bytes of lsn from sync point */ 483 #define logdiff(diff, lsn, log)\ 485 diff = (lsn) - (log)->syncpt;\
|
/kernel/linux/linux-6.6/fs/ntfs3/ |
H A D | fslog.c | 262 __le64 last_end_lsn; // 0x08: lsn for the last log record which ends on the page, 396 struct LFS_RECORD_HDR *lrh; // Log record header of the current lsn. 411 /* Find the oldest lsn from active clients. */ 417 u64 lsn = le64_to_cpu(cr->oldest_lsn); in oldest_client_lsn() local 419 /* Ignore this block if it's oldest lsn is 0. */ in oldest_client_lsn() 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 << lo in lsn_to_vbo() 1074 lsn_to_page_off(struct ntfs_log *log, u64 lsn) lsn_to_page_off() argument 1084 is_lsn_in_file(struct ntfs_log *log, u64 lsn) is_lsn_in_file() argument 1099 base_lsn(struct ntfs_log *log, const struct RECORD_PAGE_HDR *hdr, u64 lsn) base_lsn() argument 1116 verify_client_lsn(struct ntfs_log *log, const struct CLIENT_REC *client, u64 lsn) verify_client_lsn() argument 1403 final_log_off(struct ntfs_log *log, u64 lsn, u32 data_len) final_log_off() argument 1444 next_log_lsn(struct ntfs_log *log, const struct LFS_RECORD_HDR *rh, u64 *lsn) next_log_lsn() argument 1550 u64 lsn = le64_to_cpu(rhdr->lsn); check_subseq_log_page() local 2235 u64 lsn = le64_to_cpu(rh->this_lsn); read_log_rec_buf() local 2299 read_rst_area(struct ntfs_log *log, struct NTFS_RESTART **rst_, u64 *lsn) read_rst_area() argument 2365 find_log_rec(struct ntfs_log *log, u64 lsn, struct lcb *lcb) find_log_rec() argument 2432 read_log_rec_lcb(struct ntfs_log *log, u64 lsn, u32 ctx_mode, struct lcb **lcb_) read_log_rec_lcb() argument 2479 find_client_next_lsn(struct ntfs_log *log, struct lcb *lcb, u64 *lsn) find_client_next_lsn() argument 2556 read_next_log_rec(struct ntfs_log *log, struct lcb *lcb, u64 *lsn) read_next_log_rec() argument 2796 u64 lsn; check_lsn() local [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | sch56xx-common.c | 223 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()
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_log_format.h | 53 /* get lsn fields */ 54 #define CYCLE_LSN(lsn) ((uint)((lsn)>>32)) 55 #define BLOCK_LSN(lsn) ((uint)(lsn)) 58 #define CYCLE_LSN_DISK(lsn) (((__be32 *)&(lsn))[0]) 167 __be64 h_lsn; /* lsn of this LR : 8 */ 168 __be64 h_tail_lsn; /* lsn of 1st LR w/ buffers not committed: 8 */
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_log_format.h | 50 /* get lsn fields */ 51 #define CYCLE_LSN(lsn) ((uint)((lsn)>>32)) 52 #define BLOCK_LSN(lsn) ((uint)(lsn)) 55 #define CYCLE_LSN_DISK(lsn) (((__be32 *)&(lsn))[0]) 168 __be64 h_lsn; /* lsn of this LR : 8 */ 169 __be64 h_tail_lsn; /* lsn of 1st LR w/ buffers not committed: 8 */
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | sch56xx-common.c | 223 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()
|