/fs/jbd2/ |
D | revoke.c | 109 unsigned long long blocknr; member 139 static int insert_revoke_hash(journal_t *journal, unsigned long long blocknr, in insert_revoke_hash() argument 151 record->blocknr = blocknr; in insert_revoke_hash() 152 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash() 169 unsigned long long blocknr) in find_revoke_record() argument 174 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record() 179 if (record->blocknr == blocknr) { in find_revoke_record() 329 int jbd2_journal_revoke(handle_t *handle, unsigned long long blocknr, in jbd2_journal_revoke() argument 351 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke() 361 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke() [all …]
|
D | recovery.c | 74 unsigned long long blocknr; in do_readahead() local 90 err = jbd2_journal_bmap(journal, next, &blocknr); in do_readahead() 98 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead() 136 unsigned long long blocknr; in jread() local 146 err = jbd2_journal_bmap(journal, offset, &blocknr); in jread() 154 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread() 580 unsigned long long blocknr; in do_one_pass() local 583 blocknr = read_tag_block(journal, in do_one_pass() 590 (journal, blocknr, in do_one_pass() 606 blocknr); in do_one_pass() [all …]
|
D | journal.c | 351 sector_t blocknr) in jbd2_journal_write_metadata_buffer() argument 472 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer() 763 unsigned long blocknr; in jbd2_journal_next_log_block() local 768 blocknr = journal->j_head; in jbd2_journal_next_log_block() 774 return jbd2_journal_bmap(journal, blocknr, retp); in jbd2_journal_next_log_block() 784 int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, in jbd2_journal_bmap() argument 791 ret = bmap(journal->j_inode, blocknr); in jbd2_journal_bmap() 797 __func__, blocknr, journal->j_devname); in jbd2_journal_bmap() 802 *retp = blocknr; /* +journal->j_blk_offset */ in jbd2_journal_bmap() 820 unsigned long long blocknr; in jbd2_journal_get_descriptor_buffer() local [all …]
|
D | checkpoint.c | 390 unsigned long blocknr; in jbd2_cleanup_journal_tail() local 395 if (!jbd2_journal_get_log_tail(journal, &first_tid, &blocknr)) in jbd2_cleanup_journal_tail() 397 J_ASSERT(blocknr != 0); in jbd2_cleanup_journal_tail() 410 __jbd2_update_log_tail(journal, first_tid, blocknr); in jbd2_cleanup_journal_tail()
|
/fs/jbd/ |
D | revoke.c | 108 unsigned int blocknr; member 143 static int insert_revoke_hash(journal_t *journal, unsigned int blocknr, in insert_revoke_hash() argument 155 record->blocknr = blocknr; in insert_revoke_hash() 156 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash() 173 unsigned int blocknr) in find_revoke_record() argument 178 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record() 183 if (record->blocknr == blocknr) { in find_revoke_record() 339 int journal_revoke(handle_t *handle, unsigned int blocknr, in journal_revoke() argument 361 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke() 371 bh2 = __find_get_block(bdev, blocknr, journal->j_blocksize); in journal_revoke() [all …]
|
D | recovery.c | 73 unsigned int blocknr; in do_readahead() local 89 err = journal_bmap(journal, next, &blocknr); in do_readahead() 97 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead() 135 unsigned int blocknr; in jread() local 145 err = journal_bmap(journal, offset, &blocknr); in jread() 153 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread() 448 unsigned int blocknr; in do_one_pass() local 451 blocknr = be32_to_cpu(tag->t_blocknr); in do_one_pass() 457 (journal, blocknr, in do_one_pass() 467 blocknr, in do_one_pass() [all …]
|
D | checkpoint.c | 468 unsigned int blocknr, freed; in cleanup_journal_tail() local 486 blocknr = transaction->t_log_start; in cleanup_journal_tail() 489 blocknr = transaction->t_log_start; in cleanup_journal_tail() 492 blocknr = journal->j_head; in cleanup_journal_tail() 495 blocknr = journal->j_head; in cleanup_journal_tail() 498 J_ASSERT(blocknr != 0); in cleanup_journal_tail() 520 journal_update_sb_log_tail(journal, first_tid, blocknr, in cleanup_journal_tail() 527 freed = blocknr - journal->j_tail; in cleanup_journal_tail() 528 if (blocknr < journal->j_tail) in cleanup_journal_tail() 531 trace_jbd_cleanup_journal_tail(journal, first_tid, blocknr, freed); in cleanup_journal_tail() [all …]
|
D | journal.c | 287 unsigned int blocknr) in journal_write_metadata_buffer() argument 380 new_bh->b_blocknr = blocknr; in journal_write_metadata_buffer() 634 unsigned int blocknr; in journal_next_log_block() local 639 blocknr = journal->j_head; in journal_next_log_block() 645 return journal_bmap(journal, blocknr, retp); in journal_next_log_block() 655 int journal_bmap(journal_t *journal, unsigned int blocknr, in journal_bmap() argument 662 ret = bmap(journal->j_inode, blocknr); in journal_bmap() 671 blocknr, in journal_bmap() 677 *retp = blocknr; /* +journal->j_blk_offset */ in journal_bmap() 695 unsigned int blocknr; in journal_get_descriptor_buffer() local [all …]
|
/fs/nilfs2/ |
D | dat.c | 140 sector_t blocknr) in nilfs_dat_commit_start() argument 149 entry->de_blocknr = cpu_to_le64(blocknr); in nilfs_dat_commit_start() 159 sector_t blocknr; in nilfs_dat_prepare_end() local 173 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_prepare_end() 176 if (blocknr == 0) { in nilfs_dat_prepare_end() 192 sector_t blocknr; in nilfs_dat_commit_end() local 204 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_commit_end() 207 if (blocknr == 0) in nilfs_dat_commit_end() 217 sector_t blocknr; in nilfs_dat_abort_end() local 224 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_abort_end() [all …]
|
D | direct.c | 69 sector_t blocknr; in nilfs_direct_lookup_contig() local 80 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_direct_lookup_contig() 83 ptr = blocknr; in nilfs_direct_lookup_contig() 92 ret = nilfs_dat_translate(dat, ptr2, &blocknr); in nilfs_direct_lookup_contig() 95 ptr2 = blocknr; in nilfs_direct_lookup_contig() 287 sector_t blocknr, in nilfs_direct_assign_v() argument 297 nilfs_dat_commit_start(dat, &req.bpr_req, blocknr); in nilfs_direct_assign_v() 307 sector_t blocknr, in nilfs_direct_assign_p() argument 310 nilfs_direct_set_ptr(direct, key, blocknr); in nilfs_direct_assign_p() 320 sector_t blocknr, in nilfs_direct_assign() argument [all …]
|
D | btnode.c | 44 nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr) in nilfs_btnode_create_block() argument 49 bh = nilfs_grab_buffer(inode, btnc, blocknr, 1 << BH_NILFS_Node); in nilfs_btnode_create_block() 60 bh->b_blocknr = blocknr; in nilfs_btnode_create_block() 69 int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr, in nilfs_btnode_submit_block() argument 78 bh = nilfs_grab_buffer(inode, btnc, blocknr, 1 << BH_NILFS_Node); in nilfs_btnode_submit_block() 89 pblocknr = blocknr; in nilfs_btnode_submit_block() 94 err = nilfs_dat_translate(nilfs->ns_dat, blocknr, in nilfs_btnode_submit_block() 123 bh->b_blocknr = blocknr; /* set back to the given block address */ in nilfs_btnode_submit_block()
|
D | recovery.c | 52 sector_t blocknr; /* block number */ member 259 sector_t blocknr; in nilfs_read_summary_info() local 263 blocknr = (*pbh)->b_blocknr; in nilfs_read_summary_info() 265 *pbh = __bread(nilfs->ns_bdev, blocknr + 1, in nilfs_read_summary_info() 295 sector_t blocknr = (*pbh)->b_blocknr; in nilfs_skip_summary_info() local 304 *pbh = __bread(nilfs->ns_bdev, blocknr + bcnt, in nilfs_skip_summary_info() 323 sector_t blocknr; in nilfs_scan_dsync_log() local 332 blocknr = start_blocknr + DIV_ROUND_UP(sumbytes, nilfs->ns_blocksize); in nilfs_scan_dsync_log() 367 rb->blocknr = blocknr++; in nilfs_scan_dsync_log() 375 blocknr += nnodeblk; /* always 0 for data sync logs */ in nilfs_scan_dsync_log() [all …]
|
D | bmap.c | 78 sector_t blocknr; in nilfs_bmap_lookup_at_level() local 89 &blocknr); in nilfs_bmap_lookup_at_level() 91 *ptrp = blocknr; in nilfs_bmap_lookup_at_level() 363 unsigned long blocknr, in nilfs_bmap_assign() argument 369 ret = bmap->b_ops->bop_assign(bmap, bh, blocknr, binfo); in nilfs_bmap_assign()
|
D | btree.c | 349 size_t size, sector_t blocknr) in nilfs_btree_node_broken() argument 365 (unsigned long long)blocknr, level, flags, nchildren); in nilfs_btree_node_broken() 630 sector_t blocknr; in nilfs_btree_lookup_contig() local 645 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_btree_lookup_contig() 648 ptr = blocknr; in nilfs_btree_lookup_contig() 664 ret = nilfs_dat_translate(dat, ptr2, &blocknr); in nilfs_btree_lookup_contig() 667 ptr2 = blocknr; in nilfs_btree_lookup_contig() 2090 sector_t blocknr, in nilfs_btree_assign_p() argument 2103 path[level].bp_ctxt.newkey = blocknr; in nilfs_btree_assign_p() 2116 nilfs_btree_node_set_ptr(parent, path[level + 1].bp_index, blocknr, in nilfs_btree_assign_p() [all …]
|
D | the_nilfs.h | 317 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()
|
/fs/fat/ |
D | fatent.c | 25 int *offset, sector_t *blocknr) in fat12_ent_blocknr() argument 31 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr() 35 int *offset, sector_t *blocknr) in fat_ent_blocknr() argument 41 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr() 71 int offset, sector_t blocknr) in fat12_ent_bread() argument 75 WARN_ON(blocknr < MSDOS_SB(sb)->fat_start); in fat12_ent_bread() 78 bhs[0] = sb_bread(sb, blocknr); in fat12_ent_bread() 86 blocknr++; in fat12_ent_bread() 87 bhs[1] = sb_bread(sb, blocknr); in fat12_ent_bread() 98 fat_msg(sb, KERN_ERR, "FAT read failed (blocknr %llu)", (llu)blocknr); in fat12_ent_bread() [all …]
|
D | nfs.c | 77 sector_t blocknr; in __fat_nfs_get_inode() local 79 fat_get_blknr_offset(MSDOS_SB(sb), i_pos, &blocknr, &offset); in __fat_nfs_get_inode() 80 bh = sb_bread(sb, blocknr); in __fat_nfs_get_inode() 84 (llu)blocknr); in __fat_nfs_get_inode()
|
/fs/reiserfs/ |
D | journal.c | 434 if (cn->blocknr == bl && cn->sb == sb) in get_journal_hash_dev() 521 cn_orig = journal_hash(table, cn->sb, cn->blocknr); in insert_journal_hash() 527 journal_hash(table, cn->sb, cn->blocknr) = cn; in insert_journal_hash() 1151 b_blocknr_t blocknr = cn->blocknr; in find_newer_jl_for_cn() local 1155 if (cn->sb == sb && cn->blocknr == blocknr && cn->jlist) { in find_newer_jl_for_cn() 1166 b_blocknr_t blocknr = cn->blocknr; in newer_jl_done() local 1170 if (cn->sb == sb && cn->blocknr == blocknr && cn->jlist && in newer_jl_done() 1200 if (cn->blocknr != 0) { in remove_all_from_journal_list() 1204 cn->blocknr, cn->bh ? 1 : 0, in remove_all_from_journal_list() 1209 jl, cn->blocknr, 1); in remove_all_from_journal_list() [all …]
|
/fs/affs/ |
D | file.c | 146 u32 blocknr, tmp; in affs_alloc_extblock() local 148 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock() 149 if (!blocknr) in affs_alloc_extblock() 152 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock() 154 affs_free_block(sb, blocknr); in affs_alloc_extblock() 159 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock() 169 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock() 170 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock() 348 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local 349 if (!blocknr) in affs_get_block() [all …]
|
/fs/cramfs/ |
D | inode.c | 151 unsigned i, blocknr, buffer; in cramfs_read() local 157 blocknr = offset >> PAGE_CACHE_SHIFT; in cramfs_read() 166 if (blocknr < buffer_blocknr[i]) in cramfs_read() 168 blk_offset = (blocknr - buffer_blocknr[i]) << PAGE_CACHE_SHIFT; in cramfs_read() 181 if (blocknr + i < devsize) { in cramfs_read() 182 page = read_mapping_page_async(mapping, blocknr + i, in cramfs_read() 205 buffer_blocknr[buffer] = blocknr; in cramfs_read()
|
/fs/ext3/ |
D | ext3_jbd.c | 35 unsigned long blocknr, struct buffer_head *bh) in __ext3_journal_revoke() argument 37 int err = journal_revoke(handle, blocknr, bh); in __ext3_journal_revoke()
|
/fs/sysv/ |
D | super.c | 356 unsigned long blocknr; in sysv_fill_super() local 389 blocknr = bh->b_blocknr << 1; in sysv_fill_super() 392 bh1 = sb_bread(sb, blocknr); in sysv_fill_super() 393 bh = sb_bread(sb, blocknr + 1); in sysv_fill_super() 399 blocknr = bh->b_blocknr >> 1; in sysv_fill_super() 402 bh1 = bh = sb_bread(sb, blocknr); in sysv_fill_super()
|
/fs/ext4/ |
D | ext4_jbd2.c | 180 struct buffer_head *bh, ext4_fsblk_t blocknr) in __ext4_forget() argument 186 trace_ext4_forget(inode, is_metadata, blocknr); in __ext4_forget() 222 err = jbd2_journal_revoke(handle, blocknr, bh); in __ext4_forget()
|
D | balloc.c | 53 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/ |
D | nodemgmt.c | 576 int blocknr; in jffs2_mark_node_obsolete() local 591 blocknr = ref->flash_offset / c->sector_size; in jffs2_mark_node_obsolete() 592 if (blocknr >= c->nr_blocks) { in jffs2_mark_node_obsolete() 597 jeb = &c->blocks[blocknr]; in jffs2_mark_node_obsolete() 617 freed_len, blocknr, in jffs2_mark_node_obsolete() 628 freed_len, blocknr, in jffs2_mark_node_obsolete()
|