/fs/xfs/libxfs/ |
D | xfs_da_format.c | 461 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk() 465 ASSERT(to->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_from_disk() 466 to->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_from_disk() 474 ASSERT(from->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_hdr_to_disk() 475 from->magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_hdr_to_disk() 479 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk() 493 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk() 497 ASSERT(to->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_from_disk() 498 to->magic == XFS_DIR3_LEAFN_MAGIC); in xfs_dir3_leaf_hdr_from_disk() 508 ASSERT(from->magic == XFS_DIR3_LEAF1_MAGIC || in xfs_dir3_leaf_hdr_to_disk() [all …]
|
D | xfs_dir2_data.c | 80 switch (hdr->magic) { in __xfs_dir3_data_check() 175 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check() 176 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check() 196 if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) || in __xfs_dir3_data_check() 197 hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) { in __xfs_dir3_data_check() 222 if (hdr3->magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC)) in xfs_dir3_data_verify() 229 if (hdr3->magic != cpu_to_be32(XFS_DIR2_DATA_MAGIC)) in xfs_dir3_data_verify() 248 switch (hdr->magic) { in xfs_dir3_data_reada_verify() 369 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_data_freefind() 370 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) || in xfs_dir2_data_freefind() [all …]
|
D | xfs_da_btree.c | 148 if (ichdr.magic != XFS_DA3_NODE_MAGIC) in xfs_da3_node_verify() 156 if (ichdr.magic != XFS_DA_NODE_MAGIC) in xfs_da3_node_verify() 214 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read_verify() 268 switch (be16_to_cpu(info->magic)) { in xfs_da3_node_read() 327 ichdr.magic = XFS_DA3_NODE_MAGIC; in xfs_da3_node_create() 332 ichdr.magic = XFS_DA_NODE_MAGIC; in xfs_da3_node_create() 372 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da3_split() 373 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da3_split() 386 switch (oldblk->magic) { in xfs_da3_split() 544 if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_root_split() [all …]
|
D | xfs_dir2_leaf.c | 70 if (leafhdr.magic == XFS_DIR3_LEAF1_MAGIC) { in xfs_dir3_leaf1_check() 74 } else if (leafhdr.magic != XFS_DIR2_LEAF1_MAGIC) in xfs_dir3_leaf1_check() 121 if ((hdr->magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir3_leaf_check_int() 122 hdr->magic == XFS_DIR3_LEAF1_MAGIC) && in xfs_dir3_leaf_check_int() 149 __uint16_t magic) in xfs_dir3_leaf_verify() argument 154 ASSERT(magic == XFS_DIR2_LEAF1_MAGIC || magic == XFS_DIR2_LEAFN_MAGIC); in xfs_dir3_leaf_verify() 160 magic3 = (magic == XFS_DIR2_LEAF1_MAGIC) ? XFS_DIR3_LEAF1_MAGIC in xfs_dir3_leaf_verify() 163 if (leaf3->info.hdr.magic != cpu_to_be16(magic3)) in xfs_dir3_leaf_verify() 170 if (leaf->hdr.info.magic != cpu_to_be16(magic)) in xfs_dir3_leaf_verify() 180 __uint16_t magic) in __read_verify() argument [all …]
|
D | xfs_da_format.h | 36 __be16 magic; /* validity check on block */ member 116 __uint16_t magic; member 344 __be32 magic; /* XFS_DIR2_DATA_MAGIC or */ member 356 __be32 magic; /* magic number */ member 471 __uint16_t magic; member 526 __be32 magic; /* XFS_DIR2_FREE_MAGIC */ member 560 __uint32_t magic; member 725 __uint16_t magic; member 772 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_hdr_size() 780 if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) in xfs_attr3_leaf_entryp()
|
D | xfs_dir2_node.c | 73 if (leafhdr.magic == XFS_DIR3_LEAFN_MAGIC) { in xfs_dir3_leafn_check() 77 } else if (leafhdr.magic != XFS_DIR2_LEAFN_MAGIC) in xfs_dir3_leafn_check() 96 if (hdr3->magic != cpu_to_be32(XFS_DIR3_FREE_MAGIC)) in xfs_dir3_free_verify() 103 if (hdr->magic != cpu_to_be32(XFS_DIR2_FREE_MAGIC)) in xfs_dir3_free_verify() 228 hdr.magic = XFS_DIR3_FREE_MAGIC; in xfs_dir3_free_get_buf() 234 hdr.magic = XFS_DIR2_FREE_MAGIC; in xfs_dir3_free_get_buf() 255 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_bests() 256 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_bests() 275 ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) || in xfs_dir2_free_log_header() 276 free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC)); in xfs_dir2_free_log_header() [all …]
|
D | xfs_attr_leaf.c | 98 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) || in xfs_attr3_leaf_hdr_from_disk() 99 from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)); in xfs_attr3_leaf_hdr_from_disk() 101 if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) { in xfs_attr3_leaf_hdr_from_disk() 106 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_attr3_leaf_hdr_from_disk() 120 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_attr3_leaf_hdr_from_disk() 139 ASSERT(from->magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr3_leaf_hdr_to_disk() 140 from->magic == XFS_ATTR3_LEAF_MAGIC); in xfs_attr3_leaf_hdr_to_disk() 142 if (from->magic == XFS_ATTR3_LEAF_MAGIC) { in xfs_attr3_leaf_hdr_to_disk() 147 hdr3->info.hdr.magic = cpu_to_be16(from->magic); in xfs_attr3_leaf_hdr_to_disk() 162 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_attr3_leaf_hdr_to_disk() [all …]
|
D | xfs_dir2_block.c | 71 if (hdr3->magic != cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) in xfs_dir3_block_verify() 78 if (hdr3->magic != cpu_to_be32(XFS_DIR2_BLOCK_MAGIC)) in xfs_dir3_block_verify() 161 hdr3->magic = cpu_to_be32(XFS_DIR3_BLOCK_MAGIC); in xfs_dir3_block_init() 168 hdr3->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC); in xfs_dir3_block_init() 946 ASSERT(leafhdr.magic == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_to_block() 947 leafhdr.magic == XFS_DIR3_LEAF1_MAGIC); in xfs_dir2_leaf_to_block() 977 ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) || in xfs_dir2_leaf_to_block() 978 hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC)); in xfs_dir2_leaf_to_block()
|
/fs/hpfs/ |
D | hpfs.h | 66 __le16 magic; /* aa55 */ member 78 __le32 magic; /* f995 e849 */ member 112 __le32 magic; /* f991 1849 */ member 205 __le32 magic; /* 4945 21f7 */ member 227 __le32 magic; /* 8945 21f7 */ member 281 __le32 magic; /* 77e4 0aae */ member 438 __le32 magic; /* f7e4 0aae */ member 492 __le32 magic; /* 37e4 0aae */ member
|
D | map.c | 67 if (le32_to_cpu(cp->magic) != CP_DIR_MAGIC) { in hpfs_load_code_page() 69 le32_to_cpu(cp->magic)); in hpfs_load_code_page() 147 if (le32_to_cpu(fnode->magic) != FNODE_MAGIC) { in hpfs_map_fnode() 200 if (le32_to_cpu(anode->magic) != ANODE_MAGIC) { in hpfs_map_anode() 245 if (le32_to_cpu(dnode->magic) != DNODE_MAGIC) { in hpfs_map_dnode()
|
/fs/ |
D | binfmt_misc.c | 53 char *magic; /* magic or filename extension */ member 99 if (p && !strcmp(e->magic, p + 1)) in check_file() 107 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file() 111 if ((*s++ ^ e->magic[j])) in check_file() 341 e->magic = p; in create_entry() 346 if (!e->magic[0]) in create_entry() 355 e->size = string_unescape_inplace(e->magic, UNESCAPE_HEX); in create_entry() 366 e->magic = p; in create_entry() 371 if (!e->magic[0] || strchr(e->magic, '/')) in create_entry() 466 sprintf(dp, "extension .%s\n", e->magic); in entry_status() [all …]
|
/fs/ubifs/ |
D | scan.c | 73 uint32_t magic; in ubifs_scan_a_node() local 75 magic = le32_to_cpu(ch->magic); in ubifs_scan_a_node() 77 if (magic == 0xFFFFFFFF) { in ubifs_scan_a_node() 82 if (magic != UBIFS_NODE_MAGIC) in ubifs_scan_a_node()
|
D | io.c | 241 uint32_t crc, node_crc, magic; in ubifs_check_node() local 247 magic = le32_to_cpu(ch->magic); in ubifs_check_node() 248 if (magic != UBIFS_NODE_MAGIC) { in ubifs_check_node() 251 magic, UBIFS_NODE_MAGIC); in ubifs_check_node() 328 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_pad() 387 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prepare_node() 420 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prep_grp_node()
|
/fs/xfs/ |
D | xfs_attr_list.c | 254 switch (be16_to_cpu(node->hdr.info.magic)) { in xfs_attr_node_list() 294 __uint16_t magic; in xfs_attr_node_list() local 302 magic = be16_to_cpu(node->hdr.info.magic); in xfs_attr_node_list() 303 if (magic == XFS_ATTR_LEAF_MAGIC || in xfs_attr_node_list() 304 magic == XFS_ATTR3_LEAF_MAGIC) in xfs_attr_node_list() 306 if (magic != XFS_DA_NODE_MAGIC && in xfs_attr_node_list() 307 magic != XFS_DA3_NODE_MAGIC) { in xfs_attr_node_list()
|
/fs/autofs4/ |
D | dev-ioctl.c | 524 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local 536 param->ismountpoint.out.magic = magic = 0; in autofs_dev_ioctl_ismountpoint() 551 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint() 565 magic = path.dentry->d_sb->s_magic; in autofs_dev_ioctl_ismountpoint() 569 param->ismountpoint.out.magic = magic; in autofs_dev_ioctl_ismountpoint() 681 if (!sbi || sbi->magic != AUTOFS_SBI_MAGIC) { in _autofs_dev_ioctl()
|
/fs/ntfs/ |
D | mst.c | 81 b->magic = magic_BAAD; in post_read_mst_fixup() 130 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup() 131 ntfs_is_hole_record(b->magic)) in pre_write_mst_fixup()
|
D | logfile.c | 95 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header() 134 if (!ntfs_is_chkd_record(rp->magic) && sle64_to_cpu(rp->chkdsk_lsn)) { in ntfs_check_restart_page_header() 421 if ((!ntfs_is_chkd_record(trp->magic) || le16_to_cpu(trp->usa_count)) in ntfs_check_and_load_restart_page() 444 if (ntfs_is_rstr_record(rp->magic) && in ntfs_check_and_load_restart_page() 452 if (ntfs_is_rstr_record(rp->magic)) in ntfs_check_and_load_restart_page() 691 if (!ntfs_is_rstr_record(rp->magic) && in ntfs_is_logfile_clean() 692 !ntfs_is_chkd_record(rp->magic)) { in ntfs_is_logfile_clean()
|
D | layout.h | 189 NTFS_RECORD_TYPE magic; /* A four-byte magic identifying the record member 329 NTFS_RECORD_TYPE magic; /* Usually the magic is "FILE". */ member 398 NTFS_RECORD_TYPE magic; /* Usually the magic is "FILE". */ member 2054 NTFS_RECORD_TYPE magic; /* Magic is "INDX". */ member
|
D | logfile.h | 70 /* 0*/ NTFS_RECORD_TYPE magic; /* The magic is "RSTR". */ member
|
/fs/kernfs/ |
D | mount.c | 65 static int kernfs_fill_super(struct super_block *sb, unsigned long magic) in kernfs_fill_super() argument 74 sb->s_magic = magic; in kernfs_fill_super() 147 struct kernfs_root *root, unsigned long magic, in kernfs_mount_ns() argument 173 error = kernfs_fill_super(sb, magic); in kernfs_mount_ns()
|
/fs/gfs2/ |
D | util.h | 87 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_meta_check() local 88 if (unlikely(magic != GFS2_MAGIC)) { in gfs2_meta_check() 108 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_metatype_check_i() local 110 if (unlikely(magic != GFS2_MAGIC)) in gfs2_metatype_check_i()
|
/fs/cramfs/ |
D | inode.c | 34 unsigned long magic; member 281 if (super.magic != CRAMFS_MAGIC) { in cramfs_fill_super() 283 if (super.magic == CRAMFS_MAGIC_WEND) { in cramfs_fill_super() 293 if (super.magic != CRAMFS_MAGIC) { in cramfs_fill_super() 294 if (super.magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_fill_super() 326 sbi->magic = super.magic; in cramfs_fill_super()
|
/fs/jffs2/ |
D | scan.c | 490 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock() 509 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock() 718 if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { in jffs2_scan_eraseblock() 726 if (je16_to_cpu(node->magic) == JFFS2_DIRTY_BITMASK) { in jffs2_scan_eraseblock() 733 if (je16_to_cpu(node->magic) == JFFS2_OLD_MAGIC_BITMASK) { in jffs2_scan_eraseblock() 741 if (je16_to_cpu(node->magic) != JFFS2_MAGIC_BITMASK) { in jffs2_scan_eraseblock() 746 je16_to_cpu(node->magic)); in jffs2_scan_eraseblock() 753 crcnode.magic = node->magic; in jffs2_scan_eraseblock() 761 ofs, je16_to_cpu(node->magic), in jffs2_scan_eraseblock()
|
D | write.c | 44 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_new_inode() 374 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_inode_range() 509 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_create() 572 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_unlink() 689 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_link()
|
/fs/befs/ |
D | befs_fs_types.h | 217 fs32 magic; member 227 u32 magic; member
|