Home
last modified time | relevance | path

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

12

/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.c71 unsigned long long blocknr; in do_readahead() local
87 err = jbd2_journal_bmap(journal, next, &blocknr); in do_readahead()
95 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead()
133 unsigned long long blocknr; in jread() local
143 err = jbd2_journal_bmap(journal, offset, &blocknr); in jread()
151 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread()
578 unsigned long long blocknr; in do_one_pass() local
581 blocknr = read_tag_block(journal, in do_one_pass()
588 (journal, blocknr, in do_one_pass()
604 "log\n", blocknr); in do_one_pass()
[all …]
Djournal.c338 sector_t blocknr) in jbd2_journal_write_metadata_buffer() argument
450 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer()
772 unsigned long blocknr; in jbd2_journal_next_log_block() local
777 blocknr = journal->j_head; in jbd2_journal_next_log_block()
783 return jbd2_journal_bmap(journal, blocknr, retp); in jbd2_journal_next_log_block()
793 int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, in jbd2_journal_bmap() argument
800 ret = bmap(journal->j_inode, blocknr); in jbd2_journal_bmap()
806 __func__, blocknr, journal->j_devname); in jbd2_journal_bmap()
811 *retp = blocknr; /* +journal->j_blk_offset */ in jbd2_journal_bmap()
831 unsigned long long blocknr; in jbd2_journal_get_descriptor_buffer() local
[all …]
Dcheckpoint.c399 unsigned long blocknr; in jbd2_cleanup_journal_tail() local
404 if (!jbd2_journal_get_log_tail(journal, &first_tid, &blocknr)) in jbd2_cleanup_journal_tail()
406 J_ASSERT(blocknr != 0); in jbd2_cleanup_journal_tail()
419 return __jbd2_update_log_tail(journal, first_tid, blocknr); in jbd2_cleanup_journal_tail()
/fs/nilfs2/
Ddat.c127 sector_t blocknr) in nilfs_dat_commit_start() argument
136 entry->de_blocknr = cpu_to_le64(blocknr); in nilfs_dat_commit_start()
145 sector_t blocknr; in nilfs_dat_prepare_end() local
158 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_prepare_end()
161 if (blocknr == 0) { in nilfs_dat_prepare_end()
177 sector_t blocknr; in nilfs_dat_commit_end() local
189 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_commit_end()
192 if (blocknr == 0) in nilfs_dat_commit_end()
202 sector_t blocknr; in nilfs_dat_abort_end() local
209 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()
290 sector_t blocknr, in nilfs_direct_assign_v() argument
300 nilfs_dat_commit_start(dat, &req.bpr_req, blocknr); in nilfs_direct_assign_v()
310 sector_t blocknr, in nilfs_direct_assign_p() argument
313 nilfs_direct_set_ptr(direct, key, blocknr); in nilfs_direct_assign_p()
323 sector_t blocknr, in nilfs_direct_assign() argument
[all …]
Dbtnode.c30 nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr) in nilfs_btnode_create_block() argument
35 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_create_block()
46 bh->b_blocknr = blocknr; in nilfs_btnode_create_block()
55 int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr, in nilfs_btnode_submit_block() argument
64 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_submit_block()
75 pblocknr = blocknr; in nilfs_btnode_submit_block()
80 err = nilfs_dat_translate(nilfs->ns_dat, blocknr, in nilfs_btnode_submit_block()
109 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
76 &blocknr); in nilfs_bmap_lookup_at_level()
78 *ptrp = blocknr; in nilfs_bmap_lookup_at_level()
376 unsigned long blocknr, in nilfs_bmap_assign() argument
382 ret = bmap->b_ops->bop_assign(bmap, bh, blocknr, binfo); in nilfs_bmap_assign()
Dbtree.c340 sector_t blocknr) in nilfs_btree_node_broken() argument
356 inode->i_ino, (unsigned long long)blocknr, level, in nilfs_btree_node_broken()
699 sector_t blocknr; in nilfs_btree_lookup_contig() local
714 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_btree_lookup_contig()
717 ptr = blocknr; in nilfs_btree_lookup_contig()
733 ret = nilfs_dat_translate(dat, ptr2, &blocknr); in nilfs_btree_lookup_contig()
736 ptr2 = blocknr; in nilfs_btree_lookup_contig()
2176 sector_t blocknr, in nilfs_btree_assign_p() argument
2189 path[level].bp_ctxt.newkey = blocknr; in nilfs_btree_assign_p()
2202 nilfs_btree_node_set_ptr(parent, path[level + 1].bp_index, blocknr, in nilfs_btree_assign_p()
[all …]
Dthe_nilfs.h325 nilfs_get_segnum_of_block(struct the_nilfs *nilfs, sector_t blocknr) in nilfs_get_segnum_of_block() argument
327 sector_t segnum = blocknr; in nilfs_get_segnum_of_block()
Dbtnode.h35 __u64 blocknr);
Dsegbuf.c27 sector_t blocknr; member
409 wi->blocknr = segbuf->sb_pseg_start; in nilfs_segbuf_prepare_write()
421 wi->bio = nilfs_alloc_seg_bio(wi->nilfs, wi->blocknr + wi->end, in nilfs_segbuf_submit_bh()
Dsuper.c337 sector_t blocknr, newblocknr; in nilfs_move_2nd_super() local
346 blocknr = nilfs->ns_sbh[1]->b_blocknr; in nilfs_move_2nd_super()
349 blocknr = nilfs->ns_sbh[0]->b_blocknr; in nilfs_move_2nd_super()
352 blocknr = 0; in nilfs_move_2nd_super()
354 if (sb2i >= 0 && (u64)blocknr << nilfs->ns_blocksize_bits == sb2off) in nilfs_move_2nd_super()
/fs/fat/
Dfatent.c23 int *offset, sector_t *blocknr) in fat12_ent_blocknr() argument
29 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr()
33 int *offset, sector_t *blocknr) in fat_ent_blocknr() argument
39 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr()
69 int offset, sector_t blocknr) in fat12_ent_bread() argument
73 WARN_ON(blocknr < MSDOS_SB(sb)->fat_start); in fat12_ent_bread()
76 bhs[0] = sb_bread(sb, blocknr); in fat12_ent_bread()
84 blocknr++; in fat12_ent_bread()
85 bhs[1] = sb_bread(sb, blocknr); in fat12_ent_bread()
96 fat_msg(sb, KERN_ERR, "FAT read failed (blocknr %llu)", (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()
/fs/affs/
Dfile.c122 u32 blocknr, tmp; in affs_alloc_extblock() local
124 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock()
125 if (!blocknr) in affs_alloc_extblock()
128 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock()
130 affs_free_block(sb, blocknr); in affs_alloc_extblock()
135 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock()
145 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock()
146 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock()
323 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local
324 if (!blocknr) in affs_get_block()
[all …]
/fs/reiserfs/
Djournal.c435 if (cn->blocknr == bl && cn->sb == sb) in get_journal_hash_dev()
524 cn_orig = journal_hash(table, cn->sb, cn->blocknr); in insert_journal_hash()
530 journal_hash(table, cn->sb, cn->blocknr) = cn; in insert_journal_hash()
1174 b_blocknr_t blocknr = cn->blocknr; in find_newer_jl_for_cn() local
1178 if (cn->sb == sb && cn->blocknr == blocknr && cn->jlist) { in find_newer_jl_for_cn()
1210 if (cn->blocknr != 0) { in remove_all_from_journal_list()
1214 cn->blocknr, cn->bh ? 1 : 0, in remove_all_from_journal_list()
1219 jl, cn->blocknr, 1); in remove_all_from_journal_list()
1418 if (cn->blocknr == 0) { in flush_journal_list()
1496 BUG_ON(cn->blocknr != saved_bh->b_blocknr); in flush_journal_list()
[all …]
Dfix_node.c830 b_blocknr_t *blocknr, blocknrs[MAX_AMOUNT_NEEDED] = { 0, }; in get_empty_nodes() local
884 for (blocknr = blocknrs, counter = 0; in get_empty_nodes()
885 counter < amount_needed; blocknr++, counter++) { in get_empty_nodes()
887 RFALSE(!*blocknr, in get_empty_nodes()
890 new_bh = sb_getblk(sb, *blocknr); in get_empty_nodes()
2804 b_blocknr_t blocknr = tb->FEB[i]->b_blocknr; in unfix_nodes() local
2811 blocknr, 0); in unfix_nodes()
/fs/sysv/
Dsuper.c354 unsigned long blocknr; in sysv_fill_super() local
388 blocknr = bh->b_blocknr << 1; in sysv_fill_super()
391 bh1 = sb_bread(sb, blocknr); in sysv_fill_super()
392 bh = sb_bread(sb, blocknr + 1); in sysv_fill_super()
398 blocknr = bh->b_blocknr >> 1; in sysv_fill_super()
401 bh1 = bh = sb_bread(sb, blocknr); in sysv_fill_super()
/fs/cramfs/
Dinode.c187 unsigned i, blocknr, buffer; in cramfs_blkdev_read() local
193 blocknr = offset >> PAGE_SHIFT; in cramfs_blkdev_read()
202 if (blocknr < buffer_blocknr[i]) in cramfs_blkdev_read()
204 blk_offset = (blocknr - buffer_blocknr[i]) << PAGE_SHIFT; in cramfs_blkdev_read()
218 if (blocknr + i < devsize) { in cramfs_blkdev_read()
219 page = read_mapping_page(mapping, blocknr + i, NULL); in cramfs_blkdev_read()
242 buffer_blocknr[buffer] = blocknr; in cramfs_blkdev_read()
/fs/ext4/
Dext4_jbd2.c191 struct buffer_head *bh, ext4_fsblk_t blocknr) in __ext4_forget() argument
197 trace_ext4_forget(inode, is_metadata, blocknr); in __ext4_forget()
233 err = jbd2_journal_revoke(handle, blocknr, bh); in __ext4_forget()
Dballoc.c53 void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr, in ext4_get_group_no_and_offset() argument
59 blocknr = blocknr - le32_to_cpu(es->s_first_data_block); in ext4_get_group_no_and_offset()
60 offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)) >> in ext4_get_group_no_and_offset()
65 *blockgrpp = blocknr; in ext4_get_group_no_and_offset()
/fs/jffs2/
Dnodemgmt.c582 int blocknr; in jffs2_mark_node_obsolete() local
597 blocknr = ref->flash_offset / c->sector_size; in jffs2_mark_node_obsolete()
598 if (blocknr >= c->nr_blocks) { in jffs2_mark_node_obsolete()
603 jeb = &c->blocks[blocknr]; in jffs2_mark_node_obsolete()
623 freed_len, blocknr, in jffs2_mark_node_obsolete()
634 freed_len, blocknr, in jffs2_mark_node_obsolete()
/fs/btrfs/
Dctree.c1541 static int close_blocks(u64 blocknr, u64 other, u32 blocksize) in close_blocks() argument
1543 if (blocknr < other && other - (blocknr + blocksize) < 32768) in close_blocks()
1545 if (blocknr > other && blocknr - (other + blocksize) < 32768) in close_blocks()
1595 u64 blocknr; in btrfs_realloc_node() local
1633 blocknr = btrfs_node_blockptr(parent, i); in btrfs_realloc_node()
1637 last_block = blocknr; in btrfs_realloc_node()
1641 close = close_blocks(blocknr, other, blocksize); in btrfs_realloc_node()
1645 close = close_blocks(blocknr, other, blocksize); in btrfs_realloc_node()
1648 last_block = blocknr; in btrfs_realloc_node()
1652 cur = find_extent_buffer(fs_info, blocknr); in btrfs_realloc_node()
[all …]

12