Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 81) sorted by relevance

1234

/fs/xfs/
Dxfs_da_btree.c126 node->hdr.info.magic = cpu_to_be16(XFS_DA_NODE_MAGIC); in xfs_da_node_create()
158 ASSERT(state->path.blk[max].magic == XFS_ATTR_LEAF_MAGIC || in xfs_da_split()
159 state->path.blk[max].magic == XFS_DIR2_LEAFN_MAGIC); in xfs_da_split()
172 switch (oldblk->magic) { in xfs_da_split()
328 if (be16_to_cpu(oldroot->hdr.info.magic) == XFS_DA_NODE_MAGIC) { in xfs_da_root_split()
332 ASSERT(be16_to_cpu(oldroot->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); in xfs_da_root_split()
359 if (be16_to_cpu(oldroot->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC) { in xfs_da_root_split()
391 ASSERT(be16_to_cpu(node->hdr.info.magic) == XFS_DA_NODE_MAGIC); in xfs_da_node_split()
415 newblk->magic = XFS_DA_NODE_MAGIC; in xfs_da_node_split()
490 ASSERT(be16_to_cpu(node1->hdr.info.magic) == XFS_DA_NODE_MAGIC); in xfs_da_node_rebalance()
[all …]
Dxfs_dir2_data.c72 ASSERT(be32_to_cpu(d->hdr.magic) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_check()
73 be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC); in xfs_dir2_data_check()
76 if (be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC) { in xfs_dir2_data_check()
140 if (be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC) { in xfs_dir2_data_check()
160 if (be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC) { in xfs_dir2_data_check()
196 ASSERT(be32_to_cpu(d->hdr.magic) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_freefind()
197 be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC); in xfs_dir2_data_freefind()
256 ASSERT(be32_to_cpu(d->hdr.magic) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_freeinsert()
257 be32_to_cpu(d->hdr.magic) == XFS_DIR2_BLOCK_MAGIC); in xfs_dir2_data_freeinsert()
296 ASSERT(be32_to_cpu(d->hdr.magic) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_freeremove()
[all …]
Dxfs_dir2_node.c78 ASSERT(be32_to_cpu(free->hdr.magic) == XFS_DIR2_FREE_MAGIC); in xfs_dir2_free_log_bests()
96 ASSERT(be32_to_cpu(free->hdr.magic) == XFS_DIR2_FREE_MAGIC); in xfs_dir2_free_log_header()
151 free->hdr.magic = cpu_to_be32(XFS_DIR2_FREE_MAGIC); in xfs_dir2_leaf_to_node()
166 leaf->hdr.info.magic = cpu_to_be16(XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_to_node()
355 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leafn_check()
381 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leafn_lasthash()
420 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leafn_lookup_for_addname()
437 ASSERT(be32_to_cpu(free->hdr.magic) == XFS_DIR2_FREE_MAGIC); in xfs_dir2_leafn_lookup_for_addname()
488 ASSERT(be32_to_cpu(free->hdr.magic) == in xfs_dir2_leafn_lookup_for_addname()
525 state->extrablk.magic = XFS_DIR2_FREE_MAGIC; in xfs_dir2_leafn_lookup_for_addname()
[all …]
Dxfs_attr_leaf.c730 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); in xfs_attr_shortform_allfit()
776 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); in xfs_attr_leaf_to_shortform()
884 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); in xfs_attr_leaf_to_node()
928 hdr->info.magic = cpu_to_be16(XFS_ATTR_LEAF_MAGIC); in xfs_attr_leaf_create()
958 ASSERT(oldblk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_leaf_split()
966 newblk->magic = XFS_ATTR_LEAF_MAGIC; in xfs_attr_leaf_split()
1009 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); in xfs_attr_leaf_add()
1082 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_ATTR_LEAF_MAGIC); in xfs_attr_leaf_add_work()
1264 ASSERT(blk1->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_leaf_rebalance()
1265 ASSERT(blk2->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_leaf_rebalance()
[all …]
Dxfs_dir2_leaf.c134 block->hdr.magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC); in xfs_dir2_block_to_leaf()
565 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC); in xfs_dir2_leaf_check()
1128 int magic) /* magic number for block */ in xfs_dir2_leaf_init() argument
1157 leaf->hdr.info.magic = cpu_to_be16(magic); in xfs_dir2_leaf_init()
1168 if (magic == XFS_DIR2_LEAF1_MAGIC) { in xfs_dir2_leaf_init()
1193 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC); in xfs_dir2_leaf_log_bests()
1216 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_log_ents()
1217 be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_log_ents()
1235 ASSERT(be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAF1_MAGIC || in xfs_dir2_leaf_log_header()
1236 be16_to_cpu(leaf->hdr.info.magic) == XFS_DIR2_LEAFN_MAGIC); in xfs_dir2_leaf_log_header()
[all …]
Dxfs_da_btree.h46 __be16 magic; /* validity check on block */ member
170 int magic; /* blk's magic number, ie: blk type */ member
Dxfs_attr.c1213 if (unlikely(be16_to_cpu(leaf->hdr.info.magic) != XFS_ATTR_LEAF_MAGIC)) { in xfs_attr_leaf_list()
1269 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
1438 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_addname()
1539 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_removename()
1574 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_removename()
1629 bp->data)->hdr.info.magic) in xfs_attr_node_removename()
1799 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC); in xfs_attr_node_get()
1849 switch (be16_to_cpu(node->hdr.info.magic)) { in xfs_attr_node_list()
1899 if (be16_to_cpu(node->hdr.info.magic) in xfs_attr_node_list()
1902 if (unlikely(be16_to_cpu(node->hdr.info.magic) in xfs_attr_node_list()
[all …]
/fs/hpfs/
Dhpfs.h62 unsigned short magic; /* aa55 */ member
74 unsigned magic; /* f995 e849 */ member
110 unsigned magic; /* f991 1849 */ member
182 unsigned magic; /* 4945 21f7 */ member
204 unsigned magic; /* 8945 21f7 */ member
258 unsigned magic; /* 77e4 0aae */ member
372 unsigned magic; /* f7e4 0aae */ member
433 unsigned magic; /* 37e4 0aae */ member
Dmap.c49 if (cp->magic != CP_DIR_MAGIC) { in hpfs_load_code_page()
50 printk("HPFS: Code page directory magic doesn't match (magic = %08x)\n", cp->magic); in hpfs_load_code_page()
128 if (fnode->magic != FNODE_MAGIC) { in hpfs_map_fnode()
181 if (anode->magic != ANODE_MAGIC || anode->self != ano) { in hpfs_map_anode()
222 if (dnode->magic != DNODE_MAGIC) { in hpfs_map_dnode()
Dalloc.c413 d->magic = DNODE_MAGIC; in hpfs_alloc_dnode()
433 f->magic = FNODE_MAGIC; in hpfs_alloc_fnode()
450 a->magic = ANODE_MAGIC; in hpfs_alloc_anode()
/fs/
Dbinfmt_misc.c51 char *magic; /* magic or filename extension */ member
82 if (p && !strcmp(e->magic, p + 1)) in check_file()
90 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file()
94 if ((*s++ ^ e->magic[j])) in check_file()
346 e->magic = p; in create_entry()
351 if (!e->magic[0]) in create_entry()
360 e->size = unquote(e->magic); in create_entry()
370 e->magic = p; in create_entry()
375 if (!e->magic[0] || strchr(e->magic, '/')) in create_entry()
470 sprintf(dp, "extension .%s\n", e->magic); in entry_status()
[all …]
/fs/partitions/
Dacorn.c65 __le32 magic; member
87 if (rr->magic == RISCIX_MAGIC) { in riscix_partition()
119 __le32 magic; member
143 while (linuxp->magic == cpu_to_le32(LINUX_NATIVE_MAGIC) || in linux_partition()
144 linuxp->magic == cpu_to_le32(LINUX_SWAP_MAGIC)) { in linux_partition()
485 char magic[6]; member
536 if (memcmp(p->magic, "Eesox", 6)) in adfspart_check_EESOX()
Dsgi.c33 __be32 magic; in sgi_partition() local
46 magic = label->magic_mushroom; in sgi_partition()
47 if(be32_to_cpu(magic) != SGI_LABEL_MAGIC) { in sgi_partition()
Dsun.c55 __be16 magic; /* Magic number */ in sun_partition() member
69 if (be16_to_cpu(label->magic) != SUN_LABEL_MAGIC) { in sun_partition()
/fs/ubifs/
Dscan.c73 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()
Dio.c99 uint32_t crc, node_crc, magic; in ubifs_check_node() local
105 magic = le32_to_cpu(ch->magic); in ubifs_check_node()
106 if (magic != UBIFS_NODE_MAGIC) { in ubifs_check_node()
109 magic, UBIFS_NODE_MAGIC); in ubifs_check_node()
186 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_pad()
245 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prepare_node()
278 ch->magic = cpu_to_le32(UBIFS_NODE_MAGIC); in ubifs_prep_grp_node()
/fs/ntfs/
Dmst.c81 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()
Dlogfile.c94 if (ntfs_is_chkd_record(rp->magic) && !le16_to_cpu(rp->usa_count)) { in ntfs_check_restart_page_header()
133 if (!ntfs_is_chkd_record(rp->magic) && sle64_to_cpu(rp->chkdsk_lsn)) { in ntfs_check_restart_page_header()
420 if ((!ntfs_is_chkd_record(trp->magic) || le16_to_cpu(trp->usa_count)) in ntfs_check_and_load_restart_page()
443 if (ntfs_is_rstr_record(rp->magic) && in ntfs_check_and_load_restart_page()
451 if (ntfs_is_rstr_record(rp->magic)) in ntfs_check_and_load_restart_page()
690 if (!ntfs_is_rstr_record(rp->magic) && in ntfs_is_logfile_clean()
691 !ntfs_is_chkd_record(rp->magic)) { in ntfs_is_logfile_clean()
Dlogfile.h70 /* 0*/ NTFS_RECORD_TYPE magic; /* The magic is "RSTR". */ member
/fs/gfs2/
Dutil.h86 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_meta_check_i() local
87 if (unlikely(magic != GFS2_MAGIC)) in gfs2_meta_check_i()
109 u32 magic = be32_to_cpu(mh->mh_magic); in gfs2_metatype_check_i() local
111 if (unlikely(magic != GFS2_MAGIC)) in gfs2_metatype_check_i()
/fs/autofs4/
Ddev-ioctl.c604 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local
616 param->ismountpoint.out.magic = magic = 0; in autofs_dev_ioctl_ismountpoint()
647 magic = nd.path.dentry->d_inode->i_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
667 magic = inode->i_sb->s_magic; in autofs_dev_ioctl_ismountpoint()
673 param->ismountpoint.out.magic = magic; in autofs_dev_ioctl_ismountpoint()
793 if (!sbi || sbi->magic != AUTOFS_SBI_MAGIC) { in _autofs_dev_ioctl()
/fs/cramfs/
Dinode.c247 if (super.magic != CRAMFS_MAGIC) { in cramfs_fill_super()
249 if (super.magic == CRAMFS_MAGIC_WEND) { in cramfs_fill_super()
259 if (super.magic != CRAMFS_MAGIC) { in cramfs_fill_super()
260 if (super.magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_fill_super()
289 sbi->magic=super.magic; in cramfs_fill_super()
/fs/jffs2/
Dscan.c480 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock()
499 if (je32_to_cpu(sm->magic) == JFFS2_SUM_MAGIC) { in jffs2_scan_eraseblock()
694 if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { in jffs2_scan_eraseblock()
701 if (je16_to_cpu(node->magic) == JFFS2_DIRTY_BITMASK) { in jffs2_scan_eraseblock()
708 if (je16_to_cpu(node->magic) == JFFS2_OLD_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
716 if (je16_to_cpu(node->magic) != JFFS2_MAGIC_BITMASK) { in jffs2_scan_eraseblock()
720 je16_to_cpu(node->magic)); in jffs2_scan_eraseblock()
727 crcnode.magic = node->magic; in jffs2_scan_eraseblock()
734 ofs, je16_to_cpu(node->magic), in jffs2_scan_eraseblock()
Dwrite.c43 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_new_inode()
363 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_inode_range()
495 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_create()
558 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_unlink()
673 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_link()
/fs/befs/
Dbefs_fs_types.h217 fs32 magic; member
227 u32 magic; member

1234