/linux/fs/jbd2/ |
H 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 …]
|
H A D | recovery.c | 72 unsigned long long blocknr; in do_readahead() local 88 err = jbd2_journal_bmap(journal, next, &blocknr); 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() 698 blocknr, in do_one_pass() [all …]
|
H A D | journal.c | 329 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() 833 unsigned long blocknr; in jbd2_fc_get_buf() local 925 sector_t block = blocknr; in jbd2_journal_bmap() 965 unsigned long long blocknr; in jbd2_journal_get_descriptor_buffer() local 1677 sector_t blocknr; in jbd2_journal_init_inode() local 1680 blocknr = 0; in jbd2_journal_init_inode() 1681 err = bmap(inode, &blocknr); in jbd2_journal_init_inode() [all …]
|
H A D | checkpoint.c | 320 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/fs/nilfs2/ |
H A D | dat.c | 143 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 177 if (blocknr == 0) { in nilfs_dat_prepare_end() 202 sector_t blocknr; in nilfs_dat_commit_end() local 217 if (blocknr == 0) in nilfs_dat_commit_end() 227 sector_t blocknr; in nilfs_dat_abort_end() local 374 WARN_ON(blocknr == 0); in nilfs_dat_move() 409 sector_t blocknr; in nilfs_dat_translate() local 429 if (blocknr == 0) { in nilfs_dat_translate() [all …]
|
H 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() 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 …]
|
H A D | btnode.c | 47 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() 72 bh->b_blocknr = blocknr; in nilfs_btnode_create_block() 87 int nilfs_btnode_submit_block(struct address_space *btnc, __u64 blocknr, in nilfs_btnode_submit_block() argument 96 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_submit_block() 107 pblocknr = blocknr; in nilfs_btnode_submit_block() 112 err = nilfs_dat_translate(nilfs->ns_dat, blocknr, in nilfs_btnode_submit_block() 141 bh->b_blocknr = blocknr; /* set back to the given block address */ in nilfs_btnode_submit_block()
|
H 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 …]
|
H A D | bmap.c | 65 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()
|
H A D | btnode.h | 36 __u64 blocknr);
|
H A D | btree.c | 341 sector_t blocknr) in nilfs_btree_node_broken() argument 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() 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() 2249 sector_t blocknr, in nilfs_btree_assign_v() argument 2278 sector_t blocknr, in nilfs_btree_assign() argument 2317 sector_t blocknr, in nilfs_btree_assign_gc() argument [all …]
|
H A 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()
|
/linux/fs/fat/ |
H A D | fatent.c | 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() 103 int offset, sector_t blocknr) in fat_ent_bread() argument 112 (llu)blocknr); in fat_ent_bread() 355 sector_t blocknr; in fat_ent_read() local 440 sector_t blocknr; in fat_ent_read_block() local 652 sector_t blocknr, block_end; in fat_ra_init() local 693 sector_t blocknr, diff; in fat_ent_reada() local [all …]
|
H 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/drivers/md/persistent-data/ |
H A D | dm-space-map-common.h | 34 __le64 blocknr; member 44 __le64 blocknr; member 113 __le64 blocknr; member
|
H A D | dm-space-map-common.c | 31 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 …]
|
H A D | dm-btree-spine.c | 26 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/fs/affs/ |
H A D | file.c | 124 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() 326 if (!blocknr) in affs_get_block() 340 bh_result->b_blocknr = blocknr; in affs_get_block() [all …]
|
/linux/fs/reiserfs/ |
H A D | journal.c | 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() 1416 if (cn->blocknr == 0) { in flush_journal_list() 1646 if (cn->blocknr == 0) { in write_one_transaction() 1863 cur->blocknr = 0; in remove_journal_hash() 3486 b_blocknr_t blocknr = cn->blocknr; in can_dirty() local 3497 cur->blocknr == blocknr) { in can_dirty() 3510 cur->blocknr && cur->sb == sb && cur->blocknr == blocknr) { in can_dirty() 3785 blocknr); in journal_mark_freed() [all …]
|
/linux/fs/cramfs/ |
H A D | inode.c | 189 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/fs/btrfs/ |
H A D | defrag.c | 333 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/fs/sysv/ |
H A D | super.c | 356 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/fs/ext4/ |
H A D | ext4_jbd2.c | 266 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()
|
H A D | balloc.c | 54 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()
|
/linux/fs/jffs2/ |
H A D | nodemgmt.c | 588 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()
|