Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 39) sorted by relevance

12

/fs/ceph/
Dmetric.c63 cap->header.type = cpu_to_le32(CLIENT_METRIC_TYPE_CAP_INFO); in ceph_mdsc_send_metrics()
64 cap->header.ver = 1; in ceph_mdsc_send_metrics()
65 cap->header.compat = 1; in ceph_mdsc_send_metrics()
66 cap->header.data_len = cpu_to_le32(sizeof(*cap) - header_len); in ceph_mdsc_send_metrics()
74 read->header.type = cpu_to_le32(CLIENT_METRIC_TYPE_READ_LATENCY); in ceph_mdsc_send_metrics()
75 read->header.ver = 2; in ceph_mdsc_send_metrics()
76 read->header.compat = 1; in ceph_mdsc_send_metrics()
77 read->header.data_len = cpu_to_le32(sizeof(*read) - header_len); in ceph_mdsc_send_metrics()
87 write->header.type = cpu_to_le32(CLIENT_METRIC_TYPE_WRITE_LATENCY); in ceph_mdsc_send_metrics()
88 write->header.ver = 2; in ceph_mdsc_send_metrics()
[all …]
Dmetric.h66 struct ceph_metric_header header; member
74 struct ceph_metric_header header; member
83 struct ceph_metric_header header; member
92 struct ceph_metric_header header; member
101 struct ceph_metric_header header; member
109 struct ceph_metric_header header; member
116 struct ceph_metric_header header; member
123 struct ceph_metric_header header; member
130 struct ceph_metric_header header; member
137 struct ceph_metric_header header; member
Dinode.c2305 struct ceph_fscrypt_truncate_size_header header; in fill_fscrypt_truncate() local
2354 header.ver = 1; in fill_fscrypt_truncate()
2355 header.compat = 1; in fill_fscrypt_truncate()
2356 header.change_attr = cpu_to_le64(inode_peek_iversion_raw(inode)); in fill_fscrypt_truncate()
2362 header.block_size = cpu_to_le32(CEPH_FSCRYPT_BLOCK_SIZE); in fill_fscrypt_truncate()
2378 header.data_len = cpu_to_le32(8 + 8 + 4); in fill_fscrypt_truncate()
2379 header.file_offset = 0; in fill_fscrypt_truncate()
2382 header.data_len = cpu_to_le32(8 + 8 + 4 + CEPH_FSCRYPT_BLOCK_SIZE); in fill_fscrypt_truncate()
2383 header.file_offset = cpu_to_le64(orig_pos); in fill_fscrypt_truncate()
2401 ret = ceph_pagelist_append(pagelist, &header, sizeof(header)); in fill_fscrypt_truncate()
[all …]
/fs/jfs/
Djfs_xtree.c58 if ((le16_to_cpu((P)->header.nextindex) < XTENTRYSTART) || \
59 (le16_to_cpu((P)->header.nextindex) > \
60 le16_to_cpu((P)->header.maxentry)) || \
61 (le16_to_cpu((P)->header.maxentry) > \
267 (p->header.flag & BT_LEAF) && in xtSearch()
269 le16_to_cpu(p->header.nextindex)) { in xtSearch()
285 le16_to_cpu(p->header.nextindex)) { in xtSearch()
326 if (p->header.nextindex == /* little-endian */ in xtSearch()
327 p->header.maxentry) in xtSearch()
352 lim = le16_to_cpu(p->header.nextindex) - XTENTRYSTART; in xtSearch()
[all …]
Djfs_dtree.c118 if (((P)->header.nextindex > \
119 (((BN) == 0) ? DTROOTMAXSLOT : (P)->header.maxslot)) || \
120 ((BN) && ((P)->header.maxslot > DTPAGEMAXSLOT))) { \
633 for (base = 0, lim = p->header.nextindex; lim; lim >>= 1) { in dtSearch()
641 if (p->header.flag & BT_LEAF) { in dtSearch()
660 if (p->header.flag & BT_LEAF) { in dtSearch()
730 if (p->header.flag & BT_LEAF) { in dtSearch()
837 if (p->header.freelist == 0) in dtInsert()
864 if (n > p->header.freecnt) { in dtInsert()
896 if (!(p->header.flag & BT_ROOT)) { in dtInsert()
[all …]
Djfs_dtree.h144 } header; /* (32) */ member
150 (le32_to_cpu(JFS_IP(IP)->i_dtroot.header.idotdot))
154 #define dtEmpty(IP) (JFS_IP(IP)->i_dtroot.header.nextindex == 0)
195 } header; /* (32) */ member
221 #define DT_GETSTBL(p) ( ((p)->header.flag & BT_ROOT) ?\
222 ((dtroot_t *)(p))->header.stbl : \
223 (s8 *)&(p)->slot[(p)->header.stblindex] )
Djfs_dinode.h85 #define di_parent di_dtroot.header.idotdot
86 #define di_DASD di_dtroot.header.DASD
Djfs_xtree.h85 struct xtheader header; member
93 struct xtheader header; member
/fs/proc/
Dproc_sysctl.c22 #define list_for_each_table_entry(entry, header) \ argument
23 entry = header->ctl_table; \
24 for (size_t i = 0 ; i < header->ctl_table_size && entry->procname; ++i, entry++)
77 .default_set.dir.header = {
89 static void drop_sysctl_table(struct ctl_table_header *header);
93 static void put_links(struct ctl_table_header *header);
97 if (dir->header.parent) in sysctl_print_dir()
98 sysctl_print_dir(dir->header.parent); in sysctl_print_dir()
99 pr_cont("%s/", dir->header.ctl_table[0].procname); in sysctl_print_dir()
127 head = ctl_node->header; in find_entry()
[all …]
Darray.c227 void render_sigset_t(struct seq_file *m, const char *header, in render_sigset_t() argument
232 seq_puts(m, header); in render_sigset_t()
303 static void render_cap_t(struct seq_file *m, const char *header, in render_cap_t() argument
306 seq_puts(m, header); in render_cap_t()
/fs/ext2/
Dxattr.c139 ext2_xattr_header_valid(struct ext2_xattr_header *header) in ext2_xattr_header_valid() argument
141 if (header->h_magic != cpu_to_le32(EXT2_XATTR_MAGIC) || in ext2_xattr_header_valid()
142 header->h_blocks != cpu_to_le32(1)) in ext2_xattr_header_valid()
411 struct ext2_xattr_header *header = NULL; in ext2_xattr_set() local
452 header = HDR(bh); in ext2_xattr_set()
454 if (!ext2_xattr_header_valid(header)) { in ext2_xattr_set()
489 free = min_offs - ((char*)last - (char*)header) - sizeof(__u32); in ext2_xattr_set()
518 if (header) { in ext2_xattr_set()
522 if (header->h_refcount == cpu_to_le32(1)) { in ext2_xattr_set()
523 __u32 hash = le32_to_cpu(header->h_hash); in ext2_xattr_set()
[all …]
/fs/nfs/blocklayout/
Dblocklayout.c169 static void bl_mark_devices_unavailable(struct nfs_pgio_header *header, bool rw) in bl_mark_devices_unavailable() argument
171 struct pnfs_block_layout *bl = BLK_LSEG2EXT(header->lseg); in bl_mark_devices_unavailable()
172 size_t bytes_left = header->args.count; in bl_mark_devices_unavailable()
176 isect = header->args.offset >> SECTOR_SHIFT; in bl_mark_devices_unavailable()
177 bytes_left += header->args.offset - (isect << SECTOR_SHIFT); in bl_mark_devices_unavailable()
197 struct nfs_pgio_header *header = par->data; in bl_end_io_read() local
199 if (!header->pnfs_error) in bl_end_io_read()
200 header->pnfs_error = -EIO; in bl_end_io_read()
201 pnfs_set_lo_fail(header->lseg); in bl_end_io_read()
202 bl_mark_devices_unavailable(header, false); in bl_end_io_read()
[all …]
/fs/nilfs2/
Dcpfile.c221 struct nilfs_cpfile_header *header; in nilfs_cpfile_get_checkpoint() local
255 header = nilfs_cpfile_block_get_header(cpfile, header_bh, in nilfs_cpfile_get_checkpoint()
257 le64_add_cpu(&header->ch_ncheckpoints, 1); in nilfs_cpfile_get_checkpoint()
316 struct nilfs_cpfile_header *header; in nilfs_cpfile_delete_checkpoints() local
393 header = nilfs_cpfile_block_get_header(cpfile, header_bh, in nilfs_cpfile_delete_checkpoints()
395 le64_add_cpu(&header->ch_ncheckpoints, -(u64)tnicps); in nilfs_cpfile_delete_checkpoints()
480 struct nilfs_cpfile_header *header; in nilfs_cpfile_do_get_ssinfo() local
495 header = nilfs_cpfile_block_get_header(cpfile, bh, kaddr); in nilfs_cpfile_do_get_ssinfo()
496 curr = le64_to_cpu(header->ch_snapshot_list.ssl_next); in nilfs_cpfile_do_get_ssinfo()
603 struct nilfs_cpfile_header *header; in nilfs_cpfile_block_get_snapshot_list() local
[all …]
Dsufile.c107 struct nilfs_sufile_header *header; in nilfs_sufile_mod_counter() local
111 header = kaddr + bh_offset(header_bh); in nilfs_sufile_mod_counter()
112 le64_add_cpu(&header->sh_ncleansegs, ncleanadd); in nilfs_sufile_mod_counter()
113 le64_add_cpu(&header->sh_ndirtysegs, ndirtyadd); in nilfs_sufile_mod_counter()
304 struct nilfs_sufile_header *header; in nilfs_sufile_alloc() local
319 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
320 last_alloc = le64_to_cpu(header->sh_last_alloc); in nilfs_sufile_alloc()
369 header = kaddr + bh_offset(header_bh); in nilfs_sufile_alloc()
370 le64_add_cpu(&header->sh_ncleansegs, -1); in nilfs_sufile_alloc()
371 le64_add_cpu(&header->sh_ndirtysegs, 1); in nilfs_sufile_alloc()
[all …]
/fs/ext4/
Dxattr.c213 struct ext4_xattr_ibody_header *header = value_start; in check_xattrs() local
215 header -= 1; in check_xattrs()
216 if (end - (void *)header < sizeof(*header) + sizeof(u32)) { in check_xattrs()
220 if (header->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC)) { in check_xattrs()
312 __xattr_check_inode(struct inode *inode, struct ext4_xattr_ibody_header *header, in __xattr_check_inode() argument
315 return check_xattrs(inode, NULL, IFIRST(header), end, IFIRST(header), in __xattr_check_inode()
319 #define xattr_check_inode(inode, header, end) \ argument
320 __xattr_check_inode((inode), (header), (end), __func__, __LINE__)
637 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_get() local
651 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get()
[all …]
Dinline.c34 struct ext4_xattr_ibody_header *header; in get_max_inline_xattr_value_size() local
59 header = IHDR(inode, raw_inode); in get_max_inline_xattr_value_size()
60 entry = IFIRST(header); in get_max_inline_xattr_value_size()
80 ((void *)entry - (void *)IFIRST(header)) - sizeof(__u32); in get_max_inline_xattr_value_size()
183 struct ext4_xattr_ibody_header *header; in ext4_read_inline_data() local
203 header = IHDR(inode, raw_inode); in ext4_read_inline_data()
210 (void *)IFIRST(header) + le16_to_cpu(entry->e_value_offs), len); in ext4_read_inline_data()
227 struct ext4_xattr_ibody_header *header; in ext4_write_inline_data() local
254 header = IHDR(inode, raw_inode); in ext4_write_inline_data()
258 memcpy((void *)IFIRST(header) + le16_to_cpu(entry->e_value_offs) + pos, in ext4_write_inline_data()
[all …]
/fs/jffs2/
Dacl.c58 struct jffs2_acl_header *header = value; in jffs2_acl_from_medium() local
68 ver = je32_to_cpu(header->a_version); in jffs2_acl_from_medium()
130 struct jffs2_acl_header *header; in jffs2_acl_to_medium() local
136 header = kmalloc(struct_size(header, a_entries, acl->a_count), in jffs2_acl_to_medium()
138 if (!header) in jffs2_acl_to_medium()
140 header->a_version = cpu_to_je32(JFFS2_ACL_VERSION); in jffs2_acl_to_medium()
141 e = header + 1; in jffs2_acl_to_medium()
170 return header; in jffs2_acl_to_medium()
172 kfree(header); in jffs2_acl_to_medium()
/fs/dlm/
Dmidcomms.c508 switch (p->header.h_cmd) { in dlm_receive_buffer_3_2_trace()
537 switch (p->header.h_cmd) { in dlm_midcomms_receive_buffer()
661 uint16_t msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_2()
699 switch (p->header.h_cmd) { in dlm_midcomms_receive_buffer_3_2()
726 seq = le32_to_cpu(p->header.u.h_seq); in dlm_midcomms_receive_buffer_3_2()
739 msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_2()
740 switch (p->header.h_cmd) { in dlm_midcomms_receive_buffer_3_2()
774 seq = le32_to_cpu(p->header.u.h_seq); in dlm_midcomms_receive_buffer_3_2()
779 p->header.h_cmd, nodeid); in dlm_midcomms_receive_buffer_3_2()
789 uint16_t msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_1()
[all …]
Ddebug_fs.c419 int header; member
438 if (ri->header) { in table_seq_show()
440 ri->header = 0; in table_seq_show()
445 if (ri->header) { in table_seq_show()
447 ri->header = 0; in table_seq_show()
452 if (ri->header) { in table_seq_show()
454 ri->header = 0; in table_seq_show()
459 if (ri->header) { in table_seq_show()
461 ri->header = 0; in table_seq_show()
497 ri->header = 1; in table_seq_start()
/fs/ocfs2/
Dxattr.c120 struct ocfs2_xattr_header *header; member
925 struct ocfs2_xattr_header *header, in ocfs2_xattr_list_entries() argument
932 for (i = 0 ; i < le16_to_cpu(header->xh_count); i++) { in ocfs2_xattr_list_entries()
933 struct ocfs2_xattr_entry *entry = &header->xh_entries[i]; in ocfs2_xattr_list_entries()
935 name = (const char *)header + in ocfs2_xattr_list_entries()
971 struct ocfs2_xattr_header *header = NULL; in ocfs2_xattr_ibody_list() local
978 header = (struct ocfs2_xattr_header *) in ocfs2_xattr_ibody_list()
982 ret = ocfs2_xattr_list_entries(inode, header, buffer, buffer_size); in ocfs2_xattr_ibody_list()
1008 struct ocfs2_xattr_header *header = &xb->xb_attrs.xb_header; in ocfs2_xattr_block_list() local
1009 ret = ocfs2_xattr_list_entries(inode, header, in ocfs2_xattr_block_list()
[all …]
/fs/f2fs/
Dxattr.c391 struct f2fs_xattr_header *header; in read_all_xattrs() local
417 header = XATTR_HDR(txattr_addr); in read_all_xattrs()
420 if (le32_to_cpu(header->h_magic) != F2FS_XATTR_MAGIC) { in read_all_xattrs()
421 header->h_magic = cpu_to_le32(F2FS_XATTR_MAGIC); in read_all_xattrs()
422 header->h_refcount = cpu_to_le32(1); in read_all_xattrs()
/fs/jbd2/
Drevoke.c645 jbd2_journal_revoke_header_t *header; in flush_descriptor() local
650 header = (jbd2_journal_revoke_header_t *)descriptor->b_data; in flush_descriptor()
651 header->r_count = cpu_to_be32(offset); in flush_descriptor()
/fs/
Dposix_acl.c732 const struct posix_acl_xattr_header *header = value; in posix_acl_fix_xattr_common() local
735 if (!header) in posix_acl_fix_xattr_common()
739 if (header->a_version != cpu_to_le32(POSIX_ACL_XATTR_VERSION)) in posix_acl_fix_xattr_common()
778 const struct posix_acl_xattr_header *header = value; in posix_acl_from_xattr() local
779 const struct posix_acl_xattr_entry *entry = (const void *)(header + 1), *end; in posix_acl_from_xattr()
/fs/btrfs/
Dfree-space-cache.c86 struct btrfs_free_space_header *header; in __lookup_free_space_inode() local
105 header = btrfs_item_ptr(leaf, path->slots[0], in __lookup_free_space_inode()
107 btrfs_free_space_key(leaf, header, &disk_key); in __lookup_free_space_inode()
170 struct btrfs_free_space_header *header; in __create_free_space_inode() local
212 header = btrfs_item_ptr(leaf, path->slots[0], in __create_free_space_inode()
214 memzero_extent_buffer(leaf, (unsigned long)header, sizeof(*header)); in __create_free_space_inode()
215 btrfs_set_free_space_key(leaf, header, &disk_key); in __create_free_space_inode()
738 struct btrfs_free_space_header *header; in __load_free_space_cache() local
769 header = btrfs_item_ptr(leaf, path->slots[0], in __load_free_space_cache()
771 num_entries = btrfs_free_space_entries(leaf, header); in __load_free_space_cache()
[all …]
Dscrub.c609 struct btrfs_header *header; in scrub_verify_one_metadata() local
616 header = (struct btrfs_header *)(page_address(first_page) + first_off); in scrub_verify_one_metadata()
617 memcpy(on_disk_csum, header->csum, fs_info->csum_size); in scrub_verify_one_metadata()
619 if (logical != btrfs_stack_header_bytenr(header)) { in scrub_verify_one_metadata()
625 btrfs_stack_header_bytenr(header), logical); in scrub_verify_one_metadata()
628 if (memcmp(header->fsid, fs_info->fs_devices->metadata_uuid, in scrub_verify_one_metadata()
635 header->fsid, fs_info->fs_devices->fsid); in scrub_verify_one_metadata()
638 if (memcmp(header->chunk_tree_uuid, fs_info->chunk_tree_uuid, in scrub_verify_one_metadata()
645 header->chunk_tree_uuid, fs_info->chunk_tree_uuid); in scrub_verify_one_metadata()
675 btrfs_stack_header_generation(header)) { in scrub_verify_one_metadata()
[all …]

12