/fs/jbd2/ |
D | revoke.c | 108 unsigned long long blocknr; member 144 static int insert_revoke_hash(journal_t *journal, unsigned long long blocknr, in insert_revoke_hash() argument 156 record->blocknr = blocknr; in insert_revoke_hash() 157 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash() 174 unsigned long long blocknr) in find_revoke_record() argument 179 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record() 184 if (record->blocknr == blocknr) { in find_revoke_record() 334 int jbd2_journal_revoke(handle_t *handle, unsigned long long blocknr, in jbd2_journal_revoke() argument 356 bh = __find_get_block(bdev, blocknr, journal->j_blocksize); in jbd2_journal_revoke() 366 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() 502 unsigned long long blocknr; in do_one_pass() local 505 blocknr = read_tag_block(tag_bytes, in do_one_pass() 512 (journal, blocknr, in do_one_pass() 522 blocknr, in do_one_pass() [all …]
|
D | journal.c | 291 unsigned long long blocknr) in jbd2_journal_write_metadata_buffer() argument 417 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer() 670 unsigned long blocknr; in jbd2_journal_next_log_block() local 675 blocknr = journal->j_head; in jbd2_journal_next_log_block() 681 return jbd2_journal_bmap(journal, blocknr, retp); in jbd2_journal_next_log_block() 691 int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, in jbd2_journal_bmap() argument 698 ret = bmap(journal->j_inode, blocknr); in jbd2_journal_bmap() 704 __func__, blocknr, journal->j_devname); in jbd2_journal_bmap() 709 *retp = blocknr; /* +journal->j_blk_offset */ in jbd2_journal_bmap() 727 unsigned long long blocknr; in jbd2_journal_get_descriptor_buffer() local [all …]
|
D | checkpoint.c | 440 unsigned long blocknr; in jbd2_cleanup_journal_tail() local 445 if (!jbd2_journal_get_log_tail(journal, &first_tid, &blocknr)) in jbd2_cleanup_journal_tail() 447 J_ASSERT(blocknr != 0); in jbd2_cleanup_journal_tail() 460 __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() 445 unsigned int blocknr; in do_one_pass() local 448 blocknr = be32_to_cpu(tag->t_blocknr); in do_one_pass() 454 (journal, blocknr, in do_one_pass() 464 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() 528 freed = blocknr - journal->j_tail; in cleanup_journal_tail() 529 if (blocknr < journal->j_tail) in cleanup_journal_tail() 532 trace_jbd_cleanup_journal_tail(journal, first_tid, blocknr, freed); in cleanup_journal_tail() 536 journal->j_tail_sequence, first_tid, blocknr, freed); in cleanup_journal_tail() [all …]
|
D | journal.c | 287 unsigned int blocknr) in journal_write_metadata_buffer() argument 382 new_bh->b_blocknr = blocknr; in journal_write_metadata_buffer() 622 unsigned int blocknr; in journal_next_log_block() local 627 blocknr = journal->j_head; in journal_next_log_block() 633 return journal_bmap(journal, blocknr, retp); in journal_next_log_block() 643 int journal_bmap(journal_t *journal, unsigned int blocknr, in journal_bmap() argument 650 ret = bmap(journal->j_inode, blocknr); in journal_bmap() 659 blocknr, in journal_bmap() 665 *retp = blocknr; /* +journal->j_blk_offset */ in journal_bmap() 683 unsigned int blocknr; in journal_get_descriptor_buffer() local [all …]
|
/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 …]
|
/fs/nilfs2/ |
D | dat.c | 134 sector_t blocknr) in nilfs_dat_commit_start() argument 143 entry->de_blocknr = cpu_to_le64(blocknr); in nilfs_dat_commit_start() 153 sector_t blocknr; in nilfs_dat_prepare_end() local 167 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_prepare_end() 170 if (blocknr == 0) { in nilfs_dat_prepare_end() 186 sector_t blocknr; in nilfs_dat_commit_end() local 198 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_commit_end() 201 if (blocknr == 0) in nilfs_dat_commit_end() 211 sector_t blocknr; in nilfs_dat_abort_end() local 218 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 | btnode.h | 42 __u64 blocknr);
|
D | the_nilfs.h | 319 nilfs_get_segnum_of_block(struct the_nilfs *nilfs, sector_t blocknr) in nilfs_get_segnum_of_block() argument 321 sector_t segnum = blocknr; in nilfs_get_segnum_of_block()
|
/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 | 147 u32 blocknr, tmp; in affs_alloc_extblock() local 149 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock() 150 if (!blocknr) in affs_alloc_extblock() 153 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock() 155 affs_free_block(sb, blocknr); in affs_alloc_extblock() 160 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock() 170 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock() 171 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock() 349 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local 350 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/ext4/ |
D | ext4_jbd2.c | 37 struct buffer_head *bh, ext4_fsblk_t blocknr) in __ext4_forget() argument 43 trace_ext4_forget(inode, is_metadata, blocknr); in __ext4_forget() 79 err = jbd2_journal_revoke(handle, blocknr, bh); in __ext4_forget()
|
D | balloc.c | 36 void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr, in ext4_get_group_no_and_offset() argument 42 blocknr = blocknr - le32_to_cpu(es->s_first_data_block); in ext4_get_group_no_and_offset() 43 offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)) >> in ext4_get_group_no_and_offset() 48 *blockgrpp = blocknr; in ext4_get_group_no_and_offset()
|
/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 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/jffs2/ |
D | nodemgmt.c | 534 int blocknr; in jffs2_mark_node_obsolete() local 549 blocknr = ref->flash_offset / c->sector_size; in jffs2_mark_node_obsolete() 550 if (blocknr >= c->nr_blocks) { in jffs2_mark_node_obsolete() 555 jeb = &c->blocks[blocknr]; in jffs2_mark_node_obsolete() 575 freed_len, blocknr, in jffs2_mark_node_obsolete() 586 freed_len, blocknr, in jffs2_mark_node_obsolete()
|