/fs/xfs/ |
D | kmem.c | 36 void *ptr; in kmem_zalloc_greedy() local 39 while (!(ptr = kmem_zalloc_large(kmsize))) { in kmem_zalloc_greedy() 43 if (ptr) in kmem_zalloc_greedy() 45 return ptr; in kmem_zalloc_greedy() 53 void *ptr; in kmem_alloc() local 56 ptr = kmalloc(size, lflags); in kmem_alloc() 57 if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP))) in kmem_alloc() 58 return ptr; in kmem_alloc() 70 void *ptr; in kmem_zalloc() local 72 ptr = kmem_alloc(size, flags); in kmem_zalloc() [all …]
|
D | xfs_btree.c | 183 union xfs_btree_ptr *ptr, /* btree block disk address */ in xfs_btree_check_ptr() argument 189 be64_to_cpu((&ptr->l)[index]), level); in xfs_btree_check_ptr() 192 be32_to_cpu((&ptr->s)[index]), level); in xfs_btree_check_ptr() 791 union xfs_btree_ptr *ptr) in xfs_btree_ptr_is_null() argument 794 return ptr->l == cpu_to_be64(NULLDFSBNO); in xfs_btree_ptr_is_null() 796 return ptr->s == cpu_to_be32(NULLAGBLOCK); in xfs_btree_ptr_is_null() 802 union xfs_btree_ptr *ptr) in xfs_btree_set_ptr_null() argument 805 ptr->l = cpu_to_be64(NULLDFSBNO); in xfs_btree_set_ptr_null() 807 ptr->s = cpu_to_be32(NULLAGBLOCK); in xfs_btree_set_ptr_null() 817 union xfs_btree_ptr *ptr, in xfs_btree_get_sibling() argument [all …]
|
D | xfs_alloc_btree.c | 51 union xfs_btree_ptr *ptr, in xfs_allocbt_set_root() argument 60 ASSERT(ptr->s != 0); in xfs_allocbt_set_root() 62 agf->agf_roots[btnum] = ptr->s; in xfs_allocbt_set_root() 136 int ptr, in xfs_allocbt_update_lastrec() argument 153 if (ptr != xfs_btree_get_numrecs(block)) in xfs_allocbt_update_lastrec() 165 if (ptr <= numrecs) in xfs_allocbt_update_lastrec() 167 ASSERT(ptr == numrecs + 1); in xfs_allocbt_update_lastrec() 243 union xfs_btree_ptr *ptr) in xfs_allocbt_init_ptr_from_cur() argument 250 ptr->s = agf->agf_roots[cur->bc_btnum]; in xfs_allocbt_init_ptr_from_cur()
|
D | kmem.h | 66 static inline void kmem_free_large(void *ptr) in kmem_free_large() argument 68 vfree(ptr); in kmem_free_large() 98 kmem_zone_free(kmem_zone_t *zone, void *ptr) in kmem_zone_free() argument 100 kmem_cache_free(zone, ptr); in kmem_zone_free()
|
D | xfs_log_priv.h | 61 static inline uint xlog_get_cycle(char *ptr) in xlog_get_cycle() argument 63 if (be32_to_cpu(*(__be32 *)ptr) == XLOG_HEADER_MAGIC_NUM) in xlog_get_cycle() 64 return be32_to_cpu(*((__be32 *)ptr + 1)); in xlog_get_cycle() 66 return be32_to_cpu(*(__be32 *)ptr); in xlog_get_cycle() 560 xlog_write_adv_cnt(void **ptr, int *len, int *off, size_t bytes) in xlog_write_adv_cnt() argument 562 *ptr += bytes; in xlog_write_adv_cnt()
|
/fs/nilfs2/ |
D | direct.c | 43 __u64 key, __u64 ptr) in nilfs_direct_set_ptr() argument 45 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr() 51 __u64 ptr; in nilfs_direct_lookup() local 55 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup() 56 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup() 59 *ptrp = ptr; in nilfs_direct_lookup() 68 __u64 ptr, ptr2; in nilfs_direct_lookup_contig() local 74 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig() 75 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup_contig() 80 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_direct_lookup_contig() [all …]
|
D | btree.c | 70 __u64 ptr, struct buffer_head **bhp) in nilfs_btree_get_new_block() argument 75 bh = nilfs_btnode_create_block(btnc, ptr); in nilfs_btree_get_new_block() 166 nilfs_btree_node_set_ptr(struct nilfs_btree_node *node, int index, __u64 ptr, in nilfs_btree_node_set_ptr() argument 169 *(nilfs_btree_node_dptrs(node, ncmax) + index) = cpu_to_le64(ptr); in nilfs_btree_node_set_ptr() 250 __u64 key, __u64 ptr, int ncmax) in nilfs_btree_node_insert() argument 266 dptrs[index] = cpu_to_le64(ptr); in nilfs_btree_node_insert() 276 __u64 ptr; in nilfs_btree_node_delete() local 284 ptr = le64_to_cpu(dptrs[index]); in nilfs_btree_node_delete() 289 *ptrp = ptr; in nilfs_btree_node_delete() 444 static int __nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, in __nilfs_btree_get_block() argument [all …]
|
D | bmap.h | 92 static inline int nilfs_bmap_is_new_ptr(unsigned long ptr) in nilfs_bmap_is_new_ptr() argument 94 return !!(ptr & NILFS_BMAP_NEW_PTR_INIT); in nilfs_bmap_is_new_ptr() 167 __u64 *ptr) in nilfs_bmap_lookup() argument 169 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup() 231 __u64 ptr) in nilfs_bmap_set_target_v() argument 234 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v()
|
/fs/btrfs/ |
D | inode-item.c | 29 unsigned long ptr; in find_name_in_backref() local 37 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in find_name_in_backref() 39 ref = (struct btrfs_inode_ref *)(ptr + cur_offset); in find_name_in_backref() 89 unsigned long ptr; in btrfs_del_inode_ref() local 127 ptr = (unsigned long)ref; in btrfs_del_inode_ref() 130 memmove_extent_buffer(leaf, ptr, ptr + sub_item_len, in btrfs_del_inode_ref() 131 item_size - (ptr + sub_item_len - item_start)); in btrfs_del_inode_ref() 148 unsigned long ptr; in btrfs_insert_inode_ref() local 176 ptr = (unsigned long)(ref + 1); in btrfs_insert_inode_ref() 187 ptr = (unsigned long)(ref + 1); in btrfs_insert_inode_ref() [all …]
|
D | root-tree.c | 93 unsigned long ptr; in btrfs_update_root() local 115 ptr = btrfs_item_ptr_offset(l, slot); in btrfs_update_root() 116 write_extent_buffer(l, item, ptr, sizeof(*item)); in btrfs_update_root() 315 unsigned long ptr; in btrfs_del_root_ref() local 336 ptr = (unsigned long)(ref + 1); in btrfs_del_root_ref() 337 WARN_ON(memcmp_extent_buffer(leaf, name, ptr, name_len)); in btrfs_del_root_ref() 401 unsigned long ptr; in btrfs_add_root_ref() local 424 ptr = (unsigned long)(ref + 1); in btrfs_add_root_ref() 425 write_extent_buffer(leaf, name, ptr, name_len); in btrfs_add_root_ref()
|
D | backref.c | 404 unsigned long ptr; in __add_inline_refs() local 422 ptr = (unsigned long)(ei + 1); in __add_inline_refs() 429 info = (struct btrfs_tree_block_info *)ptr; in __add_inline_refs() 433 ptr += sizeof(struct btrfs_tree_block_info); in __add_inline_refs() 434 BUG_ON(ptr > end); in __add_inline_refs() 439 while (ptr < end) { in __add_inline_refs() 444 iref = (struct btrfs_extent_inline_ref *)ptr; in __add_inline_refs() 488 ptr += btrfs_extent_inline_ref_size(type); in __add_inline_refs() 1016 static int __get_extent_inline_ref(unsigned long *ptr, struct extent_buffer *eb, in __get_extent_inline_ref() argument 1025 if (!*ptr) { in __get_extent_inline_ref() [all …]
|
D | dir-item.c | 42 char *ptr; in insert_with_overflow() local 58 ptr = btrfs_item_ptr(leaf, path->slots[0], char); in insert_with_overflow() 60 ptr += btrfs_item_size(leaf, item) - data_size; in insert_with_overflow() 61 return (struct btrfs_dir_item *)ptr; in insert_with_overflow() 380 unsigned long ptr = (unsigned long)di; in btrfs_delete_one_dir_name() local 384 memmove_extent_buffer(leaf, ptr, ptr + sub_item_len, in btrfs_delete_one_dir_name() 385 item_len - (ptr + sub_item_len - start)); in btrfs_delete_one_dir_name()
|
D | print-tree.c | 67 unsigned long ptr; in print_extent_item() local 109 ptr = (unsigned long)iref; in print_extent_item() 111 while (ptr < end) { in print_extent_item() 112 iref = (struct btrfs_extent_inline_ref *)ptr; in print_extent_item() 138 ptr += btrfs_extent_inline_ref_size(type); in print_extent_item() 140 WARN_ON(ptr > end); in print_extent_item()
|
/fs/coda/ |
D | coda_linux.h | 60 #define CODA_ALLOC(ptr, cast, size) do { \ argument 62 ptr = kzalloc((unsigned long) size, GFP_KERNEL); \ 64 ptr = (cast)vzalloc((unsigned long) size); \ 65 if (!ptr) \ 70 #define CODA_FREE(ptr,size) \ argument 71 do { if (size < PAGE_SIZE) kfree((ptr)); else vfree((ptr)); } while (0)
|
/fs/udf/ |
D | directory.c | 161 uint8_t *ptr; in udf_get_fileident() local 170 ptr = buffer; in udf_get_fileident() 173 ptr += *offset; in udf_get_fileident() 174 fi = (struct fileIdentDesc *)ptr; in udf_get_fileident() 198 struct short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, uint32_t *offset, in udf_get_fileshortad() argument 203 if ((!ptr) || (!offset)) { in udf_get_fileshortad() 211 sa = (struct short_ad *)ptr; in udf_get_fileshortad() 221 struct long_ad *udf_get_filelongad(uint8_t *ptr, int maxoffset, uint32_t *offset, int inc) in udf_get_filelongad() argument 225 if ((!ptr) || (!offset)) { in udf_get_filelongad() 233 la = (struct long_ad *)ptr; in udf_get_filelongad()
|
D | unicode.c | 49 int udf_build_ustr(struct ustr *dest, dstring *ptr, int size) in udf_build_ustr() argument 53 if (!dest || !ptr || !size) in udf_build_ustr() 57 usesize = min_t(size_t, ptr[size - 1], sizeof(dest->u_name)); in udf_build_ustr() 59 dest->u_cmpID = ptr[0]; in udf_build_ustr() 61 memcpy(dest->u_name, ptr + 1, usesize); in udf_build_ustr() 70 static int udf_build_ustr_exact(struct ustr *dest, dstring *ptr, int exactsize) in udf_build_ustr_exact() argument 72 if ((!dest) || (!ptr) || (!exactsize)) in udf_build_ustr_exact() 76 dest->u_cmpID = ptr[0]; in udf_build_ustr_exact() 78 memcpy(dest->u_name, ptr + 1, exactsize - 1); in udf_build_ustr_exact()
|
/fs/adfs/ |
D | dir_f.c | 44 static inline int adfs_readname(char *buf, char *ptr, int maxlen) in adfs_readname() argument 48 while ((unsigned char)*ptr >= ' ' && maxlen--) { in adfs_readname() 49 if (*ptr == '/') in adfs_readname() 52 *buf++ = *ptr; in adfs_readname() 53 ptr++; in adfs_readname() 89 union { __le32 *ptr32; u8 *ptr8; } ptr, end; in adfs_dir_checkbyte() local 113 ptr.ptr8 = bufoff(bh, i); in adfs_dir_checkbyte() 114 end.ptr8 = ptr.ptr8 + last - i; in adfs_dir_checkbyte() 117 dircheck = *ptr.ptr8++ ^ ror13(dircheck); in adfs_dir_checkbyte() 118 } while (ptr.ptr8 < end.ptr8); in adfs_dir_checkbyte() [all …]
|
/fs/gfs2/ |
D | bmap.c | 317 __be64 *ptr; in lookup_metapath() local 322 ptr = metapointer(x, mp); in lookup_metapath() 323 dblock = be64_to_cpu(*ptr); in lookup_metapath() 361 static inline unsigned int gfs2_extent_length(void *start, unsigned int len, __be64 *ptr, unsigned … in gfs2_extent_length() argument 364 const __be64 *first = ptr; in gfs2_extent_length() 365 u64 d = be64_to_cpu(*ptr); in gfs2_extent_length() 369 ptr++; in gfs2_extent_length() 370 if (ptr >= end) in gfs2_extent_length() 376 } while(be64_to_cpu(*ptr) == d); in gfs2_extent_length() 377 if (ptr >= end) in gfs2_extent_length() [all …]
|
D | lops.c | 290 __be64 *ptr; in buf_lo_before_commit() local 306 ptr = bh_log_ptr(bh); in buf_lo_before_commit() 313 *ptr++ = cpu_to_be64(bd1->bd_bh->b_blocknr); in buf_lo_before_commit() 369 struct gfs2_log_descriptor *ld, __be64 *ptr, in buf_lo_scan_elements() argument 386 blkno = be64_to_cpu(*ptr++); in buf_lo_scan_elements() 520 struct gfs2_log_descriptor *ld, __be64 *ptr, in revoke_lo_scan_elements() argument 636 __be32 *ptr; in gfs2_check_magic() local 640 ptr = kaddr + bh_offset(bh); in gfs2_check_magic() 641 if (*ptr == cpu_to_be32(GFS2_MAGIC)) in gfs2_check_magic() 653 __be64 *ptr; in gfs2_write_blocks() local [all …]
|
/fs/ocfs2/ |
D | ocfs2.h | 671 #define OCFS2_IS_VALID_DINODE(ptr) \ argument 672 (!strcmp((ptr)->i_signature, OCFS2_INODE_SIGNATURE)) 674 #define OCFS2_IS_VALID_EXTENT_BLOCK(ptr) \ argument 675 (!strcmp((ptr)->h_signature, OCFS2_EXTENT_BLOCK_SIGNATURE)) 677 #define OCFS2_IS_VALID_GROUP_DESC(ptr) \ argument 678 (!strcmp((ptr)->bg_signature, OCFS2_GROUP_DESC_SIGNATURE)) 681 #define OCFS2_IS_VALID_XATTR_BLOCK(ptr) \ argument 682 (!strcmp((ptr)->xb_signature, OCFS2_XATTR_BLOCK_SIGNATURE)) 684 #define OCFS2_IS_VALID_DIR_TRAILER(ptr) \ argument 685 (!strcmp((ptr)->db_signature, OCFS2_DIR_TRAILER_SIGNATURE)) [all …]
|
D | stack_user.c | 369 char *ptr = NULL; in ocfs2_control_do_setnode_msg() local 384 nodenum = simple_strtol(msg->nodestr, &ptr, 16); in ocfs2_control_do_setnode_msg() 385 if (!ptr || *ptr) in ocfs2_control_do_setnode_msg() 400 char *ptr = NULL; in ocfs2_control_do_setversion_msg() local 418 major = simple_strtol(msg->major, &ptr, 16); in ocfs2_control_do_setversion_msg() 419 if (!ptr || *ptr) in ocfs2_control_do_setversion_msg() 421 minor = simple_strtol(msg->minor, &ptr, 16); in ocfs2_control_do_setversion_msg() 422 if (!ptr || *ptr) in ocfs2_control_do_setversion_msg()
|
/fs/ramfs/ |
D | file-nommu.c | 206 struct page **pages = NULL, **ptr, *page; in ramfs_nommu_get_unmapped_area() local 235 ptr = pages; in ramfs_nommu_get_unmapped_area() 236 page = *ptr++; in ramfs_nommu_get_unmapped_area() 239 if (*ptr++ != page++) in ramfs_nommu_get_unmapped_area() 246 ptr = pages; in ramfs_nommu_get_unmapped_area() 248 put_page(*ptr++); in ramfs_nommu_get_unmapped_area()
|
/fs/omfs/ |
D | inode.c | 85 unsigned char *ptr = (unsigned char *) oi; in omfs_update_checksums() local 90 crc = crc_itu_t(crc, ptr + ofs, count); in omfs_update_checksums() 93 xor = ptr[0]; in omfs_update_checksums() 95 xor ^= ptr[i]; in omfs_update_checksums() 314 unsigned long **ptr; in omfs_get_imap() local 332 ptr = sbi->s_imap; in omfs_get_imap() 337 *ptr = kmalloc(sb->s_blocksize, GFP_KERNEL); in omfs_get_imap() 338 if (!*ptr) { in omfs_get_imap() 342 memcpy(*ptr, bh->b_data, sb->s_blocksize); in omfs_get_imap() 344 memset((void *)*ptr + count, 0xff, in omfs_get_imap() [all …]
|
/fs/hfs/ |
D | mdb.c | 72 char *ptr; in hfs_mdb_get() local 177 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_get() 186 memcpy(ptr, bh->b_data + off2, len); in hfs_mdb_get() 188 ptr += len; in hfs_mdb_get() 296 char *ptr; in hfs_mdb_commit() local 303 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_commit() 311 memcpy(bh->b_data + off, ptr, len); in hfs_mdb_commit() 316 ptr += len; in hfs_mdb_commit()
|
/fs/ufs/ |
D | inode.c | 422 unsigned long ptr,phys; in ufs_getfrag_block() local 451 ptr = fragment; in ufs_getfrag_block() 470 if (ptr < UFS_NDIR_FRAGMENT) { in ufs_getfrag_block() 471 bh = GET_INODE_DATABLOCK(ptr); in ufs_getfrag_block() 474 ptr -= UFS_NDIR_FRAGMENT; in ufs_getfrag_block() 475 if (ptr < (1 << (uspi->s_apbshift + uspi->s_fpbshift))) { in ufs_getfrag_block() 476 bh = GET_INODE_PTR(UFS_IND_FRAGMENT + (ptr >> uspi->s_apbshift)); in ufs_getfrag_block() 479 ptr -= 1 << (uspi->s_apbshift + uspi->s_fpbshift); in ufs_getfrag_block() 480 if (ptr < (1 << (uspi->s_2apbshift + uspi->s_fpbshift))) { in ufs_getfrag_block() 481 bh = GET_INODE_PTR(UFS_DIND_FRAGMENT + (ptr >> uspi->s_2apbshift)); in ufs_getfrag_block() [all …]
|