/fs/xfs/libxfs/ |
D | xfs_da_format.c | 440 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk() 444 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk() 445 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk() 453 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk() 454 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk() 458 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk() 472 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk() 476 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_from_disk() 477 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_hdr_from_disk() 487 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_to_disk() [all …]
|
D | xfs_dir2_data.c | 76 switch (hdr->magic) { in __xfs_dir3_data_check() 185 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check() 186 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check() 208 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check() 209 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check() 251 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_data_verify() 276 switch (hdr->magic) { in xfs_dir3_data_reada_verify() 336 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC), 345 .magic = { cpu_to_be32(XFS_DIR2_DATA_MAGIC), 515 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freeinsert() [all …]
|
D | xfs_da_btree.c | 126 if (!xfs_verify_magic16(bp, hdr->magic)) in xfs_da3_blkinfo_verify() 216 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify() 252 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_verify_struct() 295 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read() 357 ichdr.magic = XFS_DA3_NODE_MAGIC; in xfs_da3_node_create() 362 ichdr.magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_create() 401 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split() 402 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() 415 switch (oldblk->magic) { in xfs_da3_split() 482 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() [all …]
|
D | xfs_dir2_leaf.c | 48 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check() 52 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check() 115 if ((hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_check_int() 116 hdr->magic == XFS_DIR3_LEAF1_MAGIC) && in xfs_dir3_leaf_check_int() 268 leaf3->info.hdr.magic = (type == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_init() 276 leaf->hdr.info.magic = cpu_to_be16(type); in xfs_dir3_leaf_init() 301 uint16_t magic) in xfs_dir3_leaf_get_buf() argument 309 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leaf_get_buf() 318 xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); in xfs_dir3_leaf_get_buf() 320 if (magic == XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf_get_buf() [all …]
|
D | xfs_dir2_node.c | 50 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check() 54 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check() 86 if (!xfs_verify_magic(bp, hdr->magic)) in xfs_dir3_free_verify() 148 .magic = { cpu_to_be32(XFS_DIR2_FREE_MAGIC), 275 hdr.magic = XFS_DIR3_FREE_MAGIC; in xfs_dir3_free_get_buf() 281 hdr.magic = XFS_DIR2_FREE_MAGIC; in xfs_dir3_free_get_buf() 302 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_bests() 303 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_bests() 322 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_header() 323 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_header() [all …]
|
D | xfs_da_format.h | 24 __be16 magic; /* validity check on block */ member 300 __be32 magic; /* XFS_DIR2_DATA_MAGIC or */ member 312 __be32 magic; /* magic number */ member 474 __be32 magic; /* XFS_DIR2_FREE_MAGIC */ member 718 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_hdr_size() 726 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_entryp()
|
D | xfs_attr_leaf.c | 99 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_firstused_from_disk() 141 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_firstused_to_disk() 157 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk() 158 from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_attr3_leaf_hdr_from_disk() 160 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_hdr_from_disk() 165 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_attr3_leaf_hdr_from_disk() 179 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_attr3_leaf_hdr_from_disk() 199 ASSERT(from->magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr3_leaf_hdr_to_disk() 200 from->magic == XFS_ATTR3_LEAF_MAGIC); in xfs_attr3_leaf_hdr_to_disk() 202 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_hdr_to_disk() [all …]
|
D | xfs_dir2_priv.h | 18 uint16_t magic; member 24 uint32_t magic; member 82 struct xfs_buf **bpp, uint16_t magic);
|
D | xfs_dir2_block.c | 53 if (!xfs_verify_magic(bp, hdr3->magic)) in xfs_dir3_block_verify() 110 .magic = { cpu_to_be32(XFS_DIR2_BLOCK_MAGIC), 176 hdr3->magic = cpu_to_be32(XFS_DIR3_BLOCK_MAGIC); in xfs_dir3_block_init() 183 hdr3->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC); in xfs_dir3_block_init() 959 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block() 960 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block() 990 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_leaf_to_block() 991 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); in xfs_dir2_leaf_to_block()
|
D | xfs_da_btree.h | 109 int magic; /* blk's magic number, ie: blk type */ member 137 uint16_t magic; member
|
/fs/ |
D | binfmt_misc.c | 57 char *magic; /* magic or filename extension */ member 107 if (p && !strcmp(e->magic, p + 1)) in check_file() 116 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file() 120 if ((*s++ ^ e->magic[j])) in check_file() 404 e->magic = p; in create_entry() 408 if (!e->magic[0]) in create_entry() 413 DUMP_PREFIX_NONE, e->magic, p - e->magic); in create_entry() 434 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); in create_entry() 445 DUMP_PREFIX_NONE, e->magic, e->size); in create_entry() 457 masked[i] = e->magic[i] & e->mask[i]; in create_entry() [all …]
|
/fs/xfs/scrub/ |
D | dabtree.c | 94 switch (blk->magic) { in xchk_da_btree_entry() 176 switch (be16_to_cpu(info->magic)) { in xchk_da_btree_read_verify() 198 switch (be16_to_cpu(info->magic)) { in xchk_da_btree_write_verify() 220 switch (be16_to_cpu(info->magic)) { in xchk_da_btree_verify() 382 blk->magic = be16_to_cpu(hdr3->hdr.magic); in xchk_da_btree_block() 402 switch (blk->magic) { in xchk_da_btree_block() 407 blk->magic = XFS_ATTR_LEAF_MAGIC; in xchk_da_btree_block() 416 blk->magic = XFS_DIR2_LEAFN_MAGIC; in xchk_da_btree_block() 425 blk->magic = XFS_DIR2_LEAF1_MAGIC; in xchk_da_btree_block() 434 blk->magic = XFS_DA_NODE_MAGIC; in xchk_da_btree_block() [all …]
|
/fs/hpfs/ |
D | hpfs.h | 67 __le16 magic; /* aa55 */ member 79 __le32 magic; /* f995 e849 */ member 113 __le32 magic; /* f991 1849 */ member 206 __le32 magic; /* 4945 21f7 */ member 228 __le32 magic; /* 8945 21f7 */ member 282 __le32 magic; /* 77e4 0aae */ member 439 __le32 magic; /* f7e4 0aae */ member 493 __le32 magic; /* 37e4 0aae */ member
|
D | map.c | 68 if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { in hpfs_load_code_page() 70 le32_to_cpu(cp->magic)); in hpfs_load_code_page() 174 if (le32_to_cpu(fnode->magic) != FNODE_MAGIC) { in hpfs_map_fnode() 227 if (le32_to_cpu(anode->magic) != ANODE_MAGIC) { in hpfs_map_anode() 272 if (le32_to_cpu(dnode->magic) != DNODE_MAGIC) { in hpfs_map_dnode()
|
/fs/ubifs/ |
D | scan.c | 61 uint32_t magic; in ubifs_scan_a_node() local 63 magic = le32_to_cpu(ch->magic); in ubifs_scan_a_node() 65 if (magic == 0xFFFFFFFF) { in ubifs_scan_a_node() 70 if (magic != UBIFS_NODE_MAGIC) in ubifs_scan_a_node()
|
D | io.c | 229 uint32_t crc, node_crc, magic; in ubifs_check_node() local 235 magic = le32_to_cpu(ch->magic); in ubifs_check_node() 236 if (magic != UBIFS_NODE_MAGIC) { in ubifs_check_node() 239 magic, UBIFS_NODE_MAGIC); in ubifs_check_node() 328 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_pad() 375 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_init_node() 468 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prep_grp_node()
|
/fs/gfs2/ |
D | util.h | 84 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_meta_check() local 85 if (unlikely(magic != GFS2_MAGIC)) { in gfs2_meta_check() 105 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_metatype_check_i() local 107 if (unlikely(magic != GFS2_MAGIC)) in gfs2_metatype_check_i()
|
/fs/ntfs/ |
D | mst.c | 67 b->magic = magic_BAAD; in post_read_mst_fixup() 116 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup() 117 ntfs_is_hole_record(b->magic)) in pre_write_mst_fixup()
|
D | logfile.c | 82 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header() 121 if (!ntfs_is_chkd_record(rp->magic) && sle64_to_cpu(rp->chkdsk_lsn)) { in ntfs_check_restart_page_header() 408 if ((!ntfs_is_chkd_record(trp->magic) || le16_to_cpu(trp->usa_count)) in ntfs_check_and_load_restart_page() 431 if (ntfs_is_rstr_record(rp->magic) && in ntfs_check_and_load_restart_page() 439 if (ntfs_is_rstr_record(rp->magic)) in ntfs_check_and_load_restart_page() 678 if (!ntfs_is_rstr_record(rp->magic) && in ntfs_is_logfile_clean() 679 !ntfs_is_chkd_record(rp->magic)) { in ntfs_is_logfile_clean()
|
/fs/xfs/ |
D | xfs_attr_list.c | 211 uint16_t magic; in xfs_attr_node_list_lookup() local 221 magic = be16_to_cpu(node->hdr.info.magic); in xfs_attr_node_list_lookup() 222 if (magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr_node_list_lookup() 223 magic == XFS_ATTR3_LEAF_MAGIC) in xfs_attr_node_list_lookup() 225 if (magic != XFS_DA_NODE_MAGIC && in xfs_attr_node_list_lookup() 226 magic != XFS_DA3_NODE_MAGIC) { in xfs_attr_node_list_lookup() 312 switch (be16_to_cpu(node->hdr.info.magic)) { in xfs_attr_node_list()
|
/fs/autofs/ |
D | dev-ioctl.c | 509 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local 518 param->ismountpoint.out.magic = magic = 0; in autofs_dev_ioctl_ismountpoint() 533 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint() 547 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint() 551 param->ismountpoint.out.magic = magic; in autofs_dev_ioctl_ismountpoint()
|
/fs/orangefs/ |
D | devorangefs-req.c | 164 static __s32 magic = ORANGEFS_DEVREQ_MAGIC; in orangefs_devreq_read() local 284 ret = copy_to_user(buf + sizeof(__s32), &magic, sizeof(__s32)); in orangefs_devreq_read() 368 __u32 magic; in orangefs_devreq_write_iter() member 402 if (head.magic != ORANGEFS_DEVREQ_MAGIC) { in orangefs_devreq_write_iter() 593 static __s32 magic = ORANGEFS_DEVREQ_MAGIC; in dispatch_ioctl_command() local 605 return ((put_user(magic, (__s32 __user *) arg) == -EFAULT) ? in dispatch_ioctl_command()
|
/fs/jffs2/ |
D | scan.c | 492 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock() 511 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock() 723 if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { in jffs2_scan_eraseblock() 731 if (je16_to_cpu(node->magic) == JFFS2_DIRTY_BITMASK) { in jffs2_scan_eraseblock() 738 if (je16_to_cpu(node->magic) == JFFS2_OLD_MAGIC_BITMASK) { in jffs2_scan_eraseblock() 746 if (je16_to_cpu(node->magic) != JFFS2_MAGIC_BITMASK) { in jffs2_scan_eraseblock() 751 je16_to_cpu(node->magic)); in jffs2_scan_eraseblock() 758 crcnode.magic = node->magic; in jffs2_scan_eraseblock() 766 ofs, je16_to_cpu(node->magic), in jffs2_scan_eraseblock()
|
/fs/cramfs/ |
D | inode.c | 40 unsigned long magic; member 533 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super() 535 if (super->magic == CRAMFS_MAGIC_WEND) { in cramfs_read_super() 547 if (super->magic != CRAMFS_MAGIC) { in cramfs_read_super() 548 if (super->magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_read_super() 580 sbi->magic = super->magic; in cramfs_read_super()
|
/fs/befs/ |
D | befs_fs_types.h | 218 fs32 magic; member 228 u32 magic; member
|