/linux/fs/jbd2/ |
H A D | revoke.c | 106 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 …]
|
H A D | journal.c | 328 sector_t blocknr) in jbd2_journal_write_metadata_buffer() argument 414 new_bh->b_blocknr = blocknr; in jbd2_journal_write_metadata_buffer() 809 unsigned long blocknr; in jbd2_journal_next_log_block() local 814 blocknr = journal->j_head; in jbd2_journal_next_log_block() 820 return jbd2_journal_bmap(journal, blocknr, retp); in jbd2_journal_next_log_block() 827 unsigned long blocknr; in jbd2_fc_get_buf() local 838 blocknr = journal->j_fc_first + fc_off; in jbd2_fc_get_buf() 840 ret = jbd2_journal_bmap(journal, blocknr, &pblock); in jbd2_fc_get_buf() 914 int jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, in jbd2_journal_bmap() argument 919 sector_t block = blocknr; in jbd2_journal_bmap() [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 174 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_prepare_end() 177 if (blocknr == 0) { in nilfs_dat_prepare_end() 202 sector_t blocknr; in nilfs_dat_commit_end() local 214 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_commit_end() 217 if (blocknr == 0) in nilfs_dat_commit_end() 227 sector_t blocknr; in nilfs_dat_abort_end() local 234 blocknr = le64_to_cpu(entry->de_blocknr); in nilfs_dat_abort_end() [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 | 48 nilfs_btnode_create_block(struct address_space *btnc, __u64 blocknr) in nilfs_btnode_create_block() argument 53 bh = nilfs_grab_buffer(inode, btnc, blocknr, BIT(BH_NILFS_Node)); in nilfs_btnode_create_block() 68 (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() 140 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 | btree.c | 341 sector_t blocknr) in nilfs_btree_node_broken() argument 357 inode->i_ino, (unsigned long long)blocknr, level, in nilfs_btree_node_broken() 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() 745 ret = nilfs_dat_translate(dat, ptr2, &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() 2233 nilfs_btree_node_set_ptr(parent, path[level + 1].bp_index, blocknr, in nilfs_btree_assign_p() [all …]
|
H A D | btnode.h | 36 __u64 blocknr);
|
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()
|
H A D | segbuf.c | 27 sector_t blocknr; member 373 wi->blocknr = segbuf->sb_pseg_start; in nilfs_segbuf_prepare_write() 387 wi->bio->bi_iter.bi_sector = (wi->blocknr + wi->end) << in nilfs_segbuf_submit_bh()
|
H A D | super.c | 348 sector_t blocknr, newblocknr; in nilfs_move_2nd_super() local 357 blocknr = nilfs->ns_sbh[1]->b_blocknr; in nilfs_move_2nd_super() 360 blocknr = nilfs->ns_sbh[0]->b_blocknr; in nilfs_move_2nd_super() 363 blocknr = 0; in nilfs_move_2nd_super() 365 if (sb2i >= 0 && (u64)blocknr << nilfs->ns_blocksize_bits == sb2off) in nilfs_move_2nd_super()
|
/linux/fs/fat/ |
H A D | fatent.c | 24 int *offset, sector_t *blocknr) in fat12_ent_blocknr() argument 30 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr() 34 int *offset, sector_t *blocknr) in fat_ent_blocknr() argument 40 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr() 70 int offset, sector_t blocknr) in fat12_ent_bread() argument 74 WARN_ON(blocknr < MSDOS_SB(sb)->fat_start); in fat12_ent_bread() 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() [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-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()
|
H A D | dm-btree-internal.h | 32 __le64 blocknr; /* Block this node is supposed to live in. */ member
|
H A D | dm-array.c | 29 __le64 blocknr; /* Block this node is supposed to live in. */ member 47 bh_le->blocknr = cpu_to_le64(dm_block_location(b)); in array_block_prepare_for_write() 60 if (dm_block_location(b) != le64_to_cpu(bh_le->blocknr)) { in array_block_check() 62 (unsigned long long) le64_to_cpu(bh_le->blocknr), in array_block_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() 325 u32 blocknr = affs_alloc_block(inode, ext_bh->b_blocknr); in affs_get_block() local 326 if (!blocknr) in affs_get_block() [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/jffs2/ |
H A D | nodemgmt.c | 589 int blocknr; in jffs2_mark_node_obsolete() local 604 blocknr = ref->flash_offset / c->sector_size; in jffs2_mark_node_obsolete() 605 if (blocknr >= c->nr_blocks) { in jffs2_mark_node_obsolete() 610 jeb = &c->blocks[blocknr]; in jffs2_mark_node_obsolete() 630 freed_len, blocknr, in jffs2_mark_node_obsolete() 641 freed_len, blocknr, in jffs2_mark_node_obsolete()
|
/linux/drivers/md/ |
H A D | dm-clone-metadata.c | 41 __le64 blocknr; member 173 sb->blocknr = cpu_to_le64(dm_block_location(b)); in sb_prepare_for_write() 188 if (dm_block_location(b) != le64_to_cpu(sb->blocknr)) { in sb_check() 190 le64_to_cpu(sb->blocknr), in sb_check()
|