/linux/fs/jbd2/ |
A D | revoke.c | 106 unsigned long long blocknr; member 150 record->blocknr = blocknr; in insert_revoke_hash() 161 unsigned long long blocknr) in find_revoke_record() argument 171 if (record->blocknr == blocknr) { in find_revoke_record() 402 err = insert_revoke_hash(journal, blocknr, in jbd2_journal_revoke() 499 record->blocknr, in jbd2_clear_buffer_revoked_flags() 625 cpu_to_be64(record->blocknr); in write_one_revoke_record() 628 cpu_to_be32(record->blocknr); in write_one_revoke_record() 684 unsigned long long blocknr, in jbd2_journal_set_revoke() argument 689 record = find_revoke_record(journal, blocknr); in jbd2_journal_set_revoke() [all …]
|
A D | recovery.c | 70 unsigned long long blocknr; in do_readahead() local 86 err = jbd2_journal_bmap(journal, next, &blocknr); in do_readahead() 132 unsigned long long blocknr; in jread() local 142 err = jbd2_journal_bmap(journal, offset, &blocknr); in jread() 150 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread() 631 unsigned long long blocknr; in do_one_pass() local 634 blocknr = read_tag_block(journal, in do_one_pass() 641 (journal, blocknr, in do_one_pass() 657 "log\n", blocknr); in do_one_pass() 665 blocknr, in do_one_pass() [all …]
|
A D | journal.c | 341 sector_t blocknr) in jbd2_journal_write_metadata_buffer() argument 453 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer() 856 unsigned long blocknr; in jbd2_journal_next_log_block() local 861 blocknr = journal->j_head; in jbd2_journal_next_log_block() 874 unsigned long blocknr; in jbd2_fc_get_buf() local 971 block = blocknr; in jbd2_journal_bmap() 1005 unsigned long long blocknr; in jbd2_journal_get_descriptor_buffer() local 1480 sector_t blocknr; in jbd2_journal_init_inode() local 1484 blocknr = 0; in jbd2_journal_init_inode() 1485 err = bmap(inode, &blocknr); in jbd2_journal_init_inode() [all …]
|
A D | checkpoint.c | 385 unsigned long blocknr; in jbd2_cleanup_journal_tail() local 390 if (!jbd2_journal_get_log_tail(journal, &first_tid, &blocknr)) in jbd2_cleanup_journal_tail() 392 J_ASSERT(blocknr != 0); in jbd2_cleanup_journal_tail() 405 return __jbd2_update_log_tail(journal, first_tid, blocknr); in jbd2_cleanup_journal_tail()
|
/linux/fs/nilfs2/ |
A D | dat.c | 127 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 161 if (blocknr == 0) { in nilfs_dat_prepare_end() 177 sector_t blocknr; in nilfs_dat_commit_end() local 192 if (blocknr == 0) in nilfs_dat_commit_end() 202 sector_t blocknr; in nilfs_dat_abort_end() local 352 WARN_ON(blocknr == 0); in nilfs_dat_move() 387 sector_t blocknr; in nilfs_dat_translate() local 407 if (blocknr == 0) { in nilfs_dat_translate() [all …]
|
A D | direct.c | 56 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 …]
|
A D | btnode.c | 30 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()
|
A D | recovery.c | 41 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 …]
|
A D | bmap.c | 65 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()
|
A D | btree.c | 340 sector_t blocknr) in nilfs_btree_node_broken() argument 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() 736 ptr2 = blocknr; in nilfs_btree_lookup_contig() 2175 sector_t blocknr, in nilfs_btree_assign_p() argument 2188 path[level].bp_ctxt.newkey = blocknr; in nilfs_btree_assign_p() 2216 sector_t blocknr, in nilfs_btree_assign_v() argument 2245 sector_t blocknr, in nilfs_btree_assign() argument 2284 sector_t blocknr, in nilfs_btree_assign_gc() argument [all …]
|
A D | btnode.h | 35 __u64 blocknr);
|
A D | the_nilfs.h | 325 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()
|
A D | segbuf.c | 27 sector_t blocknr; member 405 wi->blocknr = segbuf->sb_pseg_start; in nilfs_segbuf_prepare_write() 417 wi->bio = nilfs_alloc_seg_bio(wi->nilfs, wi->blocknr + wi->end, in nilfs_segbuf_submit_bh()
|
/linux/fs/fat/ |
A D | fatent.c | 70 int offset, sector_t blocknr) in fat12_ent_bread() argument 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() 102 int offset, sector_t blocknr) in fat_ent_bread() argument 111 (llu)blocknr); in fat_ent_bread() 354 sector_t blocknr; in fat_ent_read() local 439 sector_t blocknr; in fat_ent_read_block() local 651 sector_t blocknr, block_end; in fat_ra_init() local 692 sector_t blocknr, diff; in fat_ent_reada() local [all …]
|
A D | nfs.c | 68 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/fs/affs/ |
A D | file.c | 123 u32 blocknr, tmp; in affs_alloc_extblock() local 125 blocknr = affs_alloc_block(inode, bh->b_blocknr); in affs_alloc_extblock() 126 if (!blocknr) in affs_alloc_extblock() 129 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock() 131 affs_free_block(sb, blocknr); in affs_alloc_extblock() 136 AFFS_HEAD(new_bh)->key = cpu_to_be32(blocknr); in affs_alloc_extblock() 146 AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr); in affs_alloc_extblock() 147 affs_adjust_checksum(bh, blocknr - tmp); in affs_alloc_extblock() 325 if (!blocknr) in affs_get_block() 339 bh_result->b_blocknr = blocknr; in affs_get_block() [all …]
|
/linux/fs/reiserfs/ |
A D | journal.c | 1170 b_blocknr_t blocknr = cn->blocknr; in find_newer_jl_for_cn() local 1174 if (cn->sb == sb && cn->blocknr == blocknr && cn->jlist) { in find_newer_jl_for_cn() 1206 if (cn->blocknr != 0) { in remove_all_from_journal_list() 1414 if (cn->blocknr == 0) { in flush_journal_list() 1644 if (cn->blocknr == 0) { in write_one_transaction() 1861 cur->blocknr = 0; in remove_journal_hash() 3484 b_blocknr_t blocknr = cn->blocknr; in can_dirty() local 3495 cur->blocknr == blocknr) { in can_dirty() 3508 cur->blocknr && cur->sb == sb && cur->blocknr == blocknr) { in can_dirty() 3783 blocknr); in journal_mark_freed() [all …]
|
/linux/drivers/md/persistent-data/ |
A D | dm-space-map-common.c | 30 mi_le->blocknr = cpu_to_le64(dm_block_location(b)); in index_prepare_for_write() 43 if (dm_block_location(b) != le64_to_cpu(mi_le->blocknr)) { in index_check() 45 le64_to_cpu(mi_le->blocknr), dm_block_location(b)); in index_check() 80 disk_header->blocknr = cpu_to_le64(dm_block_location(b)); in dm_bitmap_prepare_for_write() 93 if (dm_block_location(b) != le64_to_cpu(disk_header->blocknr)) { in dm_bitmap_check() 95 le64_to_cpu(disk_header->blocknr), dm_block_location(b)); in dm_bitmap_check() 264 idx.blocknr = cpu_to_le64(dm_block_location(b)); in sm_ll_extend() 291 r = dm_tm_read_lock(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_lookup_bitmap() 359 r = dm_tm_read_lock(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_find_free_block() 432 r = dm_tm_shadow_block(ll->tm, le64_to_cpu(ie_disk.blocknr), in sm_ll_insert() [all …]
|
A D | dm-space-map-common.h | 33 __le64 blocknr; member 43 __le64 blocknr; member 112 __le64 blocknr; member
|
A D | dm-btree-spine.c | 29 h->blocknr = cpu_to_le64(dm_block_location(b)); in node_prepare_for_write() 45 if (dm_block_location(b) != le64_to_cpu(h->blocknr)) { in node_check() 47 le64_to_cpu(h->blocknr), dm_block_location(b)); in node_check()
|
/linux/fs/sysv/ |
A D | super.c | 354 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()
|
/linux/fs/cramfs/ |
A D | inode.c | 187 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()
|
/linux/fs/jffs2/ |
A D | nodemgmt.c | 582 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()
|
/linux/fs/ext4/ |
A D | ext4_jbd2.c | 259 struct buffer_head *bh, ext4_fsblk_t blocknr) in __ext4_forget() argument 265 trace_ext4_forget(inode, is_metadata, blocknr); in __ext4_forget() 301 err = jbd2_journal_revoke(handle, blocknr, bh); in __ext4_forget()
|
A 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()
|