| /linux/fs/xfs/libxfs/ |
| H A D | xfs_da_btree.c | 211 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_da3_blkinfo_verify() 478 * For v5 file systems make sure the right blkno is stamped in. 492 da3->blkno = cpu_to_be64(xfs_buf_daddr(dst)); in xfs_da_buf_copy() 505 xfs_dablk_t blkno, in xfs_da3_node_create() argument 521 error = xfs_da_get_buf(tp, dp, blkno, &bp, whichfork); in xfs_da3_node_create() 533 hdr3->info.blkno = cpu_to_be64(xfs_buf_daddr(bp)); in xfs_da3_node_create() 685 if (be32_to_cpu(node->hdr.info.forw) != addblk->blkno) { in xfs_da3_split() 692 node->hdr.info.back = cpu_to_be32(oldblk->blkno); in xfs_da3_split() 699 if (be32_to_cpu(node->hdr.info.back) != addblk->blkno) { in xfs_da3_split() 706 node->hdr.info.forw = cpu_to_be32(oldblk->blkno); in xfs_da3_split() 736 xfs_dablk_t blkno; xfs_da3_root_split() local 842 xfs_dablk_t blkno; xfs_da3_node_split() local 1314 xfs_dablk_t blkno; xfs_da3_node_toosmall() local 1688 xfs_dablk_t blkno; xfs_da3_node_lookup_int() local 2143 xfs_dablk_t blkno = 0; xfs_da3_path_shift() local [all...] |
| H A D | xfs_attr_leaf.c | 1067 xfs_dablk_t blkno; in xfs_attr_shortform_to_leaf() 1080 error = xfs_da_grow_inode(args, &blkno); in xfs_attr_shortform_to_leaf() 1084 ASSERT(blkno == 0); in xfs_attr_shortform_to_leaf() 1085 error = xfs_attr3_leaf_create(args, blkno, &bp); in xfs_attr_shortform_to_leaf() 1336 xfs_dablk_t blkno; in xfs_attr3_leaf_to_node() 1346 error = xfs_da_grow_inode(args, &blkno); in xfs_attr3_leaf_to_node() 1353 error = xfs_da_get_buf(args->trans, dp, blkno, &bp2, XFS_ATTR_FORK); in xfs_attr3_leaf_to_node() 1378 icnodehdr.btree[0].before = cpu_to_be32(blkno); 1398 xfs_dablk_t blkno, in xfs_attr3_leaf_create() 1410 error = xfs_da_get_buf(args->trans, args->dp, blkno, in xfs_attr3_leaf_create() 1054 xfs_dablk_t blkno; xfs_attr_shortform_to_leaf() local 1323 xfs_dablk_t blkno; xfs_attr3_leaf_to_node() local 1385 xfs_attr3_leaf_create(struct xfs_da_args * args,xfs_dablk_t blkno,struct xfs_buf ** bpp) xfs_attr3_leaf_create() argument 1440 xfs_attr3_leaf_init(struct xfs_trans * tp,struct xfs_inode * dp,xfs_dablk_t blkno) xfs_attr3_leaf_init() argument 1467 xfs_dablk_t blkno; xfs_attr3_leaf_split() local 2166 xfs_dablk_t blkno; xfs_attr3_leaf_toosmall() local [all...] |
| H A D | xfs_btree_mem.h | 15 static inline xfs_daddr_t xfbno_to_daddr(xfbno_t blkno) in xfbno_to_daddr() argument 17 return blkno << XFBNO_BBSHIFT; in xfbno_to_daddr()
|
| H A D | xfs_da_btree.h | 77 xfs_dablk_t blkno; /* blkno of attr leaf of interest */ member 119 xfs_dablk_t blkno; /* filesystem blkno of buffer */ member 177 int xfs_da3_node_create(struct xfs_da_args *args, xfs_dablk_t blkno,
|
| H A D | xfs_log_recover.h | 126 void xlog_buf_readahead(struct xlog *log, xfs_daddr_t blkno, uint len, 128 bool xlog_is_buffer_cancelled(struct xlog *log, xfs_daddr_t blkno, uint len);
|
| H A D | xfs_attr_leaf.h | 92 xfs_dablk_t blkno);
|
| /linux/fs/xfs/ |
| H A D | xfs_buf.h | 120 #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ argument 121 struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) }; 210 xfs_daddr_t blkno, in xfs_buf_incore() argument 215 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_incore() 223 xfs_daddr_t blkno, in xfs_buf_get() argument 227 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_get() 235 xfs_daddr_t blkno, in xfs_buf_read() argument 241 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_read() 250 xfs_daddr_t blkno, in xfs_buf_readahead() argument 254 DEFINE_SINGLE_BUF_MAP(map, blkno, numblks); in xfs_buf_readahead()
|
| H A D | xfs_buf_item_recover.c | 37 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \ argument 38 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE)) 54 xfs_daddr_t blkno, in xlog_find_buffer_cancelled() argument 63 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); in xlog_find_buffer_cancelled() 65 if (bcp->bc_blkno == blkno && bcp->bc_len == len) in xlog_find_buffer_cancelled() 75 xfs_daddr_t blkno, in xlog_add_buffer_cancelled() argument 87 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled() 94 bcp->bc_blkno = blkno; in xlog_add_buffer_cancelled() 97 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled() 107 xfs_daddr_t blkno, in xlog_is_buffer_cancelled() argument [all …]
|
| H A D | xfs_attr_inactive.c | 37 xfs_dablk_t blkno, in xfs_attr3_rmt_stale() argument 53 error = xfs_bmapi_read(dp, (xfs_fileoff_t)blkno, blkcnt, in xfs_attr3_rmt_stale() 69 blkno += map.br_blockcount; in xfs_attr3_rmt_stale()
|
| /linux/fs/ocfs2/ |
| H A D | dir.h | 50 struct inode *inode, u64 blkno, 55 struct inode *inode, u64 blkno, in ocfs2_add_entry() argument 61 inode, blkno, parent_fe_bh, lookup); in ocfs2_add_entry() 74 u64 *blkno, 78 int namelen, u64 *blkno);
|
| H A D | ioctl.c | 279 struct inode *inode_alloc, u64 blkno, in ocfs2_info_scan_inode_alloc() argument 299 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_scan_inode_alloc() 330 u64 blkno = -1; in ocfs2_info_handle_freeinode() local 365 namebuf, len, &blkno); in ocfs2_info_handle_freeinode() 372 status = ocfs2_info_scan_inode_alloc(osb, inode_alloc, blkno, oifi, i); in ocfs2_info_handle_freeinode() 439 u64 blkno; in ocfs2_info_freefrag_scan_chain() local 456 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_info_freefrag_scan_chain() 458 blkno = le64_to_cpu(bg->bg_next_group); in ocfs2_info_freefrag_scan_chain() 468 blkno, &bh); in ocfs2_info_freefrag_scan_chain() 470 status = ocfs2_read_blocks_sync(osb, blkno, 1, &bh); in ocfs2_info_freefrag_scan_chain() [all …]
|
| H A D | xattr.c | 240 static int ocfs2_validate_xattr_entry(struct super_block *sb, u64 blkno, 249 (unsigned long long)blkno, 289 u64 blkno, u32 cpos, u32 len, void *para); 299 u64 blkno, 409 static int ocfs2_validate_xattr_entries_flat(struct super_block *sb, u64 blkno, in ocfs2_read_xattr_bucket() 413 u64 blkno); in ocfs2_read_xattr_bucket() 1092 static int ocfs2_validate_xattr_entries_flat(struct super_block *sb, u64 blkno, in ocfs2_validate_inode_xattr() 1105 (unsigned long long)blkno, region_size); in ocfs2_validate_xattr_bucket() 1113 (unsigned long long)blkno, in ocfs2_validate_xattr_bucket() 1122 ret = ocfs2_validate_xattr_entry(sb, blkno, x in ocfs2_validate_xattr_bucket() 984 ocfs2_validate_xattr_entries_flat(struct super_block * sb,u64 blkno,struct ocfs2_xattr_header * xh,size_t region_size) ocfs2_validate_xattr_entries_flat() argument 1044 ocfs2_xattr_ibody_lookup_header_raw(struct super_block * sb,u64 blkno,struct ocfs2_dinode * di,struct ocfs2_xattr_header ** header,u16 * inline_size_ret) ocfs2_xattr_ibody_lookup_header_raw() argument 1084 ocfs2_validate_inode_xattr(struct super_block * sb,u64 blkno,struct ocfs2_dinode * di) ocfs2_validate_inode_xattr() argument 1103 ocfs2_validate_xattr_bucket(struct ocfs2_xattr_bucket * bucket,u64 blkno) ocfs2_validate_xattr_bucket() argument 1346 u64 blkno; ocfs2_xattr_get_value_outside() local 1598 u64 blkno; __ocfs2_xattr_set_value_outside() local 4076 u64 blkno, lower_blkno = 0; ocfs2_xattr_bucket_find() local 4216 ocfs2_iterate_xattr_buckets(struct inode * inode,u64 blkno,u32 clusters,xattr_bucket_func * func,void * para) ocfs2_iterate_xattr_buckets() argument 4372 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 4517 u64 blkno; ocfs2_xattr_create_index_block() local 4632 u64 blkno = bucket_blkno(bucket); ocfs2_defrag_xattr_bucket() local 5658 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 6338 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 6994 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 7078 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 7174 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 7241 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 [all...] |
| H A D | buffer_head_io.c | 403 sector_t blkno) in ocfs2_check_super_or_backup() argument 408 if (blkno == OCFS2_SUPER_BLOCK_BLKNO) in ocfs2_check_super_or_backup() 413 if (backup_blkno == blkno) in ocfs2_check_super_or_backup()
|
| H A D | slot_map.c | 361 u64 blkno; in ocfs2_map_slot_buffers() local 397 &blkno, NULL, NULL); in ocfs2_map_slot_buffers() 403 trace_ocfs2_map_slot_buffers_block((unsigned long long)blkno, i); in ocfs2_map_slot_buffers() 406 status = ocfs2_read_blocks(INODE_CACHE(si->si_inode), blkno, in ocfs2_map_slot_buffers()
|
| H A D | namei.c | 67 u64 blkno, 101 u64 blkno; in ocfs2_lookup() local 124 dentry->d_name.len, &blkno); in ocfs2_lookup() 128 inode = ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0); in ocfs2_lookup() 887 u64 blkno; in ocfs2_unlink() 921 dentry->d_name.len, &blkno, dir, in ocfs2_unlink() 929 if (OCFS2_I(inode)->ip_blkno != blkno) { in ocfs2_unlink() 934 (unsigned long long)blkno, in ocfs2_unlink() 2087 static int ocfs2_blkno_stringify(u64 blkno, char *name) in ocfs2_symlink() 2092 (long long)blkno); in ocfs2_blkno_stringify() 888 u64 blkno; ocfs2_unlink() local 2089 ocfs2_blkno_stringify(u64 blkno,char * name) ocfs2_blkno_stringify() argument 2154 __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 2212 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 [all...] |
| H A D | xattr.h | 51 int ocfs2_validate_inode_xattr(struct super_block *sb, u64 blkno,
|
| /linux/fs/gfs2/ |
| H A D | lops.c | 255 * @blkno: The device block number we want to write to 264 static struct bio *gfs2_log_alloc_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_alloc_bio() argument 270 bio->bi_iter.bi_sector = blkno << sdp->sd_fsb2bb_shift; in gfs2_log_alloc_bio() 280 * @blkno: The device block number we want to write to 294 static struct bio *gfs2_log_get_bio(struct gfs2_sbd *sdp, u64 blkno, in gfs2_log_get_bio() argument 305 if (blkno == nblk && !flush) in gfs2_log_get_bio() 310 *biop = gfs2_log_alloc_bio(sdp, blkno, end_io, opf); in gfs2_log_get_bio() 321 * @blkno: block number of the log entry 331 u64 blkno, blk_opf_t opf) in gfs2_log_write() argument 336 bio = gfs2_log_get_bio(sdp, blkno, in gfs2_log_write() 756 obsolete_rgrp(struct gfs2_jdesc * jd,struct buffer_head * bh_log,u64 blkno) obsolete_rgrp() argument 785 u64 blkno; buf_lo_scan_elements() local 927 u64 blkno; revoke_lo_scan_elements() local 1009 u64 blkno; databuf_lo_scan_elements() local [all...] |
| H A D | recovery.c | 56 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_add() 62 if (iter->rr_blkno == blkno) { in gfs2_revoke_add() 77 rr->rr_blkno = blkno; in gfs2_revoke_add() 84 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_check() 90 if (iter->rr_blkno == blkno) { in gfs2_revoke_check() 120 unsigned int blkno, struct gfs2_log_header_host *head) in __get_log_header() 127 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header() 55 gfs2_revoke_add(struct gfs2_jdesc * jd,u64 blkno,unsigned int where) gfs2_revoke_add() argument 83 gfs2_revoke_check(struct gfs2_jdesc * jd,u64 blkno,unsigned int where) gfs2_revoke_check() argument 119 __get_log_header(struct gfs2_sbd * sdp,const struct gfs2_log_header * lh,unsigned int blkno,struct gfs2_log_header_host * head) __get_log_header() argument
|
| /linux/fs/jfs/ |
| H A D | xattr.c | 208 s64 blkno; in ea_write() local 232 rc = dbAlloc(ip, INOHINT(ip), nblocks, &blkno); in ea_write() 256 if (!(mp = get_metapage(ip, blkno + i, bytes_to_write, 1))) { in ea_write() 290 DXDaddress(ea, blkno); in ea_write() 302 dbFree(ip, blkno, nblocks); in ea_write() 357 s64 blkno; in ea_read() local 379 blkno = addressDXD(&ji->ea) << sbi->l2nbperpage; in ea_read() 396 if (!(mp = read_metapage(ip, blkno + i, bytes_to_read, 1))) in ea_read() 433 s64 blkno; in ea_get() local 517 &blkno); in ea_get() [all …]
|
| H A D | jfs_dmap.h | 284 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks); 287 int free, s64 blkno, s64 nblocks, struct tblock * tblk); 294 s64 blkno, s64 nblocks, s64 addnblocks, s64 * results); 297 extern int dbAllocBottomUp(struct inode *ip, s64 blkno, s64 nblocks); 298 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
|
| H A D | jfs_discard.h | 10 extern void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks);
|
| H A D | jfs_extent.c | 309 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument 352 *blkno = daddr; in extBalloc()
|
| /linux/drivers/md/ |
| H A D | dm-verity-target.c | 442 sector_t blkno = block->blkno; in verity_handle_data_hash_mismatch() 452 if (verity_recheck(v, io, want_digest, blkno, data) == 0) { 454 set_bit(blkno, v->validated_blocks); in verity_clear_pending_blocks() 458 blkno, data) == 0) in verity_clear_pending_blocks() 463 if (verity_handle_err(v, DM_VERITY_BLOCK_TYPE_DATA, blkno)) { 465 dm_audit_log_bio(DM_MSG_PREFIX, "verify-data", bio, blkno, 0); in verity_verify_pending_blocks() 512 set_bit(block->blkno, v->validated_blocks); in verity_verify_io() 551 sector_t blkno = io->block + b; in verity_verify_io() 558 likely(test_bit(blkno, in verity_verify_io() 424 sector_t blkno = block->blkno; verity_handle_data_hash_mismatch() local 533 sector_t blkno = io->block + b; verity_verify_io() local [all...] |
| H A D | dm-verity.h | 89 sector_t blkno; member
|
| /linux/fs/f2fs/ |
| H A D | checkpoint.c | 459 block_t blkno = start; in f2fs_ra_meta_pages() 477 for (; nrblocks-- > 0; blkno++) { in f2fs_ra_meta_pages() 480 if (!f2fs_is_valid_blkaddr(sbi, blkno, type)) in f2fs_ra_meta_pages() 485 if (unlikely(blkno >= in f2fs_ra_meta_pages() 487 blkno = 0; in f2fs_ra_meta_pages() 490 blkno * NAT_ENTRY_PER_BLOCK(sbi)); in f2fs_ra_meta_pages() 493 if (unlikely(blkno >= TOTAL_SEGS(sbi))) in f2fs_ra_meta_pages() 497 blkno * SIT_ENTRY_PER_BLOCK(sbi)); in f2fs_ra_meta_pages() 502 fio.new_blkaddr = blkno; in f2fs_ra_meta_pages() 527 return blkno in f2fs_ra_meta_pages_cond() 453 block_t blkno = start; f2fs_ra_meta_pages() local [all...] |