/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_sb.c | 39 struct xfs_sb *sbp) in xfs_sb_validate_v5_features() 42 if (sbp->sb_versionnum & ~XFS_SB_VERSION_OKBITS) in xfs_sb_validate_v5_features() 49 if (sbp->sb_features2 & ~(XFS_SB_VERSION2_OKBITS | in xfs_sb_validate_v5_features() 67 if ((sbp->sb_versionnum & V5_VERS_FLAGS) != V5_VERS_FLAGS) in xfs_sb_validate_v5_features() 69 if ((sbp->sb_features2 & V5_FEAT_FLAGS) != V5_FEAT_FLAGS) in xfs_sb_validate_v5_features() 80 struct xfs_sb *sbp) in xfs_sb_good_version() 87 if (xfs_sb_is_v5(sbp)) in xfs_sb_good_version() 88 return xfs_sb_validate_v5_features(sbp); in xfs_sb_good_version() 91 if (XFS_SB_VERSION_NUM(sbp) != XFS_SB_VERSION_4) in xfs_sb_good_version() 95 if ((sbp in xfs_sb_good_version() 38 xfs_sb_validate_v5_features( struct xfs_sb *sbp) xfs_sb_validate_v5_features() argument 79 xfs_sb_good_version( struct xfs_sb *sbp) xfs_sb_good_version() argument 111 xfs_sb_version_to_features( struct xfs_sb *sbp) xfs_sb_version_to_features() argument 183 xfs_validate_sb_read( struct xfs_mount *mp, struct xfs_sb *sbp) xfs_validate_sb_read() argument 231 xfs_validate_sb_write( struct xfs_mount *mp, struct xfs_buf *bp, struct xfs_sb *sbp) xfs_validate_sb_write() argument 306 xfs_validate_sb_common( struct xfs_mount *mp, struct xfs_buf *bp, struct xfs_sb *sbp) xfs_validate_sb_common() argument 553 xfs_sb_quota_from_disk(struct xfs_sb *sbp) xfs_sb_quota_from_disk() argument 964 xfs_sb_mount_common( struct xfs_mount *mp, struct xfs_sb *sbp) xfs_sb_mount_common() argument 1185 struct xfs_sb *sbp = &mp->m_sb; xfs_fs_geometry() local [all...] |
H A D | xfs_format.h | 280 #define XFS_SB_VERSION_NUM(sbp) ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) 282 static inline bool xfs_sb_is_v5(struct xfs_sb *sbp) in xfs_sb_is_v5() argument 284 return XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5; in xfs_sb_is_v5() 291 static inline bool xfs_sb_has_mismatched_features2(struct xfs_sb *sbp) in xfs_sb_has_mismatched_features2() argument 293 return sbp->sb_bad_features2 != sbp->sb_features2; in xfs_sb_has_mismatched_features2() 296 static inline bool xfs_sb_version_hasmorebits(struct xfs_sb *sbp) in xfs_sb_version_hasmorebits() argument 298 return xfs_sb_is_v5(sbp) || in xfs_sb_version_hasmorebits() 299 (sbp in xfs_sb_version_hasmorebits() 302 xfs_sb_version_addattr(struct xfs_sb *sbp) xfs_sb_version_addattr() argument 307 xfs_sb_version_addquota(struct xfs_sb *sbp) xfs_sb_version_addquota() argument 312 xfs_sb_version_addattr2(struct xfs_sb *sbp) xfs_sb_version_addattr2() argument 318 xfs_sb_version_addprojid32(struct xfs_sb *sbp) xfs_sb_version_addprojid32() argument 345 xfs_sb_has_compat_feature( struct xfs_sb *sbp, uint32_t feature) xfs_sb_has_compat_feature() argument 363 xfs_sb_has_ro_compat_feature( struct xfs_sb *sbp, uint32_t feature) xfs_sb_has_ro_compat_feature() argument 386 xfs_sb_has_incompat_feature( struct xfs_sb *sbp, uint32_t feature) xfs_sb_has_incompat_feature() argument 398 xfs_sb_has_incompat_log_feature( struct xfs_sb *sbp, uint32_t feature) xfs_sb_has_incompat_log_feature() argument 406 xfs_sb_remove_incompat_log_features( struct xfs_sb *sbp) xfs_sb_remove_incompat_log_features() argument 413 xfs_sb_add_incompat_log_features( struct xfs_sb *sbp, unsigned int features) xfs_sb_add_incompat_log_features() argument 420 xfs_sb_version_haslogxattrs(struct xfs_sb *sbp) xfs_sb_version_haslogxattrs() argument 427 xfs_is_quota_inode(struct xfs_sb *sbp, xfs_ino_t ino) xfs_is_quota_inode() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_sb.c | 98 struct xfs_sb *sbp) in xfs_validate_sb_read() 100 if (XFS_SB_VERSION_NUM(sbp) != XFS_SB_VERSION_5) in xfs_validate_sb_read() 107 if (xfs_sb_has_compat_feature(sbp, XFS_SB_FEAT_COMPAT_UNKNOWN)) { in xfs_validate_sb_read() 110 (sbp->sb_features_compat & XFS_SB_FEAT_COMPAT_UNKNOWN)); in xfs_validate_sb_read() 115 if (xfs_sb_has_ro_compat_feature(sbp, XFS_SB_FEAT_RO_COMPAT_UNKNOWN)) { in xfs_validate_sb_read() 118 (sbp->sb_features_ro_compat & in xfs_validate_sb_read() 129 if (xfs_sb_has_incompat_feature(sbp, XFS_SB_FEAT_INCOMPAT_UNKNOWN)) { in xfs_validate_sb_read() 132 (sbp->sb_features_incompat & in xfs_validate_sb_read() 147 struct xfs_sb *sbp) in xfs_validate_sb_write() 159 if (XFS_BUF_ADDR(bp) == XFS_SB_DADDR && !sbp in xfs_validate_sb_write() 96 xfs_validate_sb_read( struct xfs_mount *mp, struct xfs_sb *sbp) xfs_validate_sb_read() argument 144 xfs_validate_sb_write( struct xfs_mount *mp, struct xfs_buf *bp, struct xfs_sb *sbp) xfs_validate_sb_write() argument 218 xfs_validate_sb_common( struct xfs_mount *mp, struct xfs_buf *bp, struct xfs_sb *sbp) xfs_validate_sb_common() argument 431 xfs_sb_quota_from_disk(struct xfs_sb *sbp) xfs_sb_quota_from_disk() argument 835 xfs_sb_mount_common( struct xfs_mount *mp, struct xfs_sb *sbp) xfs_sb_mount_common() argument 889 xfs_sb_t *sbp = &mp->m_sb; xfs_initialize_perag_data() local 1114 xfs_fs_geometry( struct xfs_sb *sbp, struct xfs_fsop_geom *geo, int struct_version) xfs_fs_geometry() argument [all...] |
H A D | xfs_format.h | 281 #define XFS_SB_VERSION_NUM(sbp) ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) 286 static inline bool xfs_sb_good_v4_features(struct xfs_sb *sbp) in xfs_sb_good_v4_features() argument 288 if (!(sbp->sb_versionnum & XFS_SB_VERSION_DIRV2BIT)) in xfs_sb_good_v4_features() 290 if (!(sbp->sb_versionnum & XFS_SB_VERSION_EXTFLGBIT)) in xfs_sb_good_v4_features() 294 if ((sbp->sb_versionnum & ~XFS_SB_VERSION_OKBITS) || in xfs_sb_good_v4_features() 295 ((sbp->sb_versionnum & XFS_SB_VERSION_MOREBITSBIT) && in xfs_sb_good_v4_features() 296 (sbp->sb_features2 & ~XFS_SB_VERSION2_OKBITS))) in xfs_sb_good_v4_features() 302 static inline bool xfs_sb_good_version(struct xfs_sb *sbp) in xfs_sb_good_version() argument 304 if (XFS_SB_VERSION_NUM(sbp) in xfs_sb_good_version() 311 xfs_sb_version_hasrealtime(struct xfs_sb *sbp) xfs_sb_version_hasrealtime() argument 320 xfs_sb_has_mismatched_features2(struct xfs_sb *sbp) xfs_sb_has_mismatched_features2() argument 325 xfs_sb_version_hasattr(struct xfs_sb *sbp) xfs_sb_version_hasattr() argument 330 xfs_sb_version_addattr(struct xfs_sb *sbp) xfs_sb_version_addattr() argument 335 xfs_sb_version_hasquota(struct xfs_sb *sbp) xfs_sb_version_hasquota() argument 340 xfs_sb_version_addquota(struct xfs_sb *sbp) xfs_sb_version_addquota() argument 345 xfs_sb_version_hasalign(struct xfs_sb *sbp) xfs_sb_version_hasalign() argument 351 xfs_sb_version_hasdalign(struct xfs_sb *sbp) xfs_sb_version_hasdalign() argument 356 xfs_sb_version_haslogv2(struct xfs_sb *sbp) xfs_sb_version_haslogv2() argument 362 xfs_sb_version_hassector(struct xfs_sb *sbp) xfs_sb_version_hassector() argument 367 xfs_sb_version_hasasciici(struct xfs_sb *sbp) xfs_sb_version_hasasciici() argument 372 xfs_sb_version_hasmorebits(struct xfs_sb *sbp) xfs_sb_version_hasmorebits() argument 381 xfs_sb_version_haslazysbcount(struct xfs_sb *sbp) xfs_sb_version_haslazysbcount() argument 388 xfs_sb_version_hasattr2(struct xfs_sb *sbp) xfs_sb_version_hasattr2() argument 395 xfs_sb_version_addattr2(struct xfs_sb *sbp) xfs_sb_version_addattr2() argument 401 xfs_sb_version_removeattr2(struct xfs_sb *sbp) xfs_sb_version_removeattr2() argument 408 xfs_sb_version_hasprojid32bit(struct xfs_sb *sbp) xfs_sb_version_hasprojid32bit() argument 415 xfs_sb_version_addprojid32bit(struct xfs_sb *sbp) xfs_sb_version_addprojid32bit() argument 442 xfs_sb_has_compat_feature( struct xfs_sb *sbp, uint32_t feature) xfs_sb_has_compat_feature() argument 460 xfs_sb_has_ro_compat_feature( struct xfs_sb *sbp, uint32_t feature) xfs_sb_has_ro_compat_feature() argument 479 xfs_sb_has_incompat_feature( struct xfs_sb *sbp, uint32_t feature) xfs_sb_has_incompat_feature() argument 489 xfs_sb_has_incompat_log_feature( struct xfs_sb *sbp, uint32_t feature) xfs_sb_has_incompat_log_feature() argument 499 xfs_sb_version_hascrc(struct xfs_sb *sbp) xfs_sb_version_hascrc() argument 508 xfs_sb_version_has_v3inode(struct xfs_sb *sbp) xfs_sb_version_has_v3inode() argument 513 xfs_dinode_good_version(struct xfs_sb *sbp, uint8_t version) xfs_dinode_good_version() argument 521 xfs_sb_version_has_pquotino(struct xfs_sb *sbp) xfs_sb_version_has_pquotino() argument 526 xfs_sb_version_hasftype(struct xfs_sb *sbp) xfs_sb_version_hasftype() argument 534 xfs_sb_version_hasfinobt(xfs_sb_t *sbp) xfs_sb_version_hasfinobt() argument 540 xfs_sb_version_hassparseinodes(struct xfs_sb *sbp) xfs_sb_version_hassparseinodes() argument 552 xfs_sb_version_hasmetauuid(struct xfs_sb *sbp) xfs_sb_version_hasmetauuid() argument 558 xfs_sb_version_hasrmapbt(struct xfs_sb *sbp) xfs_sb_version_hasrmapbt() argument 564 xfs_sb_version_hasreflink(struct xfs_sb *sbp) xfs_sb_version_hasreflink() argument 570 xfs_sb_version_hasbigtime(struct xfs_sb *sbp) xfs_sb_version_hasbigtime() argument 581 xfs_sb_version_hasinobtcounts(struct xfs_sb *sbp) xfs_sb_version_hasinobtcounts() argument 592 xfs_is_quota_inode(struct xfs_sb *sbp, xfs_ino_t ino) xfs_is_quota_inode() argument [all...] |
/kernel/linux/linux-5.10/arch/mips/sibyte/common/ |
H A D | sb_tbprof.c | 70 static struct sbprof_tb sbp; variable 125 #define TB_FULL (sbp.next_tb_sample == MAX_TB_SAMPLES) 186 sbp.tb_armed = 1; in arm_tb() 195 if (sbp.next_tb_sample < MAX_TB_SAMPLES) { in sbprof_tb_intr() 197 u64 *p = sbp.sbprof_tbbuf[sbp.next_tb_sample++]; in sbprof_tb_intr() 219 if (!sbp.tb_enable) { in sbprof_tb_intr() 223 sbp.tb_armed = 0; in sbprof_tb_intr() 224 wake_up_interruptible(&sbp.tb_sync); in sbprof_tb_intr() 233 sbp in sbprof_tb_intr() [all...] |
/kernel/linux/linux-6.6/arch/mips/sibyte/common/ |
H A D | sb_tbprof.c | 70 static struct sbprof_tb sbp; variable 125 #define TB_FULL (sbp.next_tb_sample == MAX_TB_SAMPLES) 186 sbp.tb_armed = 1; in arm_tb() 195 if (sbp.next_tb_sample < MAX_TB_SAMPLES) { in sbprof_tb_intr() 197 u64 *p = sbp.sbprof_tbbuf[sbp.next_tb_sample++]; in sbprof_tb_intr() 219 if (!sbp.tb_enable) { in sbprof_tb_intr() 223 sbp.tb_armed = 0; in sbprof_tb_intr() 224 wake_up_interruptible(&sbp.tb_sync); in sbprof_tb_intr() 233 sbp in sbprof_tb_intr() [all...] |
/kernel/linux/linux-5.10/fs/ufs/ |
H A D | swab.h | 27 fs64_to_cpu(struct super_block *sbp, __fs64 n) in fs64_to_cpu() argument 29 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs64_to_cpu() 36 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() argument 38 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs64() 45 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() argument 47 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_to_cpu() 54 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() argument 56 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs32() 63 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() argument 65 if (UFS_SB(sbp) in fs32_add() 72 fs32_sub(struct super_block *sbp, __fs32 *n, int d) fs32_sub() argument 81 fs16_to_cpu(struct super_block *sbp, __fs16 n) fs16_to_cpu() argument 90 cpu_to_fs16(struct super_block *sbp, u16 n) cpu_to_fs16() argument 99 fs16_add(struct super_block *sbp, __fs16 *n, int d) fs16_add() argument 108 fs16_sub(struct super_block *sbp, __fs16 *n, int d) fs16_sub() argument [all...] |
/kernel/linux/linux-6.6/fs/ufs/ |
H A D | swab.h | 27 fs64_to_cpu(struct super_block *sbp, __fs64 n) in fs64_to_cpu() argument 29 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs64_to_cpu() 36 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() argument 38 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs64() 45 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() argument 47 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in fs32_to_cpu() 54 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() argument 56 if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) in cpu_to_fs32() 63 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() argument 65 if (UFS_SB(sbp) in fs32_add() 72 fs32_sub(struct super_block *sbp, __fs32 *n, int d) fs32_sub() argument 81 fs16_to_cpu(struct super_block *sbp, __fs16 n) fs16_to_cpu() argument 90 cpu_to_fs16(struct super_block *sbp, u16 n) cpu_to_fs16() argument 99 fs16_add(struct super_block *sbp, __fs16 *n, int d) fs16_add() argument 108 fs16_sub(struct super_block *sbp, __fs16 *n, int d) fs16_sub() argument [all...] |
/kernel/linux/linux-5.10/fs/nilfs2/ |
H A D | the_nilfs.c | 27 static int nilfs_valid_sb(struct nilfs_super_block *sbp); 101 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_load_super_root() local 112 dat_entry_size = le16_to_cpu(sbp[0]->s_dat_entry_size); in nilfs_load_super_root() 113 checkpoint_size = le16_to_cpu(sbp[0]->s_checkpoint_size); in nilfs_load_super_root() 114 segment_usage_size = le16_to_cpu(sbp[0]->s_segment_usage_size); in nilfs_load_super_root() 164 * @sbp: buffer storing super block to be read 172 struct nilfs_super_block *sbp) in nilfs_store_log_cursor() 176 nilfs->ns_last_pseg = le64_to_cpu(sbp->s_last_pseg); in nilfs_store_log_cursor() 177 nilfs->ns_last_cno = le64_to_cpu(sbp->s_last_cno); in nilfs_store_log_cursor() 178 nilfs->ns_last_seq = le64_to_cpu(sbp in nilfs_store_log_cursor() 171 nilfs_store_log_cursor(struct the_nilfs *nilfs, struct nilfs_super_block *sbp) nilfs_store_log_cursor() argument 208 nilfs_get_blocksize(struct super_block *sb, struct nilfs_super_block *sbp, int *blocksize) nilfs_get_blocksize() argument 254 struct nilfs_super_block **sbp = nilfs->ns_sbp; load_nilfs() local 426 nilfs_store_disk_layout(struct the_nilfs *nilfs, struct nilfs_super_block *sbp) nilfs_store_disk_layout() argument 507 nilfs_valid_sb(struct nilfs_super_block *sbp) nilfs_valid_sb() argument 540 nilfs_sb2_bad_offset(struct nilfs_super_block *sbp, u64 offset) nilfs_sb2_bad_offset() argument 593 struct nilfs_super_block **sbp = nilfs->ns_sbp; nilfs_load_super_block() local 674 struct nilfs_super_block *sbp; init_nilfs() local [all...] |
H A D | super.c | 90 struct nilfs_super_block **sbp; in nilfs_set_error() local 95 sbp = nilfs_prepare_super(sb, 0); in nilfs_set_error() 96 if (likely(sbp)) { in nilfs_set_error() 97 sbp[0]->s_state |= cpu_to_le16(NILFS_ERROR_FS); in nilfs_set_error() 98 if (sbp[1]) in nilfs_set_error() 99 sbp[1]->s_state |= cpu_to_le16(NILFS_ERROR_FS); in nilfs_set_error() 191 * sbp[0] points to newer log than sbp[1], in nilfs_sync_super() 192 * so copy sbp[0] to sbp[ in nilfs_sync_super() 200 struct nilfs_super_block *sbp = nilfs->ns_sbp[0]; nilfs_sync_super() local 230 nilfs_set_log_cursor(struct nilfs_super_block *sbp, struct the_nilfs *nilfs) nilfs_set_log_cursor() argument 250 struct nilfs_super_block **sbp = nilfs->ns_sbp; nilfs_prepare_super() local 275 struct nilfs_super_block **sbp = nilfs->ns_sbp; nilfs_commit_super() local 311 struct nilfs_super_block **sbp; nilfs_cleanup_super() local 422 struct nilfs_super_block **sbp; nilfs_resize_fs() local 518 struct nilfs_super_block **sbp; nilfs_sync_fs() local 817 nilfs_set_default_options(struct super_block *sb, struct nilfs_super_block *sbp) nilfs_set_default_options() argument 829 struct nilfs_super_block **sbp; nilfs_setup_super() local 880 nilfs_store_magic_and_option(struct super_block *sb, struct nilfs_super_block *sbp, char *data) nilfs_store_magic_and_option() argument 903 nilfs_check_feature_compatibility(struct super_block *sb, struct nilfs_super_block *sbp) nilfs_check_feature_compatibility() argument [all...] |
/kernel/linux/linux-6.6/fs/nilfs2/ |
H A D | the_nilfs.c | 27 static int nilfs_valid_sb(struct nilfs_super_block *sbp); 101 struct nilfs_super_block **sbp = nilfs->ns_sbp; in nilfs_load_super_root() local 112 dat_entry_size = le16_to_cpu(sbp[0]->s_dat_entry_size); in nilfs_load_super_root() 113 checkpoint_size = le16_to_cpu(sbp[0]->s_checkpoint_size); in nilfs_load_super_root() 114 segment_usage_size = le16_to_cpu(sbp[0]->s_segment_usage_size); in nilfs_load_super_root() 164 * @sbp: buffer storing super block to be read 172 struct nilfs_super_block *sbp) in nilfs_store_log_cursor() 176 nilfs->ns_last_pseg = le64_to_cpu(sbp->s_last_pseg); in nilfs_store_log_cursor() 177 nilfs->ns_last_cno = le64_to_cpu(sbp->s_last_cno); in nilfs_store_log_cursor() 178 nilfs->ns_last_seq = le64_to_cpu(sbp in nilfs_store_log_cursor() 171 nilfs_store_log_cursor(struct the_nilfs *nilfs, struct nilfs_super_block *sbp) nilfs_store_log_cursor() argument 208 nilfs_get_blocksize(struct super_block *sb, struct nilfs_super_block *sbp, int *blocksize) nilfs_get_blocksize() argument 254 struct nilfs_super_block **sbp = nilfs->ns_sbp; load_nilfs() local 426 nilfs_store_disk_layout(struct the_nilfs *nilfs, struct nilfs_super_block *sbp) nilfs_store_disk_layout() argument 506 nilfs_valid_sb(struct nilfs_super_block *sbp) nilfs_valid_sb() argument 539 nilfs_sb2_bad_offset(struct nilfs_super_block *sbp, u64 offset) nilfs_sb2_bad_offset() argument 592 struct nilfs_super_block **sbp = nilfs->ns_sbp; nilfs_load_super_block() local 673 struct nilfs_super_block *sbp; init_nilfs() local [all...] |
H A D | super.c | 91 struct nilfs_super_block **sbp; in nilfs_set_error() local 96 sbp = nilfs_prepare_super(sb, 0); in nilfs_set_error() 97 if (likely(sbp)) { in nilfs_set_error() 98 sbp[0]->s_state |= cpu_to_le16(NILFS_ERROR_FS); in nilfs_set_error() 99 if (sbp[1]) in nilfs_set_error() 100 sbp[1]->s_state |= cpu_to_le16(NILFS_ERROR_FS); in nilfs_set_error() 192 * sbp[0] points to newer log than sbp[1], in nilfs_sync_super() 193 * so copy sbp[0] to sbp[ in nilfs_sync_super() 201 struct nilfs_super_block *sbp = nilfs->ns_sbp[0]; nilfs_sync_super() local 231 nilfs_set_log_cursor(struct nilfs_super_block *sbp, struct the_nilfs *nilfs) nilfs_set_log_cursor() argument 251 struct nilfs_super_block **sbp = nilfs->ns_sbp; nilfs_prepare_super() local 276 struct nilfs_super_block **sbp = nilfs->ns_sbp; nilfs_commit_super() local 312 struct nilfs_super_block **sbp; nilfs_cleanup_super() local 423 struct nilfs_super_block **sbp; nilfs_resize_fs() local 519 struct nilfs_super_block **sbp; nilfs_sync_fs() local 818 nilfs_set_default_options(struct super_block *sb, struct nilfs_super_block *sbp) nilfs_set_default_options() argument 830 struct nilfs_super_block **sbp; nilfs_setup_super() local 881 nilfs_store_magic_and_option(struct super_block *sb, struct nilfs_super_block *sbp, char *data) nilfs_store_magic_and_option() argument 904 nilfs_check_feature_compatibility(struct super_block *sb, struct nilfs_super_block *sbp) nilfs_check_feature_compatibility() argument [all...] |
/kernel/linux/linux-5.10/fs/freevxfs/ |
H A D | vxfs_super.c | 60 * @sbp: VFS superblock. 63 * vxfs_put_super frees all resources allocated for @sbp 68 vxfs_put_super(struct super_block *sbp) in vxfs_put_super() argument 70 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_put_super() 148 static int vxfs_try_sb_magic(struct super_block *sbp, int silent, in vxfs_try_sb_magic() argument 153 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_try_sb_magic() 156 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic() 193 * @sbp: VFS superblock (to fill) 205 * We are under @sbp->s_lock. 207 static int vxfs_fill_super(struct super_block *sbp, voi argument [all...] |
H A D | vxfs_olt.c | 57 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument 59 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock() 60 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock() 66 * @sbp: superblock of the filesystem 70 * vxfs_read_olt reads the olt of the filesystem described by @sbp 77 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument 79 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_olt() 84 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt() 105 eaddr = bp->b_data + (infp->vsi_oltsize * sbp in vxfs_read_olt() [all...] |
/kernel/linux/linux-6.6/fs/freevxfs/ |
H A D | vxfs_super.c | 36 * @sbp: VFS superblock. 39 * vxfs_put_super frees all resources allocated for @sbp 44 vxfs_put_super(struct super_block *sbp) in vxfs_put_super() argument 46 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_put_super() 124 static int vxfs_try_sb_magic(struct super_block *sbp, int silent, in vxfs_try_sb_magic() argument 129 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_try_sb_magic() 132 bp = sb_bread(sbp, blk); in vxfs_try_sb_magic() 169 * @sbp: VFS superblock (to fill) 181 * We are under @sbp->s_lock. 183 static int vxfs_fill_super(struct super_block *sbp, voi argument [all...] |
H A D | vxfs_olt.c | 33 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument 35 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock() 36 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock() 42 * @sbp: superblock of the filesystem 46 * vxfs_read_olt reads the olt of the filesystem described by @sbp 53 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument 55 struct vxfs_sb_info *infp = VXFS_SBI(sbp); in vxfs_read_olt() 60 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt() 81 eaddr = bp->b_data + (infp->vsi_oltsize * sbp in vxfs_read_olt() [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_mount.c | 160 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() 163 ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); in xfs_sb_validate_fsb_count() 164 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count() 167 if (nblocks >> (PAGE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count() 273 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb() local 313 xfs_sb_from_disk(sbp, bp->b_addr); in xfs_readsb() 319 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_readsb() 329 if (sector_size > sbp->sb_sectsize) { in xfs_readsb() 332 sector_size, sbp->sb_sectsize); in xfs_readsb() 343 sector_size = sbp in xfs_readsb() 159 xfs_sb_validate_fsb_count( xfs_sb_t *sbp, uint64_t nblocks) xfs_sb_validate_fsb_count() argument 374 struct xfs_sb *sbp = &mp->m_sb; xfs_check_new_dalign() local 455 struct xfs_sb *sbp = &mp->m_sb; xfs_update_alignment() local 688 struct xfs_sb *sbp = &(mp->m_sb); xfs_mountfs() local [all...] |
H A D | xfs_attr_list.c | 57 struct xfs_attr_sf_sort *sbuf, *sbp; in xfs_attr_shortform_list() local 113 sbp = sbuf = kmem_alloc(sbsize, KM_NOFS); in xfs_attr_shortform_list() 132 sbp->entno = i; in xfs_attr_shortform_list() 133 sbp->hash = xfs_da_hashname(sfe->nameval, sfe->namelen); in xfs_attr_shortform_list() 134 sbp->name = sfe->nameval; in xfs_attr_shortform_list() 135 sbp->namelen = sfe->namelen; in xfs_attr_shortform_list() 137 sbp->valuelen = sfe->valuelen; in xfs_attr_shortform_list() 138 sbp->flags = sfe->flags; in xfs_attr_shortform_list() 140 sbp++; in xfs_attr_shortform_list() 155 for (sbp in xfs_attr_shortform_list() [all...] |
H A D | xfs_rtalloc.c | 916 xfs_sb_t *sbp; /* old superblock */ in xfs_growfs_rt() local 920 sbp = &mp->m_sb; in xfs_growfs_rt() 927 (nrblocks = in->newblocks) <= sbp->sb_rblocks || in xfs_growfs_rt() 928 (sbp->sb_rblocks && (in->extsize != sbp->sb_rextsize))) in xfs_growfs_rt() 930 if ((error = xfs_sb_validate_fsb_count(sbp, nrblocks))) in xfs_growfs_rt() 947 nrbmblocks = howmany_64(nrextents, NBBY * sbp->sb_blocksize); in xfs_growfs_rt() 977 if (nrbmblocks != sbp->sb_rbmblocks) in xfs_growfs_rt() 990 for (bmbno = sbp->sb_rbmblocks - in xfs_growfs_rt() 991 ((sbp in xfs_growfs_rt() 1216 struct xfs_sb *sbp; /* filesystem superblock copy in mount */ xfs_rtmount_init() local 1264 xfs_sb_t *sbp; xfs_rtmount_inodes() local [all...] |
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_mount.c | 131 xfs_sb_t *sbp, in xfs_sb_validate_fsb_count() 134 ASSERT(PAGE_SHIFT >= sbp->sb_blocklog); in xfs_sb_validate_fsb_count() 135 ASSERT(sbp->sb_blocklog >= BBSHIFT); in xfs_sb_validate_fsb_count() 138 if (nblocks >> (PAGE_SHIFT - sbp->sb_blocklog) > ULONG_MAX) in xfs_sb_validate_fsb_count() 155 struct xfs_sb *sbp = &mp->m_sb; in xfs_readsb() local 195 xfs_sb_from_disk(sbp, bp->b_addr); in xfs_readsb() 201 if (sbp->sb_magicnum != XFS_SB_MAGIC) { in xfs_readsb() 211 if (sector_size > sbp->sb_sectsize) { in xfs_readsb() 214 sector_size, sbp->sb_sectsize); in xfs_readsb() 225 sector_size = sbp in xfs_readsb() 130 xfs_sb_validate_fsb_count( xfs_sb_t *sbp, uint64_t nblocks) xfs_sb_validate_fsb_count() argument 257 struct xfs_sb *sbp = &mp->m_sb; xfs_check_new_dalign() local 340 struct xfs_sb *sbp = &mp->m_sb; xfs_update_alignment() local 637 struct xfs_sb *sbp = &(mp->m_sb); xfs_mountfs() local [all...] |
H A D | xfs_attr_list.c | 58 struct xfs_attr_sf_sort *sbuf, *sbp; in xfs_attr_shortform_list() local 113 sbp = sbuf = kmem_alloc(sbsize, KM_NOFS); in xfs_attr_shortform_list() 132 sbp->entno = i; in xfs_attr_shortform_list() 133 sbp->hash = xfs_da_hashname(sfe->nameval, sfe->namelen); in xfs_attr_shortform_list() 134 sbp->name = sfe->nameval; in xfs_attr_shortform_list() 135 sbp->namelen = sfe->namelen; in xfs_attr_shortform_list() 137 sbp->valuelen = sfe->valuelen; in xfs_attr_shortform_list() 138 sbp->flags = sfe->flags; in xfs_attr_shortform_list() 140 sbp++; in xfs_attr_shortform_list() 155 for (sbp in xfs_attr_shortform_list() [all...] |
/kernel/linux/linux-5.10/drivers/s390/net/ |
H A D | qeth_l2_sys.c | 26 card->options.sbp.supported_funcs) in qeth_bridge_port_role_state_show() 28 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show() 42 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show() 54 card->options.sbp.role, state); in qeth_bridge_port_role_state_show() 95 else if (card->options.sbp.reflect_promisc) in qeth_bridge_port_role_store() 101 card->options.sbp.role = role; in qeth_bridge_port_role_store() 103 card->options.sbp.role = role; in qeth_bridge_port_role_store() 137 enabled = card->options.sbp.hostnotification; in qeth_bridgeport_hostnotification_show() 162 card->options.sbp.hostnotification = enable; in qeth_bridgeport_hostnotification_store() 164 card->options.sbp in qeth_bridgeport_hostnotification_store() [all...] |
/kernel/linux/linux-6.6/drivers/s390/net/ |
H A D | qeth_l2_sys.c | 26 card->options.sbp.supported_funcs) in qeth_bridge_port_role_state_show() 28 &card->options.sbp.role, &state); in qeth_bridge_port_role_state_show() 42 switch (card->options.sbp.role) { in qeth_bridge_port_role_state_show() 54 card->options.sbp.role, state); in qeth_bridge_port_role_state_show() 95 else if (card->options.sbp.reflect_promisc) in qeth_bridge_port_role_store() 101 card->options.sbp.role = role; in qeth_bridge_port_role_store() 103 card->options.sbp.role = role; in qeth_bridge_port_role_store() 137 enabled = card->options.sbp.hostnotification; in qeth_bridgeport_hostnotification_show() 162 card->options.sbp.hostnotification = enable; in qeth_bridgeport_hostnotification_store() 164 card->options.sbp in qeth_bridgeport_hostnotification_store() [all...] |
/kernel/linux/linux-5.10/fs/reiserfs/ |
H A D | reiserfs.h | 116 #define sb_block_count(sbp) (le32_to_cpu((sbp)->s_v1.s_block_count)) 117 #define set_sb_block_count(sbp,v) ((sbp)->s_v1.s_block_count = cpu_to_le32(v)) 118 #define sb_free_blocks(sbp) (le32_to_cpu((sbp)->s_v1.s_free_blocks)) 119 #define set_sb_free_blocks(sbp,v) ((sbp)->s_v1.s_free_blocks = cpu_to_le32(v)) 120 #define sb_root_block(sbp) (le32_to_cpu((sbp) [all...] |
/kernel/linux/linux-6.6/fs/reiserfs/ |
H A D | reiserfs.h | 114 #define sb_block_count(sbp) (le32_to_cpu((sbp)->s_v1.s_block_count)) 115 #define set_sb_block_count(sbp,v) ((sbp)->s_v1.s_block_count = cpu_to_le32(v)) 116 #define sb_free_blocks(sbp) (le32_to_cpu((sbp)->s_v1.s_free_blocks)) 117 #define set_sb_free_blocks(sbp,v) ((sbp)->s_v1.s_free_blocks = cpu_to_le32(v)) 118 #define sb_root_block(sbp) (le32_to_cpu((sbp) [all...] |