Home
last modified time | relevance | path

Searched refs:blocknr (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.12.1/fs/jbd2/
Drevoke.c106 unsigned long long blocknr; member
136 static int insert_revoke_hash(journal_t *journal, unsigned long long blocknr, in insert_revoke_hash() argument
150 record->blocknr = blocknr; in insert_revoke_hash()
151 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash()
161 unsigned long long blocknr) in find_revoke_record() argument
166 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record()
171 if (record->blocknr == blocknr) { in find_revoke_record()
326 int jbd2_journal_revoke(handle_t *handle, unsigned long long blocknr, in jbd2_journal_revoke() argument
348 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke()
358 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke()
[all …]
Drecovery.c72 unsigned long long blocknr; in do_readahead() local
88 err = jbd2_journal_bmap(journal, next, &blocknr); in do_readahead()
96 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead()
134 unsigned long long blocknr; in jread() local
144 err = jbd2_journal_bmap(journal, offset, &blocknr); in jread()
152 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread()
663 unsigned long long blocknr; in do_one_pass() local
666 blocknr = read_tag_block(journal, in do_one_pass()
673 (journal, blocknr, in do_one_pass()
690 blocknr, io_block); in do_one_pass()
[all …]
Djournal.c329 sector_t blocknr) in jbd2_journal_write_metadata_buffer() argument
420 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer()
815 unsigned long blocknr; in jbd2_journal_next_log_block() local
820 blocknr = journal->j_head; in jbd2_journal_next_log_block()
826 return jbd2_journal_bmap(journal, blocknr, retp); in jbd2_journal_next_log_block()
833 unsigned long blocknr; in jbd2_fc_get_buf() local
844 blocknr = journal->j_fc_first + fc_off; in jbd2_fc_get_buf()
846 ret = jbd2_journal_bmap(journal, blocknr, &pblock); in jbd2_fc_get_buf()
920 int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, in jbd2_journal_bmap() argument
925 sector_t block = blocknr; in jbd2_journal_bmap()
[all …]
Dcheckpoint.c320 unsigned long blocknr; in jbd2_cleanup_journal_tail() local
325 if (!jbd2_journal_get_log_tail(journal, &first_tid, &blocknr)) in jbd2_cleanup_journal_tail()
327 J_ASSERT(blocknr != 0); in jbd2_cleanup_journal_tail()
340 return __jbd2_update_log_tail(journal, first_tid, blocknr); in jbd2_cleanup_journal_tail()
/linux-6.12.1/fs/nilfs2/
Ddat.c143 sector_t blocknr) in nilfs_dat_commit_start() argument
152 entry->de_blocknr = cpu_to_le64(blocknr); in nilfs_dat_commit_start()
162 sector_t blocknr; in nilfs_dat_prepare_end() local
174 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_prepare_end()
177 if (blocknr == 0) { in nilfs_dat_prepare_end()
202 sector_t blocknr; in nilfs_dat_commit_end() local
214 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_commit_end()
217 if (blocknr == 0) in nilfs_dat_commit_end()
227 sector_t blocknr; in nilfs_dat_abort_end() local
234 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_abort_end()
[all …]
Ddirect.c56 sector_t blocknr; in nilfs_direct_lookup_contig() local
67 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_direct_lookup_contig()
70 ptr = blocknr; in nilfs_direct_lookup_contig()
80 ret = nilfs_dat_translate(dat, ptr2, &blocknr); in nilfs_direct_lookup_contig()
83 ptr2 = blocknr; in nilfs_direct_lookup_contig()
295 sector_t blocknr, in nilfs_direct_assign_v() argument
305 nilfs_dat_commit_start(dat, &req.bpr_req, blocknr); in nilfs_direct_assign_v()
315 sector_t blocknr, in nilfs_direct_assign_p() argument
318 nilfs_direct_set_ptr(direct, key, blocknr); in nilfs_direct_assign_p()
329 sector_t blocknr, in nilfs_direct_assign() argument
[all …]
Dbtnode.c47 nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr) in nilfs_btnode_create_block() argument
52 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_create_block()
67 (unsigned long long)blocknr, inode->i_ino); in nilfs_btnode_create_block()
71 bh->b_blocknr = blocknr; in nilfs_btnode_create_block()
86 int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr, in nilfs_btnode_submit_block() argument
95 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_submit_block()
106 pblocknr = blocknr; in nilfs_btnode_submit_block()
111 err = nilfs_dat_translate(nilfs->ns_dat, blocknr, in nilfs_btnode_submit_block()
139 bh->b_blocknr = blocknr; /* set back to the given block address */ in nilfs_btnode_submit_block()
Drecovery.c41 sector_t blocknr; /* block number */ member
247 sector_t blocknr; in nilfs_read_summary_info() local
251 blocknr = (*pbh)->b_blocknr; in nilfs_read_summary_info()
253 *pbh = __bread(nilfs->ns_bdev, blocknr + 1, in nilfs_read_summary_info()
283 sector_t blocknr = (*pbh)->b_blocknr; in nilfs_skip_summary_info() local
292 *pbh = __bread(nilfs->ns_bdev, blocknr + bcnt, in nilfs_skip_summary_info()
311 sector_t blocknr; in nilfs_scan_dsync_log() local
320 blocknr = start_blocknr + DIV_ROUND_UP(sumbytes, nilfs->ns_blocksize); in nilfs_scan_dsync_log()
355 rb->blocknr = blocknr++; in nilfs_scan_dsync_log()
363 blocknr += nnodeblk; /* always 0 for data sync logs */ in nilfs_scan_dsync_log()
[all …]
Dbmap.c65 sector_t blocknr; in nilfs_bmap_lookup_at_level() local
75 &blocknr); in nilfs_bmap_lookup_at_level()
77 *ptrp = blocknr; in nilfs_bmap_lookup_at_level()
384 unsigned long blocknr, in nilfs_bmap_assign() argument
390 ret = bmap->b_ops->bop_assign(bmap, bh, blocknr, binfo); in nilfs_bmap_assign()
Dbtnode.h36 __u64 blocknr);
Dbtree.c341 sector_t blocknr) in nilfs_btree_node_broken() argument
357 inode->i_ino, (unsigned long long)blocknr, level, in nilfs_btree_node_broken()
711 sector_t blocknr; in nilfs_btree_lookup_contig() local
726 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_btree_lookup_contig()
729 ptr = blocknr; in nilfs_btree_lookup_contig()
745 ret = nilfs_dat_translate(dat, ptr2, &blocknr); in nilfs_btree_lookup_contig()
748 ptr2 = blocknr; in nilfs_btree_lookup_contig()
2207 sector_t blocknr, in nilfs_btree_assign_p() argument
2220 path[level].bp_ctxt.newkey = blocknr; in nilfs_btree_assign_p()
2233 nilfs_btree_node_set_ptr(parent, path[level + 1].bp_index, blocknr, in nilfs_btree_assign_p()
[all …]
Dthe_nilfs.h317 nilfs_get_segnum_of_block(struct the_nilfs *nilfs, sector_t blocknr) in nilfs_get_segnum_of_block() argument
319 sector_t segnum = blocknr; in nilfs_get_segnum_of_block()
/linux-6.12.1/fs/fat/
Dfatent.c24 int *offset, sector_t *blocknr) in fat12_ent_blocknr() argument
30 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr()
34 int *offset, sector_t *blocknr) in fat_ent_blocknr() argument
40 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr()
70 int offset, sector_t blocknr) in fat12_ent_bread() argument
74 WARN_ON(blocknr < MSDOS_SB(sb)->fat_start); in fat12_ent_bread()
77 bhs[0] = sb_bread(sb, blocknr); in fat12_ent_bread()
85 blocknr++; in fat12_ent_bread()
86 bhs[1] = sb_bread(sb, blocknr); in fat12_ent_bread()
98 (llu)blocknr); in fat12_ent_bread()
[all …]
Dnfs.c68 sector_t blocknr; in __fat_nfs_get_inode() local
70 fat_get_blknr_offset(MSDOS_SB(sb), i_pos, &blocknr, &offset); in __fat_nfs_get_inode()
71 bh = sb_bread(sb, blocknr); in __fat_nfs_get_inode()
75 (llu)blocknr); in __fat_nfs_get_inode()
/linux-6.12.1/drivers/md/persistent-data/
Ddm-space-map-common.h34 __le64 blocknr; member
44 __le64 blocknr; member
113 __le64 blocknr; member
Ddm-space-map-common.c31 mi_le->blocknr = cpu_to_le64(dm_block_location(b)); in index_prepare_for_write()
44 if (dm_block_location(b) != le64_to_cpu(mi_le->blocknr)) { in index_check()
46 le64_to_cpu(mi_le->blocknr), dm_block_location(b)); in index_check()
81 disk_header->blocknr = cpu_to_le64(dm_block_location(b)); in dm_bitmap_prepare_for_write()
94 if (dm_block_location(b) != le64_to_cpu(disk_header->blocknr)) { in dm_bitmap_check()
96 le64_to_cpu(disk_header->blocknr), dm_block_location(b)); in dm_bitmap_check()
265 idx.blocknr = cpu_to_le64(dm_block_location(b)); in sm_ll_extend()
297 r = dm_tm_read_lock(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_lookup_bitmap()
365 r = dm_tm_read_lock(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_find_free_block()
438 r = dm_tm_shadow_block(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_insert()
[all …]
Ddm-btree-spine.c26 h->blocknr = cpu_to_le64(dm_block_location(b)); in node_prepare_for_write()
42 if (dm_block_location(b) != le64_to_cpu(h->blocknr)) { in node_check()
44 le64_to_cpu(h->blocknr), dm_block_location(b)); in node_check()
/linux-6.12.1/fs/affs/
Dfile.c124 u32 blocknr, tmp; in affs_alloc_extblock() local
126 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock()
127 if (!blocknr) in affs_alloc_extblock()
130 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock()
132 affs_free_block(sb, blocknr); in affs_alloc_extblock()
137 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock()
147 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock()
148 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock()
325 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local
326 if (!blocknr) in affs_get_block()
[all …]
/linux-6.12.1/fs/reiserfs/
Djournal.c432 if (cn->blocknr == bl && cn->sb == sb) in get_journal_hash_dev()
519 cn_orig = journal_hash(table, cn->sb, cn->blocknr); in insert_journal_hash()
525 journal_hash(table, cn->sb, cn->blocknr) = cn; in insert_journal_hash()
1172 b_blocknr_t blocknr = cn->blocknr; in find_newer_jl_for_cn() local
1176 if (cn->sb == sb && cn->blocknr == blocknr && cn->jlist) { in find_newer_jl_for_cn()
1208 if (cn->blocknr != 0) { in remove_all_from_journal_list()
1212 cn->blocknr, cn->bh ? 1 : 0, in remove_all_from_journal_list()
1217 jl, cn->blocknr, 1); in remove_all_from_journal_list()
1416 if (cn->blocknr == 0) { in flush_journal_list()
1494 BUG_ON(cn->blocknr != saved_bh->b_blocknr); in flush_journal_list()
[all …]
/linux-6.12.1/fs/cramfs/
Dinode.c189 unsigned i, blocknr, buffer; in cramfs_blkdev_read() local
195 blocknr = offset >> PAGE_SHIFT; in cramfs_blkdev_read()
204 if (blocknr < buffer_blocknr[i]) in cramfs_blkdev_read()
206 blk_offset = (blocknr - buffer_blocknr[i]) << PAGE_SHIFT; in cramfs_blkdev_read()
218 page_cache_sync_readahead(mapping, &ra, NULL, blocknr, BLKS_PER_BUF); in cramfs_blkdev_read()
223 if (blocknr + i < devsize) { in cramfs_blkdev_read()
224 page = read_mapping_page(mapping, blocknr + i, NULL); in cramfs_blkdev_read()
234 buffer_blocknr[buffer] = blocknr; in cramfs_blkdev_read()
/linux-6.12.1/fs/btrfs/
Ddefrag.c333 static bool close_blocks(u64 blocknr, u64 other, u32 blocksize) in close_blocks() argument
335 if (blocknr < other && other - (blocknr + blocksize) < SZ_32K) in close_blocks()
337 if (blocknr > other && blocknr - (other + blocksize) < SZ_32K) in close_blocks()
383 u64 blocknr; in btrfs_realloc_node() local
392 blocknr = btrfs_node_blockptr(parent, i); in btrfs_realloc_node()
394 last_block = blocknr; in btrfs_realloc_node()
398 close = close_blocks(blocknr, other, blocksize); in btrfs_realloc_node()
402 close = close_blocks(blocknr, other, blocksize); in btrfs_realloc_node()
405 last_block = blocknr; in btrfs_realloc_node()
/linux-6.12.1/fs/sysv/
Dsuper.c356 unsigned long blocknr; in sysv_fill_super() local
390 blocknr = bh->b_blocknr << 1; in sysv_fill_super()
393 bh1 = sb_bread(sb, blocknr); in sysv_fill_super()
394 bh = sb_bread(sb, blocknr + 1); in sysv_fill_super()
400 blocknr = bh->b_blocknr >> 1; in sysv_fill_super()
403 bh1 = bh = sb_bread(sb, blocknr); in sysv_fill_super()
/linux-6.12.1/fs/jffs2/
Dnodemgmt.c588 int blocknr; in jffs2_mark_node_obsolete() local
603 blocknr = ref->flash_offset / c->sector_size; in jffs2_mark_node_obsolete()
604 if (blocknr >= c->nr_blocks) { in jffs2_mark_node_obsolete()
609 jeb = &c->blocks[blocknr]; in jffs2_mark_node_obsolete()
629 freed_len, blocknr, in jffs2_mark_node_obsolete()
640 freed_len, blocknr, in jffs2_mark_node_obsolete()
/linux-6.12.1/fs/ext4/
Dext4_jbd2.c266 struct buffer_head *bh, ext4_fsblk_t blocknr) in __ext4_forget() argument
272 trace_ext4_forget(inode, is_metadata, blocknr); in __ext4_forget()
307 err = jbd2_journal_revoke(handle, blocknr, bh); in __ext4_forget()
Dballoc.c54 void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr, in ext4_get_group_no_and_offset() argument
60 blocknr = blocknr - le32_to_cpu(es->s_first_data_block); in ext4_get_group_no_and_offset()
61 offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)) >> in ext4_get_group_no_and_offset()
66 *blockgrpp = blocknr; in ext4_get_group_no_and_offset()

12