Lines Matching +full:7 +full:- +full:segment
1 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
3 * nilfs2_ondisk.h - NILFS2 on-disk structures
5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
17 * Laboratoire MASI - Institut Blaise Pascal
34 #define NILFS_INODE_BMAP_SIZE 7
37 * struct nilfs_inode - structure of an inode on disk
76 * struct nilfs_super_root - structure of super root
80 * @sr_nongc_ctime: write time of the last segment not for cleaner operation
83 * @sr_sufile: segment usage file inode
96 ((unsigned long)&((struct nilfs_super_root *)0)->sr_dat + \
109 * File system states (sbp->s_state, nilfs->ns_mount_state)
116 * Mount flags (sbi->s_mount_opt)
124 * Apply strict in-order
129 * mount-time recovery
135 * struct nilfs_super_block - structure of super block on disk
159 /*30*/ __le32 s_blocks_per_segment; /* number of blocks per full segment */
183 __le32 s_first_ino; /* First non-reserved inode */
188 __le16 s_segment_usage_size; /* Size of a segment usage */
190 /*98*/ __u8 s_uuid[16]; /* 128-bit uuid for volume */
193 /*F8*/ __le32 s_c_interval; /* Commit interval of segment */
196 * the segment construction
199 __le64 s_feature_compat_ro; /* Read-only compatible feature set */
208 /* Codes from 1 to 4 are reserved to keep compatibility with ext2 creator-OS */
230 * Bytes count of super_block for CRC-calculation
233 ((long)&((struct nilfs_super_block *)0)->s_reserved)
241 #define NILFS_SUFILE_INO 5 /* segment usage file */
243 #define NILFS_ATIME_INO 7 /* Atime file (reserved) */
252 * a full segment
256 * a partial segment
274 #define NILFS_SB2_OFFSET_BYTES(devsize) ((((devsize) >> 12) - 1) << 12)
331 #define NILFS_DIR_ROUND (NILFS_DIR_PAD - 1)
334 #define NILFS_MAX_REC_LEN ((1 << 16) - 1)
337 * struct nilfs_finfo - file information
351 * struct nilfs_binfo_v - information on a data block (except DAT)
361 * struct nilfs_binfo_dat - information on a DAT node block
369 __u8 bi_pad[7];
383 * struct nilfs_segment_summary - segment summary header
385 * @ss_sumsum: checksum of segment summary
391 * @ss_next: next segment
394 * @ss_sumbytes: total size of segment summary in bytes
415 #define NILFS_SEGSUM_MAGIC 0x1eaffa11 /* segment summary magic number */
418 * Segment summary flags
420 #define NILFS_SS_LOGBGN 0x0001 /* begins a logical segment */
421 #define NILFS_SS_LOGEND 0x0002 /* ends a logical segment */
424 #define NILFS_SS_GC 0x0010 /* segment written for cleaner operation */
427 * struct nilfs_btree_node - header of B-tree node block
449 * struct nilfs_direct_node - header of built-in bmap array
455 __u8 pad[7];
459 * struct nilfs_palloc_group_desc - block group descriptor
467 * struct nilfs_dat_entry - disk address translation entry
483 * struct nilfs_snapshot_list - snapshot list
493 * struct nilfs_checkpoint - checkpoint structure
536 cp->cp_flags = __cpu_to_le32(__le32_to_cpu(cp->cp_flags) | \
542 cp->cp_flags = __cpu_to_le32(__le32_to_cpu(cp->cp_flags) & \
548 return !!(__le32_to_cpu(cp->cp_flags) & \
557 * struct nilfs_cpfile_header - checkpoint file header
570 sizeof(struct nilfs_checkpoint) - 1) / \
574 * struct nilfs_segment_usage - segment usage
576 * @su_nblocks: number of blocks in segment
587 /* segment usage flag */
598 su->su_flags = __cpu_to_le32(__le32_to_cpu(su->su_flags) | \
604 su->su_flags = \
605 __cpu_to_le32(__le32_to_cpu(su->su_flags) & \
611 return !!(__le32_to_cpu(su->su_flags) & \
622 su->su_lastmod = __cpu_to_le64(0); in NILFS_SEGMENT_USAGE_FNS()
623 su->su_nblocks = __cpu_to_le32(0); in NILFS_SEGMENT_USAGE_FNS()
624 su->su_flags = __cpu_to_le32(0); in NILFS_SEGMENT_USAGE_FNS()
630 return !__le32_to_cpu(su->su_flags); in nilfs_segment_usage_clean()
634 * struct nilfs_sufile_header - segment usage file header
637 * @sh_last_alloc: last allocated segment number
648 sizeof(struct nilfs_segment_usage) - 1) / \