Lines Matching +full:ext +full:- +full:32 +full:k
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
13 * On-disk Log Format definitions.
15 * This file contains all the on-disk format definitions used within the log. It
30 #define XLOG_MIN_RECORD_BSIZE (16*1024) /* eventually 32k */
31 #define XLOG_BIG_RECORD_BSIZE (32*1024) /* 32k buffers */
33 #define XLOG_HEADER_CYCLE_SIZE (32*1024) /* cycle data in header */
35 #define XLOG_BIG_RECORD_BSHIFT 15 /* 32k == 1 << 15 */
36 #define XLOG_MAX_RECORD_BSHIFT 18 /* 256k == 1 << 18 */
44 BTOBB(1 << (xfs_has_logv2(log->l_mp) ? \
47 BTOBB(XLOG_MAX_ICLOGS << (xfs_has_logv2(log->l_mp) ? \
51 #define CYCLE_LSN(lsn) ((uint)((lsn)>>32))
54 /* this is used in a spot where we might otherwise double-endian-flip */
59 return ((xfs_lsn_t)cycle << 32) | block; in xlog_assign_lsn()
80 * The unmount record used to have a string "Unmount filesystem--" in the
125 * the remainder of the current active in-core log, it is split up into
143 __u16 oh_res2; /* 32 bit align : 2 b */
163 __be32 h_len; /* len in bytes; should be 64-bit aligned: 4 */
182 * Quite misnamed, because this union lays out the actual on-disk log buffer.
190 /* not an on-disk structure, but needed by log recovery in userspace */
219 * The only type valid for th_type in CIL-enabled file system logs:
229 #define XFS_LI_INODE 0x123b /* aligned ino chunks, var-size ibufs */
261 * log. The size of the inline data/extents/b-tree root to be logged
269 uint16_t ilf_asize; /* size of attr d/ext/root */
270 uint16_t ilf_dsize; /* size of data/ext/root */
283 * Old 32 bit systems will log in this format without the 64 bit
291 uint16_t ilf_asize; /* size of attr d/ext/root */
292 uint16_t ilf_dsize; /* size of data/ext/root */
323 * in the ilf_fields of the inode_log_format, but is purely store in-memory in
363 * Incore version of the on-disk inode core structures. We log this directly
408 /* di_next_unlinked is the only non-core field in the old dinode */
417 * of the current on-disk LSN. It should never be used for recovery
418 * sequencing, nor should it be recovered into the on-disk inode at all.
479 * int). Some 64-bit compilers will insert padding at the end of the struct to
480 * ensure 64-bit alignment of blf_blkno, but 32-bit ones will not. Therefore,
482 * keep the structure size consistent between 32-bit and 64-bit platforms.
507 #define XFS_BLFT_MASK (((1 << XFS_BLFT_BITS) - 1) << XFS_BLFT_SHIFT)
538 blf->blf_flags &= ~XFS_BLFT_MASK; in xfs_blft_to_flags()
539 blf->blf_flags |= ((type << XFS_BLFT_SHIFT) & XFS_BLFT_MASK); in xfs_blft_to_flags()
545 return (blf->blf_flags & XFS_BLFT_MASK) >> XFS_BLFT_SHIFT; in xfs_blft_from_flags()
557 * Since an xfs_extent_t has types (start:64, len: 32)
558 * there are different alignments on 32 bit and 64 bit kernels.
795 * 32 bits : log_recovery code assumes that.
800 xfs_dqid_t qlf_id; /* usr/grp/proj id : 32 bits */
809 * 32 bits : log_recovery code assumes that.
858 * in 32 bits. Also in host order (ugh) so they have to be 32 bit aligned so