Home
last modified time | relevance | path

Searched refs:blkno (Results 1 – 25 of 34) sorted by relevance

12

/linux/fs/xfs/libxfs/
H A Dxfs_da_btree.c211 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_da3_blkinfo_verify()
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; in xfs_da3_root_split() local
[all …]
H A Dxfs_attr_leaf.c1054 xfs_dablk_t blkno; in xfs_attr_shortform_to_leaf() local
1067 error = xfs_da_grow_inode(args, &blkno); in xfs_attr_shortform_to_leaf()
1071 ASSERT(blkno == 0); in xfs_attr_shortform_to_leaf()
1072 error = xfs_attr3_leaf_create(args, blkno, &bp); in xfs_attr_shortform_to_leaf()
1323 xfs_dablk_t blkno; in xfs_attr3_leaf_to_node() local
1333 error = xfs_da_grow_inode(args, &blkno); in xfs_attr3_leaf_to_node()
1340 error = xfs_da_get_buf(args->trans, dp, blkno, &bp2, XFS_ATTR_FORK); in xfs_attr3_leaf_to_node()
1365 icnodehdr.btree[0].before = cpu_to_be32(blkno); in xfs_attr3_leaf_to_node()
1385 xfs_dablk_t blkno, in xfs_attr3_leaf_create() argument
1397 error = xfs_da_get_buf(args->trans, args->dp, blkno, &bp, in xfs_attr3_leaf_create()
[all …]
H A Dxfs_btree_mem.h15 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 Dxfs_da_btree.h77 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 Dxfs_log_recover.h126 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 Dxfs_attr_leaf.h92 xfs_dablk_t blkno);
H A Dxfs_dir2_data.c325 if (be64_to_cpu(hdr3->blkno) != xfs_buf_daddr(bp)) in xfs_dir3_data_verify()
725 xfs_dir2_db_t blkno, /* logical dir block number */ in xfs_dir3_data_init() argument
741 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, blkno), in xfs_dir3_data_init()
760 hdr3->blkno = cpu_to_be64(xfs_buf_daddr(bp)); in xfs_dir3_data_init()
/linux/fs/xfs/
H A Dxfs_buf.h120 #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 Dxfs_buf_item_recover.c37 #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 Dxfs_attr_inactive.c37 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 Ddir.h50 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 Dxattr.c273 u64 blkno, u32 cpos, u32 len, void *para);
283 u64 blkno,
393 static int ocfs2_validate_xattr_entries_flat(struct super_block *sb, u64 blkno,
397 u64 blkno);
984 static int ocfs2_validate_xattr_entries_flat(struct super_block *sb, u64 blkno, in ocfs2_validate_xattr_entries_flat() argument
997 (unsigned long long)blkno, region_size); in ocfs2_validate_xattr_entries_flat()
1005 (unsigned long long)blkno, in ocfs2_validate_xattr_entries_flat()
1017 (unsigned long long)blkno, i); in ocfs2_validate_xattr_entries_flat()
1023 (unsigned long long)blkno, i); in ocfs2_validate_xattr_entries_flat()
1030 (unsigned long long)blkno, in ocfs2_validate_xattr_entries_flat()
[all …]
H A Dslot_map.c361 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 Dnamei.c67 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()
888 u64 blkno; in ocfs2_unlink() local
922 dentry->d_name.len, &blkno, dir, in ocfs2_unlink()
930 if (OCFS2_I(inode)->ip_blkno != blkno) { in ocfs2_unlink()
935 (unsigned long long)blkno, in ocfs2_unlink()
2089 static int ocfs2_blkno_stringify(u64 blkno, char *name) in ocfs2_blkno_stringify() argument
2094 (long long)blkno); in ocfs2_blkno_stringify()
[all …]
H A Dxattr.h46 int ocfs2_validate_inode_xattr(struct super_block *sb, u64 blkno,
H A Dlocalalloc.c949 u64 blkno; in ocfs2_sync_local_to_main() local
980 blkno = la_start_blk + in ocfs2_sync_local_to_main()
987 (unsigned long long)blkno); in ocfs2_sync_local_to_main()
991 main_bm_bh, blkno, in ocfs2_sync_local_to_main()
/linux/fs/jfs/
H A Dxattr.c208 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 Djfs_dmap.h284 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 Djfs_discard.h10 extern void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks);
H A Djfs_extent.c309 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
352 *blkno = daddr; in extBalloc()
/linux/fs/gfs2/
H A Drecovery.c55 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_add() argument
61 if (iter->rr_blkno == blkno) { in gfs2_revoke_add()
76 rr->rr_blkno = blkno; in gfs2_revoke_add()
83 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_check() argument
89 if (iter->rr_blkno == blkno) { in gfs2_revoke_check()
119 unsigned int blkno, struct gfs2_log_header_host *head) in __get_log_header() argument
126 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header()
/linux/drivers/md/
H A Ddm-verity-target.c424 sector_t blkno = block->blkno; in verity_handle_data_hash_mismatch() local
434 if (verity_recheck(v, io, want_digest, blkno, data) == 0) { in verity_handle_data_hash_mismatch()
436 set_bit(blkno, v->validated_blocks); in verity_handle_data_hash_mismatch()
440 blkno, data) == 0) in verity_handle_data_hash_mismatch()
445 if (verity_handle_err(v, DM_VERITY_BLOCK_TYPE_DATA, blkno)) { in verity_handle_data_hash_mismatch()
447 dm_audit_log_bio(DM_MSG_PREFIX, "verify-data", bio, blkno, 0); in verity_handle_data_hash_mismatch()
494 set_bit(block->blkno, v->validated_blocks); in verity_verify_pending_blocks()
533 sector_t blkno = io->block + b; in verity_verify_io() local
540 likely(test_bit(blkno, v->validated_blocks))) in verity_verify_io()
545 r = verity_hash_for_block(v, io, blkno, block->want_digest, in verity_verify_io()
[all …]
H A Ddm-verity.h89 sector_t blkno; member
/linux/fs/f2fs/
H A Dcheckpoint.c453 block_t blkno = start; in f2fs_ra_meta_pages() local
470 for (; nrpages-- > 0; blkno++) { in f2fs_ra_meta_pages()
473 if (!f2fs_is_valid_blkaddr(sbi, blkno, type)) in f2fs_ra_meta_pages()
478 if (unlikely(blkno >= in f2fs_ra_meta_pages()
480 blkno = 0; in f2fs_ra_meta_pages()
483 blkno * NAT_ENTRY_PER_BLOCK); in f2fs_ra_meta_pages()
486 if (unlikely(blkno >= TOTAL_SEGS(sbi))) in f2fs_ra_meta_pages()
490 blkno * SIT_ENTRY_PER_BLOCK); in f2fs_ra_meta_pages()
495 fio.new_blkaddr = blkno; in f2fs_ra_meta_pages()
520 return blkno - start; in f2fs_ra_meta_pages()
/linux/drivers/scsi/
H A Dst.c2734 int fileno, blkno, at_sm, undone; in st_int_ioctl() local
2747 blkno = STps->drv_block; in st_int_ioctl()
2764 blkno = 0; in st_int_ioctl()
2780 blkno = (-1); /* We can't know the block number */ in st_int_ioctl()
2790 if (blkno >= 0) in st_int_ioctl()
2791 blkno += arg; in st_int_ioctl()
2802 if (blkno >= 0) in st_int_ioctl()
2803 blkno -= arg; in st_int_ioctl()
2814 blkno = fileno = (-1); in st_int_ioctl()
2827 blkno = fileno = (-1); in st_int_ioctl()
[all …]

12