Searched refs:blkno (Results 1 - 80 of 80) sorted by relevance

/linux-4.4.14/fs/ocfs2/
H A Dexport.c55 u64 blkno = handle->ih_blkno; ocfs2_get_dentry() local
59 trace_ocfs2_get_dentry_begin(sb, handle, (unsigned long long)blkno); ocfs2_get_dentry()
61 if (blkno == 0) { ocfs2_get_dentry()
66 inode = ocfs2_ilookup(sb, blkno); ocfs2_get_dentry()
84 status = ocfs2_test_inode_bit(osb, blkno, &set); ocfs2_get_dentry()
88 * The blkno NFS gave us doesn't even show up ocfs2_get_dentry()
105 inode = ocfs2_iget(osb, blkno, 0, 0); ocfs2_get_dentry()
113 trace_ocfs2_get_dentry_stale((unsigned long long)blkno, ocfs2_get_dentry()
129 trace_ocfs2_get_dentry_generation((unsigned long long)blkno, ocfs2_get_dentry()
148 u64 blkno; ocfs2_get_parent() local
163 status = ocfs2_lookup_ino_from_name(dir, "..", 2, &blkno); ocfs2_get_parent()
169 parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); ocfs2_get_parent()
185 u64 blkno; ocfs2_encode_fh() local
206 blkno = OCFS2_I(inode)->ip_blkno; ocfs2_encode_fh()
209 trace_ocfs2_encode_fh_self((unsigned long long)blkno, generation); ocfs2_encode_fh()
212 fh[0] = cpu_to_le32((u32)(blkno >> 32)); ocfs2_encode_fh()
213 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); ocfs2_encode_fh()
217 blkno = OCFS2_I(parent)->ip_blkno; ocfs2_encode_fh()
220 fh[3] = cpu_to_le32((u32)(blkno >> 32)); ocfs2_encode_fh()
221 fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); ocfs2_encode_fh()
227 trace_ocfs2_encode_fh_parent((unsigned long long)blkno, ocfs2_encode_fh()
H A Ddir.h66 struct inode *inode, u64 blkno,
71 struct inode *inode, u64 blkno, ocfs2_add_entry()
77 inode, blkno, parent_fe_bh, lookup); ocfs2_add_entry()
90 u64 *blkno,
94 int namelen, u64 *blkno);
69 ocfs2_add_entry(handle_t *handle, struct dentry *dentry, struct inode *inode, u64 blkno, struct buffer_head *parent_fe_bh, struct ocfs2_dir_lookup_result *lookup) ocfs2_add_entry() argument
H A Docfs2_trace.h44 TP_PROTO(unsigned long long blkno),
45 TP_ARGS(blkno),
47 __field(unsigned long long, blkno)
50 __entry->blkno = blkno;
52 TP_printk("%llu", __entry->blkno)
437 TP_PROTO(int subtree_root, unsigned long long blkno,
439 TP_ARGS(subtree_root, blkno, depth),
442 __field(unsigned long long, blkno)
447 __entry->blkno = blkno;
451 __entry->blkno, __entry->depth)
549 TP_PROTO(unsigned long long blkno),
550 TP_ARGS(blkno),
552 __field(unsigned long long, blkno)
555 __entry->blkno = blkno;
557 TP_printk("%llu ", __entry->blkno)
624 TP_PROTO(unsigned long long blkno, int index,
626 TP_ARGS(blkno, index, start, num),
628 __field(unsigned long long, blkno)
634 __entry->blkno = blkno;
640 __entry->blkno, __entry->index,
646 TP_PROTO(unsigned long long blkno, int index, \
648 TP_ARGS(blkno, index, start, num))
670 unsigned long long blkno, unsigned int bit),
671 TP_ARGS(type, slot, suballoc, blkno, bit),
676 __field(unsigned long long, blkno)
683 __entry->blkno = blkno;
688 __entry->blkno, __entry->bit)
740 unsigned long long blkno),
741 TP_ARGS(count, bit, start_blk, blkno),
746 __field(unsigned long long, blkno)
752 __entry->blkno = blkno;
756 __entry->blkno)
900 TP_PROTO(unsigned long long blkno, int index,
903 TP_ARGS(blkno, index, cpos, clusters, refcount),
905 __field(unsigned long long, blkno)
912 __entry->blkno = blkno;
918 TP_printk("%llu %d %llu %u %u", __entry->blkno, __entry->index,
924 TP_PROTO(unsigned long long blkno, int index, \
927 TP_ARGS(blkno, index, cpos, count, refcount))
2052 unsigned long long blkno),
2053 TP_ARGS(ino, namelen, name, major_hash, minor_hash, blkno),
2060 __field(unsigned long long, blkno)
2068 __entry->blkno = blkno;
2072 __entry->major_hash, __entry->minor_hash, __entry->blkno)
2082 TP_PROTO(int namelen, const char *name, void *blkno,
2084 TP_ARGS(namelen, name, blkno, dir),
2088 __field(void *, blkno)
2094 __entry->blkno = blkno;
2098 __entry->blkno, __entry->dir)
2356 TP_PROTO(unsigned long long blkno, const char *name, int namelen),
2357 TP_ARGS(blkno, name, namelen),
2359 __field(unsigned long long, blkno)
2364 __entry->blkno = blkno;
2368 TP_printk("%llu %s %d", __entry->blkno, __get_str(name),
2496 TP_PROTO(void *sb, void *handle, unsigned long long blkno),
2497 TP_ARGS(sb, handle, blkno),
2501 __field(unsigned long long, blkno)
2506 __entry->blkno = blkno;
2508 TP_printk("%p %p %llu", __entry->sb, __entry->handle, __entry->blkno)
H A Dioctl.c280 struct inode *inode_alloc, u64 blkno, ocfs2_info_scan_inode_alloc()
300 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); ocfs2_info_scan_inode_alloc()
331 u64 blkno = -1; ocfs2_info_handle_freeinode() local
368 &blkno); ocfs2_info_handle_freeinode()
375 status = ocfs2_info_scan_inode_alloc(osb, inode_alloc, blkno, oifi, i); ocfs2_info_handle_freeinode()
442 u64 blkno; ocfs2_info_freefrag_scan_chain() local
456 blkno = le64_to_cpu(rec->c_blkno); ocfs2_info_freefrag_scan_chain()
458 blkno = le64_to_cpu(bg->bg_next_group); ocfs2_info_freefrag_scan_chain()
468 blkno, &bh); ocfs2_info_freefrag_scan_chain()
470 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); ocfs2_info_freefrag_scan_chain()
474 "%llu from device.", (unsigned long long)blkno); ocfs2_info_freefrag_scan_chain()
538 struct inode *gb_inode, u64 blkno, ocfs2_info_freefrag_scan_bitmap()
560 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); ocfs2_info_freefrag_scan_bitmap()
620 u64 blkno = -1; ocfs2_info_handle_freefrag() local
662 &blkno); ocfs2_info_handle_freefrag()
669 status = ocfs2_info_freefrag_scan_bitmap(osb, gb_inode, blkno, oiff); ocfs2_info_handle_freefrag()
279 ocfs2_info_scan_inode_alloc(struct ocfs2_super *osb, struct inode *inode_alloc, u64 blkno, struct ocfs2_info_freeinode *fi, u32 slot) ocfs2_info_scan_inode_alloc() argument
537 ocfs2_info_freefrag_scan_bitmap(struct ocfs2_super *osb, struct inode *gb_inode, u64 blkno, struct ocfs2_info_freefrag *ffg) ocfs2_info_freefrag_scan_bitmap() argument
H A Dresize.c63 u64 blkno, gd_blkno, lgd_blkno = le64_to_cpu(gd->bg_blkno); ocfs2_calc_new_backup_super() local
66 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); ocfs2_calc_new_backup_super()
67 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); ocfs2_calc_new_backup_super()
190 u64 blkno; update_backups() local
197 blkno = ocfs2_backup_super_blkno(inode->i_sb, i); update_backups()
198 cluster = ocfs2_blocks_to_clusters(inode->i_sb, blkno); update_backups()
202 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &backup); update_backups()
211 backup_di->i_blkno = cpu_to_le64(blkno); update_backups()
452 mlog(ML_ERROR, "group blkno is invalid\n"); ocfs2_verify_group_and_input()
H A Dsysfile.c144 u64 blkno; _ocfs2_get_system_file_inode() local
152 strlen(namebuf), &blkno); _ocfs2_get_system_file_inode()
157 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); _ocfs2_get_system_file_inode()
H A Dmove_extents.c361 * find the victim alloc group, where #blkno fits.
370 u64 blkno; ocfs2_find_victim_alloc_group() local
382 strlen(namebuf), &blkno); ocfs2_find_victim_alloc_group()
388 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &ac_bh); ocfs2_find_victim_alloc_group()
421 blkno = le64_to_cpu(rec->c_blkno); ocfs2_find_victim_alloc_group()
423 blkno = le64_to_cpu(bg->bg_next_group); ocfs2_find_victim_alloc_group()
430 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &gd_bh); ocfs2_find_victim_alloc_group()
442 *vict_bit = (vict_blkno - blkno) >> ocfs2_find_victim_alloc_group()
446 blkno, le16_to_cpu(bg->bg_bits), ocfs2_find_victim_alloc_group()
H A Dbuffer_head_io.c374 /* Check whether the blkno is the super block or one of the backups. */ ocfs2_check_super_or_backup()
376 sector_t blkno) ocfs2_check_super_or_backup()
381 if (blkno == OCFS2_SUPER_BLOCK_BLKNO) ocfs2_check_super_or_backup()
386 if (backup_blkno == blkno) ocfs2_check_super_or_backup()
375 ocfs2_check_super_or_backup(struct super_block *sb, sector_t blkno) ocfs2_check_super_or_backup() argument
H A Dslot_map.c358 u64 blkno; ocfs2_map_slot_buffers() local
395 &blkno, NULL, NULL); ocfs2_map_slot_buffers()
401 trace_ocfs2_map_slot_buffers_block((unsigned long long)blkno, i); ocfs2_map_slot_buffers()
404 status = ocfs2_read_blocks(INODE_CACHE(si->si_inode), blkno, ocfs2_map_slot_buffers()
H A Dxattr.c283 u64 blkno, u32 cpos, u32 len, void *para);
293 u64 blkno,
1091 u64 blkno; ocfs2_xattr_get_value_outside() local
1111 blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); ocfs2_xattr_get_value_outside()
1113 for (i = 0; i < num_clusters * bpc; i++, blkno++) { ocfs2_xattr_get_value_outside()
1114 ret = ocfs2_read_block(INODE_CACHE(inode), blkno, ocfs2_xattr_get_value_outside()
1341 u64 blkno; __ocfs2_xattr_set_value_outside() local
1359 blkno = ocfs2_clusters_to_blocks(inode->i_sb, p_cluster); __ocfs2_xattr_set_value_outside()
1361 for (i = 0; i < num_clusters * bpc; i++, blkno++) { __ocfs2_xattr_set_value_outside()
1362 ret = ocfs2_read_block(INODE_CACHE(inode), blkno, __ocfs2_xattr_set_value_outside()
3810 u64 blkno, lower_blkno = 0; ocfs2_xattr_bucket_find() local
3831 blkno = p_blkno + bucket * blk_per_bucket; ocfs2_xattr_bucket_find()
3832 ret = ocfs2_read_xattr_bucket(search, blkno); ocfs2_xattr_bucket_find()
3856 lower_blkno = blkno; ocfs2_xattr_bucket_find()
3952 u64 blkno, ocfs2_iterate_xattr_buckets()
3970 (unsigned long long)blkno, clusters); ocfs2_iterate_xattr_buckets()
3972 for (i = 0; i < num_buckets; i++, blkno += bucket->bu_blocks) { ocfs2_iterate_xattr_buckets()
3973 ret = ocfs2_read_xattr_bucket(bucket, blkno); ocfs2_iterate_xattr_buckets()
3986 trace_ocfs2_iterate_xattr_bucket((unsigned long long)blkno, ocfs2_iterate_xattr_buckets()
4110 u64 blkno, u32 cpos, u32 len, void *para) ocfs2_list_xattr_tree_rec()
4112 return ocfs2_iterate_xattr_buckets(inode, blkno, len, ocfs2_list_xattr_tree_rec()
4264 u64 blkno; ocfs2_xattr_create_index_block() local
4305 blkno = ocfs2_clusters_to_blocks(inode->i_sb, bit_off); ocfs2_xattr_create_index_block()
4307 trace_ocfs2_xattr_create_index_block((unsigned long long)blkno); ocfs2_xattr_create_index_block()
4309 ret = ocfs2_init_xattr_bucket(xs->bucket, blkno, 1); ocfs2_xattr_create_index_block()
4339 xr->xt_list.l_recs[0].e_blkno = cpu_to_le64(blkno); ocfs2_xattr_create_index_block()
4379 u64 blkno = bucket_blkno(bucket); ocfs2_defrag_xattr_bucket() local
4412 (unsigned long long)blkno, le16_to_cpu(xh->xh_count), ocfs2_defrag_xattr_bucket()
4447 "bucket %llu\n", (unsigned long long)blkno); ocfs2_defrag_xattr_bucket()
4453 "bucket %llu\n", (unsigned long long)blkno); ocfs2_defrag_xattr_bucket()
5405 u64 blkno, ocfs2_rm_xattr_cluster()
5420 ret = ocfs2_iterate_xattr_buckets(inode, blkno, len, ocfs2_rm_xattr_cluster()
5433 (unsigned long long)blkno, cpos, len); ocfs2_rm_xattr_cluster()
5435 ocfs2_remove_xattr_clusters_from_cache(INODE_CACHE(inode), blkno, ocfs2_rm_xattr_cluster() local
5478 ret = ocfs2_truncate_log_append(osb, handle, blkno, len); ocfs2_rm_xattr_cluster()
6082 u64 blkno, u32 cpos, u32 len, void *para) ocfs2_refcount_xattr_tree_rec()
6084 return ocfs2_iterate_xattr_buckets(inode, blkno, len, ocfs2_refcount_xattr_tree_rec()
6729 * Given a xattr extent rec starting from blkno and having len clusters,
6736 u64 blkno, u32 len, int *credits, ocfs2_lock_reflink_xattr_rec_allocators()
6747 ret = ocfs2_iterate_xattr_buckets(args->reflink->old_inode, blkno, len, ocfs2_lock_reflink_xattr_rec_allocators()
6820 u64 blkno, u64 new_blkno, u32 clusters, ocfs2_reflink_xattr_bucket()
6833 for (i = 0; i < num_buckets; i++, blkno += bpb, new_blkno += bpb) { ocfs2_reflink_xattr_bucket()
6834 ret = ocfs2_read_xattr_bucket(args->old_bucket, blkno); ocfs2_reflink_xattr_bucket()
6916 u64 blkno, u32 cpos, u32 len) ocfs2_reflink_xattr_buckets()
6925 ret = ocfs2_read_xattr_bucket(args->old_bucket, blkno); ocfs2_reflink_xattr_buckets()
6944 ret = ocfs2_reflink_xattr_bucket(handle, blkno, ocfs2_reflink_xattr_buckets()
6971 blkno += ocfs2_clusters_to_blocks(inode->i_sb, num_clusters); ocfs2_reflink_xattr_buckets()
6983 u64 blkno, ocfs2_reflink_xattr_rec()
6997 trace_ocfs2_reflink_xattr_rec((unsigned long long)blkno, len); ocfs2_reflink_xattr_rec()
7003 ret = ocfs2_lock_reflink_xattr_rec_allocators(args, &et, blkno, ocfs2_reflink_xattr_rec()
7020 blkno, cpos, len); ocfs2_reflink_xattr_rec()
3951 ocfs2_iterate_xattr_buckets(struct inode *inode, u64 blkno, u32 clusters, xattr_bucket_func *func, void *para) ocfs2_iterate_xattr_buckets() argument
4108 ocfs2_list_xattr_tree_rec(struct inode *inode, struct buffer_head *root_bh, u64 blkno, u32 cpos, u32 len, void *para) ocfs2_list_xattr_tree_rec() argument
5403 ocfs2_rm_xattr_cluster(struct inode *inode, struct buffer_head *root_bh, u64 blkno, u32 cpos, u32 len, void *para) ocfs2_rm_xattr_cluster() argument
6080 ocfs2_refcount_xattr_tree_rec(struct inode *inode, struct buffer_head *root_bh, u64 blkno, u32 cpos, u32 len, void *para) ocfs2_refcount_xattr_tree_rec() argument
6733 ocfs2_lock_reflink_xattr_rec_allocators( struct ocfs2_reflink_xattr_tree_args *args, struct ocfs2_extent_tree *xt_et, u64 blkno, u32 len, int *credits, struct ocfs2_alloc_context **meta_ac, struct ocfs2_alloc_context **data_ac) ocfs2_lock_reflink_xattr_rec_allocators() argument
6819 ocfs2_reflink_xattr_bucket(handle_t *handle, u64 blkno, u64 new_blkno, u32 clusters, u32 *cpos, int num_buckets, struct ocfs2_alloc_context *meta_ac, struct ocfs2_alloc_context *data_ac, struct ocfs2_reflink_xattr_tree_args *args) ocfs2_reflink_xattr_bucket() argument
6910 ocfs2_reflink_xattr_buckets(handle_t *handle, struct inode *inode, struct ocfs2_reflink_xattr_tree_args *args, struct ocfs2_extent_tree *et, struct ocfs2_alloc_context *meta_ac, struct ocfs2_alloc_context *data_ac, u64 blkno, u32 cpos, u32 len) ocfs2_reflink_xattr_buckets() argument
6981 ocfs2_reflink_xattr_rec(struct inode *inode, struct buffer_head *root_bh, u64 blkno, u32 cpos, u32 len, void *para) ocfs2_reflink_xattr_rec() argument
H A Dnamei.c80 u64 blkno,
114 u64 blkno; ocfs2_lookup() local
137 dentry->d_name.len, &blkno); ocfs2_lookup()
141 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); ocfs2_lookup()
886 u64 blkno; ocfs2_unlink() local
920 dentry->d_name.len, &blkno, dir, ocfs2_unlink()
928 if (OCFS2_I(inode)->ip_blkno != blkno) { ocfs2_unlink()
933 (unsigned long long)blkno, ocfs2_unlink()
2059 static int ocfs2_blkno_stringify(u64 blkno, char *name) ocfs2_blkno_stringify() argument
2064 (long long)blkno); ocfs2_blkno_stringify()
2079 trace_ocfs2_blkno_stringify(blkno, name, namelen); ocfs2_blkno_stringify()
2124 u64 blkno, __ocfs2_prepare_orphan_dir()
2144 ret = ocfs2_blkno_stringify(blkno, __ocfs2_prepare_orphan_dir()
2147 ret = ocfs2_blkno_stringify(blkno, name); __ocfs2_prepare_orphan_dir()
2169 * @blkno: Actual block number of the inode to be inserted into orphan dir.
2180 u64 blkno, ocfs2_prepare_orphan_dir()
2197 blkno, name, lookup, dio); ocfs2_prepare_orphan_dir()
2122 __ocfs2_prepare_orphan_dir(struct inode *orphan_dir_inode, struct buffer_head *orphan_dir_bh, u64 blkno, char *name, struct ocfs2_dir_lookup_result *lookup, bool dio) __ocfs2_prepare_orphan_dir() argument
2178 ocfs2_prepare_orphan_dir(struct ocfs2_super *osb, struct inode **ret_orphan_dir, u64 blkno, char *name, struct ocfs2_dir_lookup_result *lookup, bool dio) ocfs2_prepare_orphan_dir() argument
H A Dalloc.c85 u64 blkno);
156 u64 blkno);
179 u64 blkno) ocfs2_dinode_set_last_eb_blk()
184 di->i_last_eb_blk = cpu_to_le64(blkno); ocfs2_dinode_set_last_eb_blk()
267 u64 blkno) ocfs2_xattr_value_set_last_eb_blk()
271 vb->vb_xv->xr_last_eb_blk = cpu_to_le64(blkno); ocfs2_xattr_value_set_last_eb_blk()
311 u64 blkno) ocfs2_xattr_tree_set_last_eb_blk()
316 xt->xt_last_eb_blk = cpu_to_le64(blkno); ocfs2_xattr_tree_set_last_eb_blk()
344 u64 blkno) ocfs2_dx_root_set_last_eb_blk()
348 dx_root->dr_last_eb_blk = cpu_to_le64(blkno); ocfs2_dx_root_set_last_eb_blk()
398 u64 blkno) ocfs2_refcount_tree_set_last_eb_blk()
402 rb->rf_last_eb_blk = cpu_to_le64(blkno); ocfs2_refcount_tree_set_last_eb_blk()
803 u64 blkno) ocfs2_block_extent_contig()
810 return blkno == blk_end; ocfs2_block_extent_contig()
829 u64 blkno = le64_to_cpu(insert_rec->e_blkno); ocfs2_extent_rec_contig() local
840 ocfs2_block_extent_contig(sb, ext, blkno)) ocfs2_extent_rec_contig()
843 blkno = le64_to_cpu(ext->e_blkno); ocfs2_extent_rec_contig()
845 ocfs2_block_extent_contig(sb, insert_rec, blkno)) ocfs2_extent_rec_contig()
1434 u64 blkno; ocfs2_find_branch_target() local
1453 blkno = le64_to_cpu(el->l_recs[i].e_blkno); ocfs2_find_branch_target()
1454 if (!blkno) { ocfs2_find_branch_target()
1465 status = ocfs2_read_extent_block(et->et_ci, blkno, &bh); ocfs2_find_branch_target()
1776 u64 blkno; __ocfs2_find_path() local
1808 blkno = le64_to_cpu(el->l_recs[i].e_blkno); __ocfs2_find_path()
1809 if (blkno == 0) { __ocfs2_find_path()
1811 "Owner %llu has bad blkno in extent list at depth %u (index %d)\n", __ocfs2_find_path()
1820 ret = ocfs2_read_extent_block(ci, blkno, &bh); __ocfs2_find_path()
2200 u64 blkno; ocfs2_find_cpos_for_left_leaf() local
2207 blkno = path_leaf_bh(path)->b_blocknr; ocfs2_find_cpos_for_left_leaf()
2219 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { ocfs2_find_cpos_for_left_leaf()
2251 (unsigned long long)blkno); ocfs2_find_cpos_for_left_leaf()
2256 blkno = path->p_node[i].bh->b_blocknr; ocfs2_find_cpos_for_left_leaf()
2814 u64 blkno; ocfs2_find_cpos_for_right_leaf() local
2822 blkno = path_leaf_bh(path)->b_blocknr; ocfs2_find_cpos_for_right_leaf()
2837 if (le64_to_cpu(el->l_recs[j].e_blkno) == blkno) { ocfs2_find_cpos_for_right_leaf()
2866 (unsigned long long)blkno); ocfs2_find_cpos_for_right_leaf()
2871 blkno = path->p_node[i].bh->b_blocknr; ocfs2_find_cpos_for_right_leaf()
6413 u64 blkno, unsigned int bit) ocfs2_cache_cluster_dealloc()
6425 trace_ocfs2_cache_cluster_dealloc((unsigned long long)blkno, bit); ocfs2_cache_cluster_dealloc()
6427 item->free_blk = blkno; ocfs2_cache_cluster_dealloc()
6558 u64 blkno, unsigned int bit) ocfs2_cache_block_dealloc()
6580 (unsigned long long)blkno, bit); ocfs2_cache_block_dealloc()
6583 item->free_blk = blkno; ocfs2_cache_block_dealloc()
7031 u64 blkno = 0; ocfs2_commit_truncate() local
7129 blkno = 0; ocfs2_commit_truncate()
7137 blkno = le64_to_cpu(rec->e_blkno); ocfs2_commit_truncate()
7146 blkno = le64_to_cpu(rec->e_blkno) + ocfs2_commit_truncate()
7156 phys_cpos = ocfs2_blocks_to_clusters(inode->i_sb, blkno); ocfs2_commit_truncate()
178 ocfs2_dinode_set_last_eb_blk(struct ocfs2_extent_tree *et, u64 blkno) ocfs2_dinode_set_last_eb_blk() argument
266 ocfs2_xattr_value_set_last_eb_blk(struct ocfs2_extent_tree *et, u64 blkno) ocfs2_xattr_value_set_last_eb_blk() argument
310 ocfs2_xattr_tree_set_last_eb_blk(struct ocfs2_extent_tree *et, u64 blkno) ocfs2_xattr_tree_set_last_eb_blk() argument
343 ocfs2_dx_root_set_last_eb_blk(struct ocfs2_extent_tree *et, u64 blkno) ocfs2_dx_root_set_last_eb_blk() argument
397 ocfs2_refcount_tree_set_last_eb_blk(struct ocfs2_extent_tree *et, u64 blkno) ocfs2_refcount_tree_set_last_eb_blk() argument
801 ocfs2_block_extent_contig(struct super_block *sb, struct ocfs2_extent_rec *ext, u64 blkno) ocfs2_block_extent_contig() argument
6412 ocfs2_cache_cluster_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, u64 blkno, unsigned int bit) ocfs2_cache_cluster_dealloc() argument
6556 ocfs2_cache_block_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, int type, int slot, u64 suballoc, u64 blkno, unsigned int bit) ocfs2_cache_block_dealloc() argument
H A Ddir.c613 u64 blkno = le64_to_cpu(di->i_dx_root); ocfs2_read_dx_root() local
616 ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, ocfs2_read_dx_root()
650 static int ocfs2_read_dx_leaf(struct inode *dir, u64 blkno, ocfs2_read_dx_leaf() argument
656 ret = ocfs2_read_block(INODE_CACHE(dir), blkno, &tmp, ocfs2_read_dx_leaf()
870 u64 uninitialized_var(blkno); ocfs2_dx_dir_lookup()
873 ret = ocfs2_dx_dir_lookup_rec(inode, el, name_hash, &cpos, &blkno, ocfs2_dx_dir_lookup()
883 blkno += ocfs2_clusters_to_blocks(inode->i_sb, clen - 1); ocfs2_dx_dir_lookup()
886 blkno += ocfs2_clusters_to_blocks(inode->i_sb, ocfs2_dx_dir_lookup()
896 blkno += ocfs2_dx_dir_hash_idx(OCFS2_SB(inode->i_sb), hinfo); ocfs2_dx_dir_lookup()
899 *ret_phys_blkno = blkno; ocfs2_dx_dir_lookup()
1601 struct inode *inode, u64 blkno, __ocfs2_add_entry()
1721 if (blkno) { __ocfs2_add_entry()
1722 de->inode = cpu_to_le64(blkno); __ocfs2_add_entry()
1992 u64 *blkno, ocfs2_find_files_on_disk()
1998 trace_ocfs2_find_files_on_disk(namelen, name, blkno, ocfs2_find_files_on_disk()
2005 *blkno = le64_to_cpu(lookup->dl_entry->inode); ocfs2_find_files_on_disk()
2018 int namelen, u64 *blkno) ocfs2_lookup_ino_from_name()
2023 ret = ocfs2_find_files_on_disk(name, namelen, blkno, dir, &lookup); ocfs2_lookup_ino_from_name()
2801 u64 dx_insert_blkno, blkno, ocfs2_expand_inline_dir() local
2918 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); ocfs2_expand_inline_dir()
2919 dirdata_bh = sb_getblk(sb, blkno); ocfs2_expand_inline_dir()
3004 ret = ocfs2_insert_extent(handle, &et, 0, blkno, len, ocfs2_expand_inline_dir()
3053 blkno = ocfs2_clusters_to_blocks(dir->i_sb, bit_off); ocfs2_expand_inline_dir()
3056 blkno, len, 0, NULL); ocfs2_expand_inline_dir()
3918 u64 blkno; ocfs2_find_dir_space_dx() local
3925 &leaf_cpos, &blkno); ocfs2_find_dir_space_dx()
3931 ret = ocfs2_read_dx_leaf(dir, blkno, &dx_leaf_bh); ocfs2_find_dir_space_dx()
3955 blkno); ocfs2_find_dir_space_dx()
4425 u64 uninitialized_var(blkno); ocfs2_dx_dir_truncate()
4453 major_hash, &cpos, &blkno, &clen); ocfs2_dx_dir_truncate()
4459 p_cpos = ocfs2_blocks_to_clusters(dir->i_sb, blkno); ocfs2_dx_dir_truncate()
1598 __ocfs2_add_entry(handle_t *handle, struct inode *dir, const char *name, int namelen, struct inode *inode, u64 blkno, struct buffer_head *parent_fe_bh, struct ocfs2_dir_lookup_result *lookup) __ocfs2_add_entry() argument
1990 ocfs2_find_files_on_disk(const char *name, int namelen, u64 *blkno, struct inode *inode, struct ocfs2_dir_lookup_result *lookup) ocfs2_find_files_on_disk() argument
2017 ocfs2_lookup_ino_from_name(struct inode *dir, const char *name, int namelen, u64 *blkno) ocfs2_lookup_ino_from_name() argument
H A Dinode.c116 struct inode *ocfs2_ilookup(struct super_block *sb, u64 blkno) ocfs2_ilookup() argument
120 args.fi_blkno = blkno; ocfs2_ilookup()
122 args.fi_ino = ino_from_blkno(sb, blkno); ocfs2_ilookup()
125 return ilookup5(sb, blkno, ocfs2_find_actor, &args); ocfs2_ilookup()
127 struct inode *ocfs2_iget(struct ocfs2_super *osb, u64 blkno, unsigned flags, ocfs2_iget() argument
135 trace_ocfs2_iget_begin((unsigned long long)blkno, flags, ocfs2_iget()
141 if (blkno == 0) { ocfs2_iget()
147 args.fi_blkno = blkno; ocfs2_iget()
149 args.fi_ino = ino_from_blkno(sb, blkno); ocfs2_iget()
H A Dsuballoc.c2225 /* translate a group desc. blkno and it's bitmap offset into
2731 * Read the inode specified by blkno to get suballoc_slot and
2734 static int ocfs2_get_suballoc_slot_bit(struct ocfs2_super *osb, u64 blkno, ocfs2_get_suballoc_slot_bit() argument
2742 trace_ocfs2_get_suballoc_slot_bit((unsigned long long)blkno); ocfs2_get_suballoc_slot_bit()
2745 status = ocfs2_read_blocks_sync(osb, blkno, 1, &inode_bh); ocfs2_get_suballoc_slot_bit()
2748 (unsigned long long)blkno, status); ocfs2_get_suballoc_slot_bit()
2755 (unsigned long long)blkno); ocfs2_get_suballoc_slot_bit()
2763 (unsigned long long)blkno, ocfs2_get_suballoc_slot_bit()
2794 u64 group_blkno, u64 blkno, ocfs2_test_suballoc_bit()
2803 trace_ocfs2_test_suballoc_bit((unsigned long long)blkno, ocfs2_test_suballoc_bit()
2816 ocfs2_which_suballoc_group(blkno, bit); ocfs2_test_suballoc_bit()
2837 * Test if the bit representing this inode (blkno) is set in the
2849 int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res) ocfs2_test_inode_bit() argument
2857 trace_ocfs2_test_inode_bit((unsigned long long)blkno); ocfs2_test_inode_bit()
2859 status = ocfs2_get_suballoc_slot_bit(osb, blkno, &suballoc_slot, ocfs2_test_inode_bit()
2889 group_blkno, blkno, suballoc_bit, res); ocfs2_test_inode_bit()
2791 ocfs2_test_suballoc_bit(struct ocfs2_super *osb, struct inode *suballoc, struct buffer_head *alloc_bh, u64 group_blkno, u64 blkno, u16 bit, int *res) ocfs2_test_suballoc_bit() argument
H A Dalloc.h211 u64 blkno, unsigned int bit);
213 int type, int slot, u64 suballoc, u64 blkno,
H A Dlocalalloc.c971 u64 blkno; ocfs2_sync_local_to_main() local
1002 blkno = la_start_blk + ocfs2_sync_local_to_main()
1009 (unsigned long long)blkno); ocfs2_sync_local_to_main()
1013 main_bm_bh, blkno, ocfs2_sync_local_to_main()
H A Docfs2_ioctl.h59 __u64 group; /* Group descriptor's blkno. */
H A Drefcounttree.c201 ocfs2_find_refcount_tree(struct ocfs2_super *osb, u64 blkno) ocfs2_find_refcount_tree() argument
209 if (blkno < tree->rf_blkno) ocfs2_find_refcount_tree()
211 else if (blkno > tree->rf_blkno) ocfs2_find_refcount_tree()
972 u64 blkno; ocfs2_get_refcount_cpos_end() local
1041 blkno = left_path->p_node[subtree_root+1].bh->b_blocknr; ocfs2_get_refcount_cpos_end()
1043 if (le64_to_cpu(tmp_el->l_recs[i].e_blkno) == blkno) { ocfs2_get_refcount_cpos_end()
1291 u64 suballoc_loc, blkno; ocfs2_expand_inline_ref_root() local
1307 &blkno); ocfs2_expand_inline_ref_root()
1313 new_bh = sb_getblk(sb, blkno); ocfs2_expand_inline_ref_root()
1339 new_rb->rf_blkno = cpu_to_le64(blkno); ocfs2_expand_inline_ref_root()
1351 root_rb->rf_list.l_recs[0].e_blkno = cpu_to_le64(blkno); ocfs2_expand_inline_ref_root()
1357 trace_ocfs2_expand_inline_ref_root((unsigned long long)blkno, ocfs2_expand_inline_ref_root()
1529 u64 suballoc_loc, blkno; ocfs2_new_leaf_refcount_block() local
1555 &blkno); ocfs2_new_leaf_refcount_block()
1561 new_bh = sb_getblk(sb, blkno); ocfs2_new_leaf_refcount_block()
1584 new_rb->rf_blkno = cpu_to_le64(blkno); ocfs2_new_leaf_refcount_block()
H A Dsuballoc.h218 int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res);
H A Dfile.c1635 u64 *blkno, int *done) ocfs2_calc_trunc_pos()
1653 *blkno = le64_to_cpu(rec->e_blkno); ocfs2_calc_trunc_pos()
1668 *blkno = le64_to_cpu(rec->e_blkno) + ocfs2_calc_trunc_pos()
1701 u64 blkno, refcount_loc = le64_to_cpu(di->i_refcount_loc); ocfs2_remove_inode_range() local
1818 &trunc_len, &trunc_end, &blkno, &done); ocfs2_remove_inode_range()
1823 phys_cpos = ocfs2_blocks_to_clusters(inode->i_sb, blkno); ocfs2_remove_inode_range()
1630 ocfs2_calc_trunc_pos(struct inode *inode, struct ocfs2_extent_list *el, struct ocfs2_extent_rec *rec, u32 trunc_start, u32 *trunc_cpos, u32 *trunc_len, u32 *trunc_end, u64 *blkno, int *done) ocfs2_calc_trunc_pos() argument
H A Docfs2.h708 u64 blkno) ino_from_blkno()
710 return (unsigned long)(blkno & (u64)ULONG_MAX); ino_from_blkno()
707 ino_from_blkno(struct super_block *sb, u64 blkno) ino_from_blkno() argument
H A Daops.c97 u64 blkno = le64_to_cpu(fe->id2.i_list.l_recs[0].e_blkno) + ocfs2_symlink_get_block() local
99 buffer_cache_bh = sb_getblk(osb->sb, blkno); ocfs2_symlink_get_block()
198 "iblock = %llu p_blkno = %llu blkno=(%llu)\n", ocfs2_get_block()
1646 mlog(ML_ERROR, "Get physical blkno failed for inode %llu, " ocfs2_write_cluster()
H A Ddlmglue.c394 u64 blkno, ocfs2_build_lock_name()
404 (long long)blkno, generation); ocfs2_build_lock_name()
393 ocfs2_build_lock_name(enum ocfs2_lock_type type, u64 blkno, u32 generation, char *name) ocfs2_build_lock_name() argument
/linux-4.4.14/fs/gfs2/
H A Drecovery.h26 extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
27 extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
H A Dmeta_io.h54 extern struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno);
55 extern int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags,
58 extern struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno,
H A Dmeta_io.c108 * @blkno: the block number (filesystem scope)
114 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) gfs2_getbuf() argument
128 index = blkno >> shift; /* convert block to page */ gfs2_getbuf()
129 bufnum = blkno - (index << shift); /* block buf index within page */ gfs2_getbuf()
154 map_bh(bh, sdp->sd_vfs, blkno); gfs2_getbuf()
177 * @blkno: The block number
182 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) gfs2_meta_new() argument
185 bh = gfs2_getbuf(gl, blkno, CREATE); gfs2_meta_new()
193 * @blkno: The block number
200 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, gfs2_meta_read() argument
211 *bhp = bh = gfs2_getbuf(gl, blkno, CREATE); gfs2_meta_read()
H A Dlops.c251 * @blkno: The next device block number we want to write to
261 static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno) gfs2_log_alloc_bio() argument
269 bio->bi_iter.bi_sector = blkno * (sb->s_blocksize >> 9); gfs2_log_alloc_bio()
282 * @blkno: The device block number we want to write to
292 static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno) gfs2_log_get_bio() argument
300 if (blkno == nblk) gfs2_log_get_bio()
305 return gfs2_log_alloc_bio(sdp, blkno); gfs2_log_get_bio()
324 u64 blkno = gfs2_log_bmap(sdp); gfs2_log_write() local
328 bio = gfs2_log_get_bio(sdp, blkno); gfs2_log_write()
332 bio = gfs2_log_alloc_bio(sdp, blkno); gfs2_log_write()
532 u64 blkno; buf_lo_scan_elements() local
541 blkno = be64_to_cpu(*ptr++); buf_lo_scan_elements()
545 if (gfs2_revoke_check(jd, blkno, start)) buf_lo_scan_elements()
552 bh_ip = gfs2_meta_new(gl, blkno); buf_lo_scan_elements()
687 u64 blkno; revoke_lo_scan_elements() local
705 blkno = be64_to_cpu(*(__be64 *)(bh->b_data + offset)); revoke_lo_scan_elements()
707 error = gfs2_revoke_add(jd, blkno, start); revoke_lo_scan_elements()
769 u64 blkno; databuf_lo_scan_elements() local
778 blkno = be64_to_cpu(*ptr++); databuf_lo_scan_elements()
783 if (gfs2_revoke_check(jd, blkno, start)) databuf_lo_scan_elements()
790 bh_ip = gfs2_meta_new(gl, blkno); databuf_lo_scan_elements()
H A Dtrans.h45 extern void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len);
H A Dtrans.c263 void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len) gfs2_trans_add_unrevoke() argument
271 if ((bd->bd_blkno >= blkno) && (bd->bd_blkno < (blkno + len))) { gfs2_trans_add_unrevoke()
H A Drecovery.c55 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) gfs2_revoke_add() argument
62 if (rr->rr_blkno == blkno) { list_for_each_entry()
77 rr->rr_blkno = blkno;
84 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) gfs2_revoke_check() argument
91 if (rr->rr_blkno == blkno) { gfs2_revoke_check()
H A Drgrp.c2471 u64 blkno = ip->i_no_addr; gfs2_unlink_di() local
2473 rgd = rgblk_free(sdp, blkno, 1, GFS2_BLKST_UNLINKED); gfs2_unlink_di()
2476 trace_gfs2_block_alloc(ip, rgd, blkno, 1, GFS2_BLKST_UNLINKED); gfs2_unlink_di()
2483 static void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, u64 blkno) gfs2_free_uninit_di() argument
2488 tmp_rgd = rgblk_free(sdp, blkno, 1, GFS2_BLKST_FREE); gfs2_free_uninit_di()
/linux-4.4.14/fs/jfs/
H A Djfs_discard.c37 * blkno - starting block number to be trimmed (0..N)
45 void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks) jfs_issue_discard() argument
50 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); jfs_issue_discard()
54 sb, (unsigned long long)blkno, jfs_issue_discard()
60 sb, (unsigned long long)blkno, jfs_issue_discard()
H A Djfs_dmap.c77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
83 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
98 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
100 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks);
102 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno);
104 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
106 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
114 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
116 static int dbInitDmap(struct dmap * dp, s64 blkno, int nblocks);
324 * blkno - starting block number to be freed.
331 int dbFree(struct inode *ip, s64 blkno, s64 nblocks) dbFree() argument
344 if (unlikely((blkno == 0) || (blkno + nblocks > bmp->db_mapsize))) { dbFree()
346 printk(KERN_ERR "blkno = %Lx, nblocks = %Lx\n", dbFree()
347 (unsigned long long) blkno, dbFree()
358 jfs_issue_discard(ipbmap, blkno, nblocks); dbFree()
364 for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { dbFree()
371 lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage); dbFree()
382 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); dbFree()
385 if ((rc = dbFreeDmap(bmp, dp, blkno, nb))) { dbFree()
415 * blkno - starting block number of the range.
425 int free, s64 blkno, s64 nblocks, struct tblock * tblk) dbUpdatePMap()
439 if (blkno + nblocks > bmp->db_mapsize) { dbUpdatePMap()
440 printk(KERN_ERR "blkno = %Lx, nblocks = %Lx\n", dbUpdatePMap()
441 (unsigned long long) blkno, dbUpdatePMap()
457 for (rem = nblocks; rem > 0; rem -= nblks, blkno += nblks) { dbUpdatePMap()
459 lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage); dbUpdatePMap()
477 dbitno = blkno & (BPERDMAP - 1); dbUpdatePMap()
706 s64 lblkno, blkno; dbAlloc() local
752 blkno = hint + 1; dbAlloc()
754 if (blkno >= bmp->db_mapsize) dbAlloc()
757 agno = blkno >> bmp->db_agl2size; dbAlloc()
759 /* check if blkno crosses over into a new allocation group. dbAlloc()
763 if ((blkno & (bmp->db_agsize - 1)) == 0) dbAlloc()
781 lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage); dbAlloc()
791 if ((rc = dbAllocNext(bmp, dp, blkno, (int) nblocks)) dbAlloc()
794 *results = blkno; dbAlloc()
818 dbAllocNear(bmp, dp, blkno, (int) nblocks, l2nb, results)) dbAlloc()
885 * blkno - extent address;
893 int dbAllocExact(struct inode *ip, s64 blkno, int nblocks) dbAllocExact() argument
911 if (nblocks <= 0 || nblocks > BPERDMAP || blkno >= bmp->db_mapsize) { dbAllocExact()
923 lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage); dbAllocExact()
932 rc = dbAllocNext(bmp, dp, blkno, nblocks); dbAllocExact()
962 * blkno - starting block of the current allocation.
979 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results) dbReAlloc()
985 if ((rc = dbExtend(ip, blkno, nblocks, addnblocks)) == 0) { dbReAlloc()
986 *results = blkno; dbReAlloc()
999 (ip, blkno + nblocks - 1, addnblocks + nblocks, results)); dbReAlloc()
1016 * blkno - starting block of the current allocation.
1026 static int dbExtend(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks) dbExtend() argument
1040 if (((rel_block = blkno & (sbi->nbperpage - 1))) && dbExtend()
1045 lastblkno = blkno + nblocks - 1; dbExtend()
1115 * blkno - starting block number of the range.
1125 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, dbAllocNext() argument
1145 dbitno = blkno & (BPERDMAP - 1); dbAllocNext()
1225 return (dbAllocDmap(bmp, dp, blkno, nblocks)); dbAllocNext()
1243 * blkno - block number to allocate near.
1258 struct dmap * dp, s64 blkno, int nblocks, int l2nb, s64 * results) dbAllocNear()
1271 * (i.e. blkno). also, determine the last word in the dmap dbAllocNear()
1274 word = (blkno & (BPERDMAP - 1)) >> L2DBWORD; dbAllocNear()
1288 blkno = le64_to_cpu(dp->start) + (word << L2DBWORD); dbAllocNear()
1296 blkno += dbAllocNear()
1301 if ((rc = dbAllocDmap(bmp, dp, blkno, nblocks)) == 0) dbAllocNear()
1302 *results = blkno; dbAllocNear()
1371 s64 blkno, lblkno; dbAllocAG() local
1386 blkno = (s64) agno << bmp->db_agl2size; dbAllocAG()
1407 rc = dbAllocCtl(bmp, nblocks, l2nb, blkno, results); dbAllocAG()
1410 printk(KERN_ERR "blkno = %Lx, blocks = %Lx\n", dbAllocAG()
1411 (unsigned long long) blkno, dbAllocAG()
1422 lblkno = BLKTOCTL(blkno, bmp->db_l2nbperpage, bmp->db_aglevel); dbAllocAG()
1481 blkno = 0; dbAllocAG()
1483 blkno &= ~(MAXL1SIZE - 1); dbAllocAG()
1485 blkno &= ~(MAXL0SIZE - 1); dbAllocAG()
1487 blkno += dbAllocAG()
1508 &blkno))) { dbAllocAG()
1520 rc = dbAllocCtl(bmp, nblocks, l2nb, blkno, results); dbAllocAG()
1567 s64 blkno = 0; dbAllocAny() local
1575 if ((rc = dbFindCtl(bmp, l2nb, bmp->db_maxlevel, &blkno))) dbAllocAny()
1580 rc = dbAllocCtl(bmp, nblocks, l2nb, blkno, results); dbAllocAny()
1623 s64 nblocks, blkno; dbDiscardAG() local
1629 u64 blkno; dbDiscardAG() member in struct:range2trim
1633 /* max blkno / nblocks pairs to trim */ dbDiscardAG()
1656 rc = dbAllocAG(bmp, agno, nblocks, l2nb, &blkno); dbDiscardAG()
1658 tt->blkno = blkno; dbDiscardAG()
1690 jfs_issue_discard(ip, tt->blkno, tt->nblocks); dbDiscardAG()
1691 dbFree(ip, tt->blkno, tt->nblocks); dbDiscardAG()
1716 * *blkno - on entry, starting block number for conducting the search.
1727 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno) dbFindCtl() argument
1740 for (lev = level, b = *blkno; lev >= 0; lev--) { dbFindCtl()
1795 *blkno = b; dbFindCtl()
1827 * first dmap (i.e. blkno).
1833 * blkno - starting block number of the dmap to start the allocation
1846 dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, s64 * results) dbAllocCtl() argument
1858 lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage); dbAllocCtl()
1878 assert((blkno & (BPERDMAP - 1)) == 0); dbAllocCtl()
1882 for (n = nblocks, b = blkno; n > 0; n -= nb, b += nb) { dbAllocCtl()
1921 *results = blkno; dbAllocCtl()
1934 for (n = nblocks - n, b = blkno; n > 0; dbAllocCtl()
2000 s64 blkno; dbAllocDmapLev() local
2016 blkno = le64_to_cpu(dp->start) + (leafidx << L2DBWORD); dbAllocDmapLev()
2023 blkno += dbFindBits(le32_to_cpu(dp->wmap[leafidx]), l2nb); dbAllocDmapLev()
2026 if ((rc = dbAllocDmap(bmp, dp, blkno, nblocks)) == 0) dbAllocDmapLev()
2027 *results = blkno; dbAllocDmapLev()
2051 * blkno - starting block number of the block to be allocated.
2060 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, dbAllocDmap() argument
2072 dbAllocBits(bmp, dp, blkno, nblocks); dbAllocDmap()
2082 if ((rc = dbAdjCtl(bmp, blkno, dp->tree.stree[ROOT], 1, 0))) dbAllocDmap()
2083 dbFreeBits(bmp, dp, blkno, nblocks); dbAllocDmap()
2106 * blkno - starting block number of the block to be freed.
2115 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, dbFreeDmap() argument
2127 rc = dbFreeBits(bmp, dp, blkno, nblocks); dbFreeDmap()
2137 if ((rc = dbAdjCtl(bmp, blkno, dp->tree.stree[ROOT], 0, 0))) { dbFreeDmap()
2138 word = (blkno & (BPERDMAP - 1)) >> L2DBWORD; dbFreeDmap()
2148 dbAllocBits(bmp, dp, blkno, nblocks); dbFreeDmap()
2170 * blkno - starting block number of the bits to be allocated.
2177 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, dbAllocBits() argument
2191 dbitno = blkno & (BPERDMAP - 1); dbAllocBits()
2290 agno = blkno >> bmp->db_agl2size; dbAllocBits()
2317 * blkno - starting block number of the bits to be freed.
2324 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno, dbFreeBits() argument
2335 dbitno = blkno & (BPERDMAP - 1); dbFreeBits()
2433 agno = blkno >> bmp->db_agl2size; dbFreeBits()
2492 * blkno - the first block of a block range within a dmap. it is
2508 dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, int level) dbAdjCtl() argument
2520 lblkno = BLKTOCTL(blkno, bmp->db_l2nbperpage, level); dbAdjCtl()
2535 leafno = BLKTOCTLLEAF(blkno, dcp->budmin); dbAdjCtl()
2592 dbAdjCtl(bmp, blkno, dcp->stree[ROOT], alloc, dbAdjCtl()
3201 * blkno - starting block number to be freed.
3208 int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks) dbAllocBottomUp() argument
3220 ASSERT(nblocks <= bmp->db_mapsize - blkno); dbAllocBottomUp()
3226 for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { dbAllocBottomUp()
3233 lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage); dbAllocBottomUp()
3244 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); dbAllocBottomUp()
3247 if ((rc = dbAllocDmapBU(bmp, dp, blkno, nb))) { dbAllocBottomUp()
3263 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno, dbAllocDmapBU() argument
3279 dbitno = blkno & (BPERDMAP - 1); dbAllocDmapBU()
3342 agno = blkno >> bmp->db_agl2size; dbAllocDmapBU()
3360 if ((rc = dbAdjCtl(bmp, blkno, tp->stree[ROOT], 1, 0))) dbAllocDmapBU()
3361 dbFreeBits(bmp, dp, blkno, nblocks); dbAllocDmapBU()
3370 * FUNCTION: extend bmap from blkno for nblocks;
3384 int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks) dbExtendFS() argument
3399 newsize = blkno + nblocks; dbExtendFS()
3401 jfs_info("dbExtendFS: blkno:%Ld nblocks:%Ld newsize:%Ld", dbExtendFS()
3402 (long long) blkno, (long long) nblocks, (long long) newsize); dbExtendFS()
3476 k = blkno >> L2MAXL1SIZE; dbExtendFS()
3478 p = BLKTOL1(blkno, sbi->l2nbperpage); /* L1 page */ dbExtendFS()
3486 /* read in L1 page: (blkno & (MAXL1SIZE - 1)) */ dbExtendFS()
3493 j = (blkno & (MAXL1SIZE - 1)) >> L2MAXL0SIZE; dbExtendFS()
3495 p = BLKTOL0(blkno, sbi->l2nbperpage); dbExtendFS()
3517 /* read in L0 page: (blkno & (MAXL0SIZE - 1)) */ dbExtendFS()
3525 i = (blkno & (MAXL0SIZE - 1)) >> dbExtendFS()
3528 p = BLKTODMAP(blkno, dbExtendFS()
3553 if ((n = blkno & (BPERDMAP - 1))) { dbExtendFS()
3571 *l0leaf = dbInitDmap(dp, blkno, n); dbExtendFS()
3582 blkno += n; dbExtendFS()
3749 int blkno, w, b, r, nw, nb, i; dbInitDmap() local
3752 blkno = Blkno & (BPERDMAP - 1); dbInitDmap()
3754 if (blkno == 0) { dbInitDmap()
3769 w = blkno >> L2DBWORD; dbInitDmap()
3776 for (r = nblocks; r > 0; r -= nb, blkno += nb) { dbInitDmap()
3778 b = blkno & (DBWORD - 1); dbInitDmap()
3809 if (blkno == BPERDMAP) dbInitDmap()
3813 w = blkno >> L2DBWORD; dbInitDmap()
3816 b = blkno & (DBWORD - 1); dbInitDmap()
3844 * blkno - starting block number for this dmap
424 dbUpdatePMap(struct inode *ipbmap, int free, s64 blkno, s64 nblocks, struct tblock * tblk) dbUpdatePMap() argument
978 dbReAlloc(struct inode *ip, s64 blkno, s64 nblocks, s64 addnblocks, s64 * results) dbReAlloc() argument
1257 dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, int nblocks, int l2nb, s64 * results) dbAllocNear() argument
H A Djfs_discard.h23 extern void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks);
H A Djfs_extent.c459 s64 blkno = offsetXAD(xp) >> ip->i_blkbits; extFill() local
467 if ((rc = extAlloc(ip, nbperpage, blkno, xp, false))) extFill()
499 * blkno - pointer to a block address that is filled in on successful
509 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) extBalloc() argument
547 *blkno = daddr; extBalloc()
588 * blkno - starting block number of the extents current allocation.
603 s64 blkno, s64 nblks, s64 * newnblks, s64 * newblkno) extBrealloc()
608 if ((rc = dbExtend(ip, blkno, nblks, *newnblks - nblks)) == 0) { extBrealloc()
609 *newblkno = blkno; extBrealloc()
619 return (extBalloc(ip, blkno, newnblks, newblkno)); extBrealloc()
602 extBrealloc(struct inode *ip, s64 blkno, s64 nblks, s64 * newnblks, s64 * newblkno) extBrealloc() argument
H A Dxattr.c223 s64 blkno; ea_write() local
247 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); ea_write()
271 if (!(mp = get_metapage(ip, blkno + i, bytes_to_write, 1))) { ea_write()
305 DXDaddress(ea, blkno); ea_write()
317 dbFree(ip, blkno, nblocks); ea_write()
372 s64 blkno; ea_read() local
394 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; ea_read()
411 if (!(mp = read_metapage(ip, blkno + i, bytes_to_read, 1))) ea_read()
448 s64 blkno; ea_get() local
528 &blkno); ea_get()
533 DXDaddress(&ea_buf->new_ea, blkno); ea_get()
539 ea_buf->mp = get_metapage(inode, blkno, ea_get()
543 dbFree(inode, blkno, (s64) blocks_needed); ea_get()
554 dbFree(inode, blkno, (s64) blocks_needed); ea_get()
H A Djfs_dmap.h163 __le64 start; /* 8: starting blkno for this dmap */
297 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks);
300 int free, s64 blkno, s64 nblocks, struct tblock * tblk);
307 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results);
310 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks);
311 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
H A Djfs_imap.c312 s64 blkno, agstart; diRead() local
352 blkno = INOPBLK(&iagp->inoext[extno], ino, sbi->l2nbperpage); diRead()
360 pageno = blkno >> sbi->l2nbperpage; diRead()
362 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { diRead()
606 s64 blkno; diWrite() local
636 blkno = INOPBLK(&(jfs_ip->ixpxd), ino, sbi->l2nbperpage); diWrite()
639 pageno = blkno >> sbi->l2nbperpage; diWrite()
641 if ((block_offset = ((u32) blkno & (sbi->nbperpage - 1)))) { diWrite()
2176 s64 blkno, hint; diNewExt() local
2273 if ((rc = dbAlloc(ipimap, hint, (s64) imap->im_nbperiext, &blkno))) diNewExt()
2287 dmp = get_metapage(ipimap, blkno + i, PSIZE, 1); diNewExt()
2303 PXDaddress(&(dp->di_ixpxd), blkno); diNewExt()
2352 PXDaddress(&iagp->inoext[extno], blkno); diNewExt()
2462 s64 blkno; diNewIAG() local
2482 blkno = IAGTOLBLK(iagno, sbi->l2nbperpage); diNewIAG()
2518 blkno = IAGTOLBLK(iagno, sbi->l2nbperpage); diNewIAG()
2538 xtInsert(tid, ipimap, 0, blkno, xlen, &xaddr, 0))) { diNewIAG()
2557 mp = get_metapage(ipimap, blkno, PSIZE, 0); diNewIAG()
2609 duplicateIXtree(sb, blkno, xlen, &xaddr); diNewIAG()
2678 s64 blkno; diIAGRead() local
2681 blkno = IAGTOLBLK(iagno, JFS_SBI(ipimap->i_sb)->l2nbperpage); diIAGRead()
2684 *mpp = read_metapage(ipimap, blkno, PSIZE, 0); diIAGRead()
2994 static void duplicateIXtree(struct super_block *sb, s64 blkno, duplicateIXtree() argument
3022 if (xtInsert(tid, ip, 0, blkno, xlen, xaddr, 0)) { duplicateIXtree()
H A Djfs_dtree.c208 static struct metapage *read_index_page(struct inode *inode, s64 blkno) read_index_page() argument
215 rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1); read_index_page()
227 static struct metapage *get_index_page(struct inode *inode, s64 blkno) get_index_page() argument
234 rc = xtLookup(inode, blkno, 1, &xflag, &xaddr, &xlen, 1); get_index_page()
253 s64 blkno; find_index() local
281 blkno = ((offset + 1) >> L2PSIZE) << find_index()
284 if (*mp && (*lblock != blkno)) { find_index()
289 *lblock = blkno; find_index()
290 *mp = read_index_page(ip, blkno); find_index()
339 u64 blkno; add_index() local
447 blkno = ((offset + 1) >> L2PSIZE) << sbi->l2nbperpage; add_index()
453 if (xtInsert(tid, ip, 0, blkno, sbi->nbperpage, &xaddr, 0)) { add_index()
459 if ((mp = get_index_page(ip, blkno))) add_index()
464 mp = read_index_page(ip, blkno); add_index()
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_da_btree.h77 xfs_dablk_t blkno; /* blkno of attr leaf of interest */ member in struct:xfs_da_args
79 xfs_dablk_t rmtblkno; /* remote attr value starting blkno */
82 xfs_dablk_t blkno2; /* blkno of 2nd attr leaf of interest */
84 xfs_dablk_t rmtblkno2; /* remote attr value starting blkno */
116 xfs_dablk_t blkno; /* filesystem blkno of buffer */ member in struct:xfs_da_state_blk
117 xfs_daddr_t disk_blkno; /* on-disk blkno (in BBs) of buffer */
165 int xfs_da3_node_create(struct xfs_da_args *args, xfs_dablk_t blkno,
H A Dxfs_da_btree.c152 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) xfs_da3_node_verify()
303 xfs_dablk_t blkno, xfs_da3_node_create()
319 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); xfs_da3_node_create()
331 hdr3->info.blkno = cpu_to_be64(bp->b_bn); xfs_da3_node_create()
472 if (be32_to_cpu(node->hdr.info.forw) == addblk->blkno) { xfs_da3_split()
479 node->hdr.info.back = cpu_to_be32(oldblk->blkno); xfs_da3_split()
486 if (be32_to_cpu(node->hdr.info.back) == addblk->blkno) { xfs_da3_split()
493 node->hdr.info.forw = cpu_to_be32(oldblk->blkno); xfs_da3_split()
522 xfs_dablk_t blkno; xfs_da3_root_split() local
534 error = xfs_da_grow_inode(args, &blkno); xfs_da3_root_split()
540 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, args->whichfork); xfs_da3_root_split()
590 node3->hdr.info.blkno = cpu_to_be64(bp->b_bn); xfs_da3_root_split()
597 blk1->blkno = blkno; xfs_da3_root_split()
612 btree[0].before = cpu_to_be32(blk1->blkno); xfs_da3_root_split()
614 btree[1].before = cpu_to_be32(blk2->blkno); xfs_da3_root_split()
621 ASSERT(blk1->blkno >= args->geo->leafblk && xfs_da3_root_split()
622 blk1->blkno < args->geo->freeblk); xfs_da3_root_split()
623 ASSERT(blk2->blkno >= args->geo->leafblk && xfs_da3_root_split()
624 blk2->blkno < args->geo->freeblk); xfs_da3_root_split()
649 xfs_dablk_t blkno; xfs_da3_node_split() local
673 error = xfs_da_grow_inode(state->args, &blkno); xfs_da3_node_split()
677 error = xfs_da3_node_create(state->args, blkno, treelevel, xfs_da3_node_split()
681 newblk->blkno = blkno; xfs_da3_node_split()
897 ASSERT(newblk->blkno != 0); xfs_da3_node_add()
899 ASSERT(newblk->blkno >= state->args->geo->leafblk && xfs_da3_node_add()
900 newblk->blkno < state->args->geo->freeblk); xfs_da3_node_add()
911 btree[oldblk->index].before = cpu_to_be32(newblk->blkno); xfs_da3_node_add()
1001 error = xfs_da_shrink_inode(state->args, drop_blk->blkno, xfs_da3_join()
1099 da3->blkno = cpu_to_be64(root_blk->bp->b_bn); xfs_da3_root_join()
1124 xfs_dablk_t blkno; xfs_da3_node_toosmall() local
1191 blkno = nodehdr.forw; xfs_da3_node_toosmall()
1193 blkno = nodehdr.back; xfs_da3_node_toosmall()
1194 if (blkno == 0) xfs_da3_node_toosmall()
1197 blkno, -1, &bp, state->args->whichfork); xfs_da3_node_toosmall()
1218 if (blkno < blk->blkno) { xfs_da3_node_toosmall()
1462 xfs_dablk_t blkno; xfs_da3_node_lookup_int() local
1478 blkno = (args->whichfork == XFS_DATA_FORK)? args->geo->leafblk : 0; xfs_da3_node_lookup_int()
1485 blk->blkno = blkno; xfs_da3_node_lookup_int()
1486 error = xfs_da3_node_read(args->trans, args->dp, blkno, xfs_da3_node_lookup_int()
1489 blk->blkno = 0; xfs_da3_node_lookup_int()
1561 blkno = be32_to_cpu(btree[max - 1].before); xfs_da3_node_lookup_int()
1564 blkno = be32_to_cpu(btree[probe].before); xfs_da3_node_lookup_int()
1581 args->blkno = blk->blkno; xfs_da3_node_lookup_int()
1690 new_info->forw = cpu_to_be32(old_blk->blkno); xfs_da3_blk_link()
1701 ASSERT(be32_to_cpu(tmp_info->forw) == old_blk->blkno); xfs_da3_blk_link()
1702 tmp_info->forw = cpu_to_be32(new_blk->blkno); xfs_da3_blk_link()
1705 old_info->back = cpu_to_be32(new_blk->blkno); xfs_da3_blk_link()
1712 new_info->back = cpu_to_be32(old_blk->blkno); xfs_da3_blk_link()
1722 ASSERT(be32_to_cpu(tmp_info->back) == old_blk->blkno); xfs_da3_blk_link()
1723 tmp_info->back = cpu_to_be32(new_blk->blkno); xfs_da3_blk_link()
1726 old_info->forw = cpu_to_be32(new_blk->blkno); xfs_da3_blk_link()
1761 ASSERT((be32_to_cpu(save_info->forw) == drop_blk->blkno) || xfs_da3_blk_unlink()
1762 (be32_to_cpu(save_info->back) == drop_blk->blkno)); xfs_da3_blk_unlink()
1763 ASSERT((be32_to_cpu(drop_info->forw) == save_blk->blkno) || xfs_da3_blk_unlink()
1764 (be32_to_cpu(drop_info->back) == save_blk->blkno)); xfs_da3_blk_unlink()
1769 if (be32_to_cpu(save_info->back) == drop_blk->blkno) { xfs_da3_blk_unlink()
1781 ASSERT(be32_to_cpu(tmp_info->forw) == drop_blk->blkno); xfs_da3_blk_unlink()
1782 tmp_info->forw = cpu_to_be32(save_blk->blkno); xfs_da3_blk_unlink()
1798 ASSERT(be32_to_cpu(tmp_info->back) == drop_blk->blkno); xfs_da3_blk_unlink()
1799 tmp_info->back = cpu_to_be32(save_blk->blkno); xfs_da3_blk_unlink()
1832 xfs_dablk_t blkno = 0; xfs_da3_path_shift() local
1856 blkno = be32_to_cpu(btree[blk->index].before); xfs_da3_path_shift()
1860 blkno = be32_to_cpu(btree[blk->index].before); xfs_da3_path_shift()
1878 error = xfs_da3_node_read(args->trans, dp, blkno, -1, &bp, xfs_da3_path_shift()
1891 blk->blkno = blkno; xfs_da3_path_shift()
1919 blkno = be32_to_cpu(btree[blk->index].before); xfs_da3_path_shift()
301 xfs_da3_node_create( struct xfs_da_args *args, xfs_dablk_t blkno, int level, struct xfs_buf **bpp, int whichfork) xfs_da3_node_create() argument
H A Dxfs_attr_leaf.c268 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) xfs_attr3_leaf_verify()
747 xfs_dablk_t blkno; xfs_attr_shortform_to_leaf() local
766 error = xfs_da_grow_inode(args, &blkno); xfs_attr_shortform_to_leaf()
779 ASSERT(blkno == 0); xfs_attr_shortform_to_leaf()
780 error = xfs_attr3_leaf_create(args, blkno, &bp); xfs_attr_shortform_to_leaf()
970 xfs_dablk_t blkno; xfs_attr3_leaf_to_node() local
975 error = xfs_da_grow_inode(args, &blkno); xfs_attr3_leaf_to_node()
982 error = xfs_da_get_buf(args->trans, dp, blkno, -1, &bp2, XFS_ATTR_FORK); xfs_attr3_leaf_to_node()
992 hdr3->blkno = cpu_to_be64(bp2->b_bn); xfs_attr3_leaf_to_node()
1012 btree[0].before = cpu_to_be32(blkno); xfs_attr3_leaf_to_node()
1032 xfs_dablk_t blkno, xfs_attr3_leaf_create()
1044 error = xfs_da_get_buf(args->trans, args->dp, blkno, -1, &bp, xfs_attr3_leaf_create()
1061 hdr3->blkno = cpu_to_be64(bp->b_bn); xfs_attr3_leaf_create()
1088 xfs_dablk_t blkno; xfs_attr3_leaf_split() local
1097 error = xfs_da_grow_inode(state->args, &blkno); xfs_attr3_leaf_split()
1100 error = xfs_attr3_leaf_create(state->args, blkno, &newblk->bp); xfs_attr3_leaf_split()
1103 newblk->blkno = blkno; xfs_attr3_leaf_split()
1117 * modifies the index/blkno/rmtblk/rmtblkcnt fields to show the xfs_attr3_leaf_split()
1274 if ((args->blkno2 == args->blkno) && xfs_attr3_leaf_add_work()
1442 * This code adjusts the args->index/blkno and args->index2/blkno2 fields
1597 * inserting. The index/blkno fields refer to the "old" entry, xfs_attr3_leaf_rebalance()
1604 args->blkno = args->blkno2 = blk2->blkno; xfs_attr3_leaf_rebalance()
1608 args->blkno = blk1->blkno; xfs_attr3_leaf_rebalance()
1610 args->blkno2 = blk2->blkno; xfs_attr3_leaf_rebalance()
1619 args->blkno = blk2->blkno; xfs_attr3_leaf_rebalance()
1627 args->blkno2 = blk2->blkno; xfs_attr3_leaf_rebalance()
1633 args->blkno = args->blkno2 = blk1->blkno; xfs_attr3_leaf_rebalance()
1753 xfs_dablk_t blkno; xfs_attr3_leaf_toosmall() local
1815 blkno = ichdr.forw; xfs_attr3_leaf_toosmall()
1817 blkno = ichdr.back; xfs_attr3_leaf_toosmall()
1818 if (blkno == 0) xfs_attr3_leaf_toosmall()
1821 blkno, -1, &bp); xfs_attr3_leaf_toosmall()
1848 if (blkno < blk->blkno) { xfs_attr3_leaf_toosmall()
2562 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); xfs_attr3_leaf_clearflag()
2629 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); xfs_attr3_leaf_setflag()
2661 * given by args->blkno/index and set the INCOMPLETE flag on the leaf
2691 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp1); xfs_attr3_leaf_flipflags()
2698 if (args->blkno2 != args->blkno) { xfs_attr3_leaf_flipflags()
1030 xfs_attr3_leaf_create( struct xfs_da_args *args, xfs_dablk_t blkno, struct xfs_buf **bpp) xfs_attr3_leaf_create() argument
H A Dxfs_dir2_node.c74 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) xfs_dir3_leafn_check()
99 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) xfs_dir3_free_verify()
231 hdr3->hdr.blkno = cpu_to_be64(bp->b_bn); xfs_dir3_free_get_buf()
450 args->blkno, args->index)); xfs_dir2_leafn_add()
556 curfdb = state->extrablk.blkno; xfs_dir2_leafn_lookup_for_addname()
644 state->extrablk.blkno = curfdb; xfs_dir2_leafn_lookup_for_addname()
707 curdb = state->extrablk.blkno; xfs_dir2_leafn_lookup_for_entry()
737 curdb != state->extrablk.blkno)) xfs_dir2_leafn_lookup_for_entry()
744 newdb == state->extrablk.blkno) { xfs_dir2_leafn_lookup_for_entry()
773 curdb != state->extrablk.blkno) xfs_dir2_leafn_lookup_for_entry()
781 state->extrablk.blkno = curdb; xfs_dir2_leafn_lookup_for_entry()
798 state->extrablk.blkno = curdb; xfs_dir2_leafn_lookup_for_entry()
1193 ASSERT(dblk->blkno == db); xfs_dir2_leafn_remove()
1318 xfs_dablk_t blkno; /* new leaf block number */ xfs_dir2_leafn_split() local
1328 error = xfs_da_grow_inode(args, &blkno); xfs_dir2_leafn_split()
1335 error = xfs_dir3_leaf_get_buf(args, xfs_dir2_da_to_db(args->geo, blkno), xfs_dir2_leafn_split()
1340 newblk->blkno = blkno; xfs_dir2_leafn_split()
1383 xfs_dablk_t blkno; /* leaf block number */ xfs_dir2_leafn_toosmall() local
1447 blkno = forward ? leafhdr.forw : leafhdr.back; xfs_dir2_leafn_toosmall()
1448 if (blkno == 0) xfs_dir2_leafn_toosmall()
1454 blkno, -1, &bp); xfs_dir2_leafn_toosmall()
1491 if (blkno < blk->blkno) xfs_dir2_leafn_toosmall()
1684 ifbno = fblk->blkno; xfs_dir2_node_addname_int()
1860 " fblk 0x%p blkno %llu index %d magic 0x%x", xfs_dir2_node_addname_int()
1862 (unsigned long long)fblk->blkno, xfs_dir2_node_addname_int()
2003 args->blkno = (xfs_dablk_t)dbno; xfs_dir2_node_addname_int()
H A Dxfs_attr.c579 args->blkno = 0; xfs_attr_leaf_addname()
580 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); xfs_attr_leaf_addname()
602 args->blkno2 = args->blkno; /* set 2nd entry info*/ xfs_attr_leaf_addname()
704 args->blkno = args->blkno2; xfs_attr_leaf_addname()
718 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, xfs_attr_leaf_addname()
786 args->blkno = 0; xfs_attr_leaf_removename()
787 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); xfs_attr_leaf_removename()
841 args->blkno = 0; xfs_attr_leaf_get()
842 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); xfs_attr_leaf_get()
913 args->blkno2 = args->blkno; /* set 2nd entry info*/ xfs_attr_node_addname()
975 * in the index/blkno/rmtblkno/rmtblkcnt fields and xfs_attr_node_addname()
1051 args->blkno = args->blkno2; xfs_attr_node_addname()
1370 blk->blkno, blk->disk_blkno, xfs_attr_refillstate()
1389 blk->blkno, blk->disk_blkno, xfs_attr_refillstate()
H A Dxfs_dir2_priv.h58 extern int xfs_dir3_data_init(struct xfs_da_args *args, xfs_dir2_db_t blkno,
H A Dxfs_dir2_block.c73 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) xfs_dir3_block_verify()
162 hdr3->blkno = cpu_to_be64(bp->b_bn); xfs_dir3_block_init()
1050 xfs_dir2_db_t blkno; /* dir-relative block # (0) */ xfs_dir2_sf_to_block() local
1111 error = xfs_dir2_grow_inode(args, XFS_DIR2_DATA_SPACE, &blkno); xfs_dir2_sf_to_block()
1119 error = xfs_dir3_data_init(args, blkno, &bp); xfs_dir2_sf_to_block()
H A Dxfs_log_format.h255 __int64_t ilf_blkno; /* blkno of inode buffer */
271 __int64_t ilf_blkno; /* blkno of inode buffer */
288 __int64_t ilf_blkno; /* blkno of inode buffer */
461 __int64_t blf_blkno; /* starting blkno of this buf */
608 __int64_t qlf_blkno; /* blkno of dquot buffer */
H A Dxfs_bmap.c3380 ap->blkno = ap->prev.br_startblock + ap->prev.br_blockcount; xfs_bmap_adjacent()
3387 ISVALID(ap->blkno + adjust, ap->prev.br_startblock)) xfs_bmap_adjacent()
3388 ap->blkno += adjust; xfs_bmap_adjacent()
3487 * one, else ap->blkno is already set (to 0 or the inode block). xfs_bmap_adjacent()
3490 ap->blkno = prevdiff <= gotdiff ? prevbno : gotbno; xfs_bmap_adjacent()
3492 ap->blkno = prevbno; xfs_bmap_adjacent()
3494 ap->blkno = gotbno; xfs_bmap_adjacent()
3635 ap->blkno = args->fsbno = XFS_AGB_TO_FSB(mp, ag, 0); xfs_bmap_btalloc_filestreams()
3684 ap->blkno = XFS_AGB_TO_FSB(mp, ag, 0); xfs_bmap_btalloc()
3686 ap->blkno = XFS_INO_TO_FSB(mp, ap->ip->i_ino); xfs_bmap_btalloc()
3689 ap->blkno = *ap->firstblock; xfs_bmap_btalloc()
3694 * If allowed, use ap->blkno; otherwise must use firstblock since xfs_bmap_btalloc()
3697 if (nullfb || XFS_FSB_TO_AGNO(mp, ap->blkno) == fb_agno) xfs_bmap_btalloc()
3700 ap->blkno = *ap->firstblock; xfs_bmap_btalloc()
3708 args.fsbno = ap->blkno; xfs_bmap_btalloc()
3818 args.fsbno = ap->blkno; xfs_bmap_btalloc()
3832 args.fsbno = ap->blkno; xfs_bmap_btalloc()
3841 args.fsbno = ap->blkno; xfs_bmap_btalloc()
3866 ap->blkno = args.fsbno; xfs_bmap_btalloc()
3885 ap->blkno = NULLFSBLOCK; xfs_bmap_btalloc()
4341 if (bma->blkno == NULLFSBLOCK) xfs_bmapi_allocate()
4359 bma->got.br_startblock = bma->blkno; xfs_bmapi_allocate()
4623 if (bma.blkno == NULLFSBLOCK) xfs_bmapi_write()
H A Dxfs_bmap.h43 xfs_fsblock_t blkno; /* starting block of new extent */ member in struct:xfs_bmalloca
H A Dxfs_dir2_data.c226 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) xfs_dir3_data_verify()
575 xfs_dir2_db_t blkno, /* logical dir block number */ xfs_dir3_data_init()
595 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, blkno), xfs_dir3_data_init()
611 hdr3->blkno = cpu_to_be64(bp->b_bn); xfs_dir3_data_init()
573 xfs_dir3_data_init( xfs_da_args_t *args, xfs_dir2_db_t blkno, struct xfs_buf **bpp) xfs_dir3_data_init() argument
H A Dxfs_dir2_leaf.c71 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) xfs_dir3_leaf1_check()
166 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) xfs_dir3_leaf_verify()
316 leaf3->info.blkno = cpu_to_be64(bp->b_bn); xfs_dir3_leaf_init()
380 xfs_dablk_t blkno; /* leaf block's bno */ xfs_dir2_block_to_leaf() local
406 if ((error = xfs_da_grow_inode(args, &blkno))) { xfs_dir2_block_to_leaf()
409 ldb = xfs_dir2_da_to_db(args->geo, blkno); xfs_dir2_block_to_leaf()
H A Dxfs_btree.h385 xfs_daddr_t blkno,
H A Dxfs_da_format.h61 __be64 blkno; /* first block of the buffer */ member in struct:xfs_da3_blkinfo
358 __be64 blkno; /* first block of the buffer */ member in struct:xfs_dir3_blk_hdr
H A Dxfs_btree.c1001 xfs_daddr_t blkno, xfs_btree_init_block_int()
1016 buf->bb_u.l.bb_blkno = cpu_to_be64(blkno); xfs_btree_init_block_int()
1029 buf->bb_u.s.bb_blkno = cpu_to_be64(blkno); xfs_btree_init_block_int()
2650 * In that case have to also ensure the blkno remains correct xfs_btree_new_iroot()
998 xfs_btree_init_block_int( struct xfs_mount *mp, struct xfs_btree_block *buf, xfs_daddr_t blkno, __u32 magic, __u16 level, __u16 numrecs, __u64 owner, unsigned int flags) xfs_btree_init_block_int() argument
H A Dxfs_format.h1427 * The blkno, crc, lsn, owner and uuid fields are only available in filesystems
/linux-4.4.14/fs/xfs/
H A Dxfs_buf.h131 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \
132 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) };
201 xfs_daddr_t blkno, xfs_incore()
205 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); xfs_incore()
216 xfs_daddr_t blkno, xfs_buf_alloc()
220 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); xfs_buf_alloc()
238 xfs_daddr_t blkno, xfs_buf_get()
242 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); xfs_buf_get()
249 xfs_daddr_t blkno, xfs_buf_read()
254 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); xfs_buf_read()
261 xfs_daddr_t blkno, xfs_buf_readahead()
265 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); xfs_buf_readahead()
199 xfs_incore( struct xfs_buftarg *target, xfs_daddr_t blkno, size_t numblks, xfs_buf_flags_t flags) xfs_incore() argument
214 xfs_buf_alloc( struct xfs_buftarg *target, xfs_daddr_t blkno, size_t numblks, xfs_buf_flags_t flags) xfs_buf_alloc() argument
236 xfs_buf_get( struct xfs_buftarg *target, xfs_daddr_t blkno, size_t numblks, xfs_buf_flags_t flags) xfs_buf_get() argument
247 xfs_buf_read( struct xfs_buftarg *target, xfs_daddr_t blkno, size_t numblks, xfs_buf_flags_t flags, const struct xfs_buf_ops *ops) xfs_buf_read() argument
259 xfs_buf_readahead( struct xfs_buftarg *target, xfs_daddr_t blkno, size_t numblks, const struct xfs_buf_ops *ops) xfs_buf_readahead() argument
H A Dxfs_attr_list.c60 !((cursor)->blkno) && !((cursor)->offset))
175 cursor->blkno = 0; xfs_attr_shortform_list()
243 if (cursor->blkno > 0) { xfs_attr_node_list()
244 error = xfs_da3_node_read(NULL, dp, cursor->blkno, -1, xfs_attr_node_list()
291 cursor->blkno = 0; xfs_attr_node_list()
296 cursor->blkno, -1, &bp, xfs_attr_node_list()
320 cursor->blkno = be32_to_cpu(btree->before); xfs_attr_node_list()
350 cursor->blkno = leafhdr.forw; xfs_attr_node_list()
352 error = xfs_attr3_leaf_read(NULL, dp, cursor->blkno, -1, &bp); xfs_attr_node_list()
497 context->cursor->blkno = 0; xfs_attr_leaf_list()
622 (cursor->hashval || cursor->blkno || cursor->offset)) xfs_attr_list()
H A Dxfs_trans.h167 xfs_daddr_t blkno, xfs_trans_get_buf()
171 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); xfs_trans_get_buf()
188 xfs_daddr_t blkno, xfs_trans_read_buf()
194 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); xfs_trans_read_buf()
164 xfs_trans_get_buf( struct xfs_trans *tp, struct xfs_buftarg *target, xfs_daddr_t blkno, int numblks, uint flags) xfs_trans_get_buf() argument
184 xfs_trans_read_buf( struct xfs_mount *mp, struct xfs_trans *tp, struct xfs_buftarg *target, xfs_daddr_t blkno, int numblks, xfs_buf_flags_t flags, struct xfs_buf **bpp, const struct xfs_buf_ops *ops) xfs_trans_read_buf() argument
H A Dxfs_pnfs.c91 iomap->blkno = IOMAP_NULL_BLOCK; xfs_bmbt_to_iomap()
94 iomap->blkno = IOMAP_NULL_BLOCK; xfs_bmbt_to_iomap()
97 iomap->blkno = xfs_bmbt_to_iomap()
H A Dxfs_attr_inactive.c50 xfs_dablk_t blkno, xfs_attr3_leaf_freextent()
66 tblkno = blkno; xfs_attr3_leaf_freextent()
332 xfs_daddr_t blkno; xfs_attr3_root_inactive() local
344 blkno = bp->b_bn; xfs_attr3_root_inactive()
371 error = xfs_da_get_buf(*trans, dp, 0, blkno, &bp, XFS_ATTR_FORK); xfs_attr3_root_inactive()
47 xfs_attr3_leaf_freextent( struct xfs_trans **trans, struct xfs_inode *dp, xfs_dablk_t blkno, int blkcnt) xfs_attr3_leaf_freextent() argument
H A Dxfs_trace.h49 __field(u32, blkno)
62 __entry->blkno = ctx->cursor->blkno;
75 __entry->blkno,
171 __field(u32, blkno)
186 __entry->blkno = ctx->cursor->blkno;
202 __entry->blkno,
2011 __field(__int64_t, blkno)
2019 __entry->blkno = buf_f->blf_blkno;
2025 TP_printk("dev %d:%d blkno 0x%llx, len %u, flags 0x%x, size %d, "
2028 __entry->blkno,
2059 __field(__int64_t, blkno)
2070 __entry->blkno = in_f->ilf_blkno;
2075 "dsize %d, blkno 0x%llx, len %d, boffset %d",
2082 __entry->blkno,
H A Dxfs_dquot.h51 xfs_daddr_t q_blkno; /* blkno of dquot buffer */
H A Dxfs_bmap_util.c223 ap->blkno = rtx * mp->m_sb.sb_rextsize; xfs_bmap_rtalloc()
225 ap->blkno = 0; xfs_bmap_rtalloc()
233 atype = ap->blkno == 0 ? XFS_ALLOCTYPE_ANY_AG : XFS_ALLOCTYPE_NEAR_BNO; xfs_bmap_rtalloc()
234 do_div(ap->blkno, mp->m_sb.sb_rextsize); xfs_bmap_rtalloc()
235 rtb = ap->blkno; xfs_bmap_rtalloc()
237 if ((error = xfs_rtallocate_extent(ap->tp, ap->blkno, 1, ap->length, xfs_bmap_rtalloc()
241 (error = xfs_rtallocate_extent(ap->tp, ap->blkno, 1, xfs_bmap_rtalloc()
245 ap->blkno = rtb; xfs_bmap_rtalloc()
246 if (ap->blkno != NULLFSBLOCK) { xfs_bmap_rtalloc()
247 ap->blkno *= mp->m_sb.sb_rextsize; xfs_bmap_rtalloc()
264 error = xfs_zero_extent(ap->ip, ap->blkno, ap->length); xfs_bmap_rtalloc()
H A Dxfs_buf.c446 xfs_daddr_t blkno = map[0].bm_bn; _xfs_buf_find() local
456 ASSERT(!(BBTOB(blkno) & (xfs_off_t)btp->bt_meta_sectormask)); _xfs_buf_find()
463 if (blkno < 0 || blkno >= eofs) { _xfs_buf_find()
471 __func__, blkno, eofs); _xfs_buf_find()
478 xfs_daddr_to_agno(btp->bt_mount, blkno)); _xfs_buf_find()
489 if (blkno < bp->b_bn) _xfs_buf_find()
491 else if (blkno > bp->b_bn) _xfs_buf_find()
H A Dxfs_fsops.c124 xfs_daddr_t blkno, xfs_growfs_get_hdr_buf()
136 bp->b_bn = blkno; xfs_growfs_get_hdr_buf()
137 bp->b_maps[0].bm_bn = blkno; xfs_growfs_get_hdr_buf()
122 xfs_growfs_get_hdr_buf( struct xfs_mount *mp, xfs_daddr_t blkno, size_t numblks, int flags, const struct xfs_buf_ops *ops) xfs_growfs_get_hdr_buf() argument
H A Dxfs_attr.h102 __u32 blkno; /* block containing entry (suggestion) */ member in struct:attrlist_cursor_kern
H A Dxfs_log_recover.c1087 * If the log is partially zeroed, this routine will pass back the blkno
1626 xfs_daddr_t blkno, xlog_peek_buffer_cancelled()
1639 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); list_for_each_entry()
1641 if (bcp->bc_blkno == blkno && bcp->bc_len == len) list_for_each_entry()
1666 xfs_daddr_t blkno, xlog_check_buffer_cancelled()
1672 bcp = xlog_peek_buffer_cancelled(log, blkno, len, flags); xlog_check_buffer_cancelled()
4202 xfs_daddr_t blkno) xlog_valid_rec_header()
4226 if (unlikely( blkno > log->l_logBBsize || blkno > INT_MAX )) { xlog_valid_rec_header()
1624 xlog_peek_buffer_cancelled( struct xlog *log, xfs_daddr_t blkno, uint len, ushort flags) xlog_peek_buffer_cancelled() argument
1664 xlog_check_buffer_cancelled( struct xlog *log, xfs_daddr_t blkno, uint len, ushort flags) xlog_check_buffer_cancelled() argument
4199 xlog_valid_rec_header( struct xlog *log, struct xlog_rec_header *rhead, xfs_daddr_t blkno) xlog_valid_rec_header() argument
H A Dxfs_dquot.c345 * Keep track of the blkno to save a lookup later xfs_qm_dqalloc()
521 * store the blkno etc so that we don't have to do the xfs_qm_dqtobp()
H A Dxfs_log_priv.h417 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \
418 ((log)->l_buf_cancel_table + ((__uint64_t)blkno % XLOG_BC_TABLE_SIZE))
H A Dxfs_inode.c2221 xfs_daddr_t blkno; xfs_ifree_cluster() local
2247 blkno = XFS_AGB_TO_DADDR(mp, XFS_INO_TO_AGNO(mp, inum), xfs_ifree_cluster()
2258 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno, xfs_ifree_cluster()
/linux-4.4.14/fs/ufs/
H A Dballoc.c44 u64 blkno; ufs_free_fragments() local
94 blkno = ufs_fragstoblks (bbase); ufs_free_fragments()
95 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { ufs_free_fragments()
100 ufs_clusteracct (sb, ucpi, blkno, 1); ufs_free_fragments()
139 u64 blkno; ufs_free_blocks() local
181 blkno = ufs_fragstoblks(i); ufs_free_blocks()
182 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { ufs_free_blocks()
185 ubh_setblock(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno); ufs_free_blocks() local
187 ufs_clusteracct (sb, ucpi, blkno, 1); ufs_free_blocks()
690 u64 result, blkno; ufs_alloccg_block() local
719 blkno = ufs_fragstoblks(result); ufs_alloccg_block()
720 ubh_clrblock (UCPI_UBH(ucpi), ucpi->c_freeoff, blkno); ufs_alloccg_block() local
722 ufs_clusteracct (sb, ucpi, blkno, -1); ufs_alloccg_block()
853 struct ufs_cg_private_info * ucpi, unsigned blkno, int cnt) ufs_clusteracct()
863 ubh_setbit(UCPI_UBH(ucpi), ucpi->c_clusteroff, blkno); ufs_clusteracct()
865 ubh_clrbit(UCPI_UBH(ucpi), ucpi->c_clusteroff, blkno); ufs_clusteracct() local
870 start = blkno + 1; ufs_clusteracct()
882 start = blkno - 1; ufs_clusteracct()
852 ufs_clusteracct(struct super_block * sb, struct ufs_cg_private_info * ucpi, unsigned blkno, int cnt) ufs_clusteracct() argument
H A Dufs_fs.h374 __fs32 fs_bshift; /* ``lblkno'' calc of logical blkno */
747 __u32 s_bshift; /* `lblkno'' calc of logical blkno */
/linux-4.4.14/include/linux/
H A Dexportfs.h187 #define IOMAP_MAPPED 0x03 /* blocks allocated @blkno */
188 #define IOMAP_UNWRITTEN 0x04 /* blocks allocated @blkno in unwritten state */
190 #define IOMAP_NULL_BLOCK -1LL /* blkno is not valid */
193 sector_t blkno; /* first sector of mapping */ member in struct:iomap
/linux-4.4.14/fs/nfsd/
H A Dblocklayout.c94 bex->soff = (iomap.blkno << 9); nfsd4_block_proc_layoutget()
107 bex->soff = (iomap.blkno << 9); nfsd4_block_proc_layoutget()
/linux-4.4.14/fs/f2fs/
H A Dcheckpoint.c148 block_t blkno = start; ra_meta_pages() local
159 for (; nrpages-- > 0; blkno++) { ra_meta_pages()
161 if (!is_valid_blkaddr(sbi, blkno, type)) ra_meta_pages()
166 if (unlikely(blkno >= ra_meta_pages()
168 blkno = 0; ra_meta_pages()
171 blkno * NAT_ENTRY_PER_BLOCK); ra_meta_pages()
176 blkno * SIT_ENTRY_PER_BLOCK); ra_meta_pages()
177 if (blkno != start && prev_blk_addr + 1 != fio.blk_addr) ra_meta_pages()
184 fio.blk_addr = blkno; ra_meta_pages()
204 return blkno - start; ra_meta_pages()
/linux-4.4.14/drivers/scsi/
H A Dst.c2715 int fileno, blkno, at_sm, undone; st_int_ioctl()
2728 blkno = STps->drv_block; st_int_ioctl()
2744 blkno = 0; st_int_ioctl()
2759 blkno = (-1); /* We can't know the block number */ st_int_ioctl()
2769 if (blkno >= 0) st_int_ioctl()
2770 blkno += arg; st_int_ioctl()
2781 if (blkno >= 0) st_int_ioctl()
2782 blkno -= arg; st_int_ioctl()
2793 blkno = fileno = (-1); st_int_ioctl()
2806 blkno = fileno = (-1); st_int_ioctl()
2841 blkno = 0; st_int_ioctl()
2851 fileno = blkno = at_sm = 0; st_int_ioctl()
2865 fileno = blkno = at_sm = 0; st_int_ioctl()
2883 blkno = -1; st_int_ioctl()
2899 fileno = blkno = at_sm = 0; st_int_ioctl()
2977 STps->drv_block = blkno; st_int_ioctl()
3060 if (blkno >= undone) st_int_ioctl()
3061 STps->drv_block = blkno - undone; st_int_ioctl()
3074 STps->drv_block = blkno + undone; st_int_ioctl()
2703 int fileno, blkno, at_sm, undone; st_int_ioctl() local
H A Dosst.c4068 int fileno, blkno, at_sm, frame_seq_numbr, logical_blk_num; osst_int_ioctl()
4081 blkno = STps->drv_block; osst_int_ioctl()
4099 blkno = 0; osst_int_ioctl()
4111 blkno = (-1); /* We can't know the block number */ osst_int_ioctl()
4124 if (blkno >= 0) blkno += arg; osst_int_ioctl()
4128 if (blkno >= 0) blkno -= arg; osst_int_ioctl()
4132 blkno = STps->drv_block; osst_int_ioctl()
4148 blkno = fileno = (-1); osst_int_ioctl()
4169 blkno = fileno = (-1); osst_int_ioctl()
4186 if (blkno >= 0) blkno = 0; osst_int_ioctl()
4208 blkno = 0; osst_int_ioctl()
4246 fileno = blkno = at_sm = frame_seq_numbr = logical_blk_num = 0 ; osst_int_ioctl()
4274 blkno = at_sm = 0; osst_int_ioctl()
4285 fileno = blkno = at_sm = 0 ; osst_int_ioctl()
4295 fileno = blkno = at_sm = frame_seq_numbr = logical_blk_num = 0 ; osst_int_ioctl()
4362 blkno--; osst_int_ioctl()
4366 blkno++; osst_int_ioctl()
4368 STps->drv_block = blkno; osst_int_ioctl()
4064 int fileno, blkno, at_sm, frame_seq_numbr, logical_blk_num; osst_int_ioctl() local
/linux-4.4.14/drivers/usb/storage/
H A Dene_ub6250.c1683 u32 blkno; ms_scsi_read() local
1706 blkno = phyblk * 0x20 + PageNum; ms_scsi_read()
1715 bcb->CDB[5] = (unsigned char)(blkno); ms_scsi_read()
1716 bcb->CDB[4] = (unsigned char)(blkno>>8); ms_scsi_read()
1717 bcb->CDB[3] = (unsigned char)(blkno>>16); ms_scsi_read()
1718 bcb->CDB[2] = (unsigned char)(blkno>>24); ms_scsi_read()
/linux-4.4.14/fs/ext4/
H A Dsuper.c2295 * Resulting logical blkno at s_maxbytes must fit in our on-disk

Completed in 1897 milliseconds