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 */
37 #define XLOG_BTOLSUNIT(log, b) (((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \
38 (log)->l_mp->m_sb.sb_logsunit)
39 #define XLOG_LSUNITTOB(log, su) ((su) * (log)->l_mp->m_sb.sb_logsunit)
47 BTOBB(1 << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \
50 BTOBB(XLOG_MAX_ICLOGS << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \
54 #define CYCLE_LSN(lsn) ((uint)((lsn)>>32))
57 /* this is used in a spot where we might otherwise double-endian-flip */
62 return ((xfs_lsn_t)cycle << 32) | block; in xlog_assign_lsn()
83 * The unmount record used to have a string "Unmount filesystem--" in the
128 * the remainder of the current active in-core log, it is split up into
146 __u16 oh_res2; /* 32 bit align : 2 b */
166 __be32 h_len; /* len in bytes; should be 64-bit aligned: 4 */
185 * Quite misnamed, because this union lays out the actual on-disk log buffer.
193 /* not an on-disk structure, but needed by log recovery in userspace */
222 * The only type valid for th_type in CIL-enabled file system logs:
232 #define XFS_LI_INODE 0x123b /* aligned ino chunks, var-size ibufs */
264 * log. The size of the inline data/extents/b-tree root to be logged
272 uint16_t ilf_asize; /* size of attr d/ext/root */
273 uint16_t ilf_dsize; /* size of data/ext/root */
286 * Old 32 bit systems will log in this format without the 64 bit
294 uint16_t ilf_asize; /* size of attr d/ext/root */
295 uint16_t ilf_dsize; /* size of data/ext/root */
326 * in the ilf_fields of the inode_log_format, but is purely store in-memory in
366 * Incore version of the on-disk inode core structures. We log this directly
411 /* di_next_unlinked is the only non-core field in the old dinode */
431 (xfs_sb_version_has_v3inode(&(mp)->m_sb) ? \
473 * int). Some 64-bit compilers will insert padding at the end of the struct to
474 * ensure 64-bit alignment of blf_blkno, but 32-bit ones will not. Therefore,
476 * keep the structure size consistent between 32-bit and 64-bit platforms.
501 #define XFS_BLFT_MASK (((1 << XFS_BLFT_BITS) - 1) << XFS_BLFT_SHIFT)
532 blf->blf_flags &= ~XFS_BLFT_MASK; in xfs_blft_to_flags()
533 blf->blf_flags |= ((type << XFS_BLFT_SHIFT) & XFS_BLFT_MASK); in xfs_blft_to_flags()
539 return (blf->blf_flags & XFS_BLFT_MASK) >> XFS_BLFT_SHIFT; in xfs_blft_from_flags()
551 * Since an xfs_extent_t has types (start:64, len: 32)
552 * there are different alignments on 32 bit and 64 bit kernels.
789 * 32 bits : log_recovery code assumes that.
794 xfs_dqid_t qlf_id; /* usr/grp/proj id : 32 bits */
803 * 32 bits : log_recovery code assumes that.
852 * in 32 bits. Also in host order (ugh) so they have to be 32 bit aligned so