/fs/lockd/ |
D | svclock.c | 42 static void nlmsvc_release_block(struct nlm_block *block); 43 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long); 44 static void nlmsvc_remove_block(struct nlm_block *block); 89 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument 94 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked() 95 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked() 96 kref_get(&block->b_count); in nlmsvc_insert_block_locked() 98 list_del_init(&block->b_list); in nlmsvc_insert_block_locked() 115 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked() 116 block->b_when = when; in nlmsvc_insert_block_locked() [all …]
|
D | clntlock.c | 100 struct nlm_wait *block; in nlmclnt_prepare_block() local 102 block = kmalloc(sizeof(*block), GFP_KERNEL); in nlmclnt_prepare_block() 103 if (block != NULL) { in nlmclnt_prepare_block() 104 block->b_host = host; in nlmclnt_prepare_block() 105 block->b_lock = fl; in nlmclnt_prepare_block() 106 init_waitqueue_head(&block->b_wait); in nlmclnt_prepare_block() 107 block->b_status = nlm_lck_blocked; in nlmclnt_prepare_block() 110 list_add(&block->b_list, &nlm_blocked); in nlmclnt_prepare_block() 113 return block; in nlmclnt_prepare_block() 116 void nlmclnt_finish_block(struct nlm_wait *block) in nlmclnt_finish_block() argument [all …]
|
/fs/btrfs/ |
D | check-integrity.c | 239 struct btrfsic_block *block; member 305 struct btrfsic_block *block, 313 struct btrfsic_block *block, 324 struct btrfsic_block *block, 344 struct btrfsic_block *const block, 349 const struct btrfsic_block *block, 352 struct btrfsic_block *const block, 359 const struct btrfsic_block *block); 362 const struct btrfsic_block *block, 991 sf->block = first_block; in btrfsic_process_metablock() [all …]
|
/fs/minix/ |
D | itree_v2.c | 26 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument 32 if (block < 0) { in block_to_path() 34 block, bdevname(sb->s_bdev, b)); in block_to_path() 35 } else if ((u64)block * (u64)sb->s_blocksize >= in block_to_path() 40 block, bdevname(sb->s_bdev, b)); in block_to_path() 41 } else if (block < DIRCOUNT) { in block_to_path() 42 offsets[n++] = block; in block_to_path() 43 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path() 45 offsets[n++] = block; in block_to_path() 46 } else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) { in block_to_path() [all …]
|
D | itree_v1.c | 24 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument 29 if (block < 0) { in block_to_path() 31 block, bdevname(inode->i_sb->s_bdev, b)); in block_to_path() 32 } else if (block >= (minix_sb(inode->i_sb)->s_max_size/BLOCK_SIZE)) { in block_to_path() 36 block, bdevname(inode->i_sb->s_bdev, b)); in block_to_path() 37 } else if (block < 7) { in block_to_path() 38 offsets[n++] = block; in block_to_path() 39 } else if ((block -= 7) < 512) { in block_to_path() 41 offsets[n++] = block; in block_to_path() 43 block -= 512; in block_to_path() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_btree.c | 58 struct xfs_btree_block *block, /* btree long form block pointer */ in xfs_btree_check_lblock() argument 69 uuid_equal(&block->bb_u.l.bb_uuid, in xfs_btree_check_lblock() 71 block->bb_u.l.bb_blkno == cpu_to_be64( in xfs_btree_check_lblock() 76 be32_to_cpu(block->bb_magic) == xfs_btree_magic(cur) && in xfs_btree_check_lblock() 77 be16_to_cpu(block->bb_level) == level && in xfs_btree_check_lblock() 78 be16_to_cpu(block->bb_numrecs) <= in xfs_btree_check_lblock() 80 block->bb_u.l.bb_leftsib && in xfs_btree_check_lblock() 81 (block->bb_u.l.bb_leftsib == cpu_to_be64(NULLFSBLOCK) || in xfs_btree_check_lblock() 83 be64_to_cpu(block->bb_u.l.bb_leftsib))) && in xfs_btree_check_lblock() 84 block->bb_u.l.bb_rightsib && in xfs_btree_check_lblock() [all …]
|
D | xfs_bmap_btree.h | 42 #define XFS_BMBT_REC_ADDR(mp, block, index) \ argument 44 ((char *)(block) + \ 48 #define XFS_BMBT_KEY_ADDR(mp, block, index) \ argument 50 ((char *)(block) + \ 54 #define XFS_BMBT_PTR_ADDR(mp, block, index, maxrecs) \ argument 56 ((char *)(block) + \ 61 #define XFS_BMDR_REC_ADDR(block, index) \ argument 63 ((char *)(block) + \ 67 #define XFS_BMDR_KEY_ADDR(block, index) \ argument 69 ((char *)(block) + \ [all …]
|
D | xfs_alloc_btree.c | 132 struct xfs_btree_block *block, in xfs_allocbt_update_lastrec() argument 151 if (ptr != xfs_btree_get_numrecs(block)) in xfs_allocbt_update_lastrec() 162 numrecs = xfs_btree_get_numrecs(block); in xfs_allocbt_update_lastrec() 170 rrp = XFS_ALLOC_REC_ADDR(cur->bc_mp, block, numrecs); in xfs_allocbt_update_lastrec() 277 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_allocbt_verify() local 293 level = be16_to_cpu(block->bb_level); in xfs_allocbt_verify() 294 switch (block->bb_magic) { in xfs_allocbt_verify() 298 if (!uuid_equal(&block->bb_u.s.bb_uuid, &mp->m_sb.sb_meta_uuid)) in xfs_allocbt_verify() 300 if (block->bb_u.s.bb_blkno != cpu_to_be64(bp->b_bn)) in xfs_allocbt_verify() 303 be32_to_cpu(block->bb_u.s.bb_owner) != pag->pag_agno) in xfs_allocbt_verify() [all …]
|
/fs/sysv/ |
D | balloc.c | 48 unsigned block = fs32_to_cpu(sbi, nr); in sysv_free_block() local 58 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in sysv_free_block() 76 block += sbi->s_block_base; in sysv_free_block() 77 bh = sb_getblk(sb, block); in sysv_free_block() 102 unsigned int block; in sysv_new_block() local 116 block = fs32_to_cpu(sbi, nr); in sysv_new_block() 120 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in sysv_new_block() 122 block); in sysv_new_block() 129 block += sbi->s_block_base; in sysv_new_block() 130 if (!(bh = sb_bread(sb, block))) { in sysv_new_block() [all …]
|
/fs/logfs/ |
D | readwrite.c | 389 static void indirect_write_block(struct logfs_block *block) in indirect_write_block() argument 395 page = block->page; in indirect_write_block() 416 static void inode_write_block(struct logfs_block *block) in inode_write_block() argument 421 inode = block->inode; in inode_write_block() 462 struct logfs_block *block, write_alias_t *write_one_alias) in inode_write_alias() argument 464 struct inode *inode = block->inode; in inode_write_alias() 473 pos = fnb(block->alias_map, LOGFS_BLOCK_FACTOR, pos); in inode_write_alias() 504 struct logfs_block *block, write_alias_t *write_one_alias) in indirect_write_alias() argument 507 struct page *page = block->page; in indirect_write_alias() 514 pos = fnb(block->alias_map, LOGFS_BLOCK_FACTOR, pos); in indirect_write_alias() [all …]
|
D | segment.c | 185 static int btree_write_alias(struct super_block *sb, struct logfs_block *block, in btree_write_alias() argument 191 list_for_each_entry(item, &block->item_list, list) { in btree_write_alias() 192 err = write_alias_journal(sb, block->ino, block->bix, in btree_write_alias() 193 block->level, item->child_no, item->val); in btree_write_alias() 210 struct logfs_block *block; in logfs_load_object_aliases() local 235 block = alias_tree_lookup(sb, ino, bix, level); in logfs_load_object_aliases() 236 if (!block) { in logfs_load_object_aliases() 237 block = __alloc_block(sb, ino, bix, level); in logfs_load_object_aliases() 238 block->ops = &btree_block_ops; in logfs_load_object_aliases() 239 err = alias_tree_insert(sb, ino, bix, level, block); in logfs_load_object_aliases() [all …]
|
/fs/udf/ |
D | partition.c | 29 uint32_t udf_get_pblock(struct super_block *sb, uint32_t block, in udf_get_pblock() argument 36 block, partition, offset); in udf_get_pblock() 41 return map->s_partition_func(sb, block, partition, offset); in udf_get_pblock() 43 return map->s_partition_root + block + offset; in udf_get_pblock() 46 uint32_t udf_get_pblock_virt15(struct super_block *sb, uint32_t block, in udf_get_pblock_virt15() argument 61 if (block > vdata->s_num_entries) { in udf_get_pblock_virt15() 63 block, vdata->s_num_entries); in udf_get_pblock_virt15() 69 vdata->s_start_offset))[block]); in udf_get_pblock_virt15() 73 if (block >= index) { in udf_get_pblock_virt15() 74 block -= index; in udf_get_pblock_virt15() [all …]
|
D | balloc.c | 35 struct udf_bitmap *bitmap, unsigned int block, in read_block_bitmap() argument 45 bh = udf_tread(sb, udf_get_lb_pblock(sb, &loc, block)); in read_block_bitmap() 114 unsigned long block; in udf_bitmap_free_blocks() local 132 block = bloc->logicalBlockNum + offset + in udf_bitmap_free_blocks() 137 block_group = block >> (sb->s_blocksize_bits + 3); in udf_bitmap_free_blocks() 138 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks() 162 block += count; in udf_bitmap_free_blocks() 178 int bit, block, block_group, group_start; in udf_bitmap_prealloc_blocks() local 193 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_prealloc_blocks() 194 block_group = block >> (sb->s_blocksize_bits + 3); in udf_bitmap_prealloc_blocks() [all …]
|
/fs/ocfs2/ |
D | uptodate.c | 224 sector_t block) in ocfs2_search_cache_tree() argument 232 if (block < item->c_block) in ocfs2_search_cache_tree() 234 else if (block > item->c_block) in ocfs2_search_cache_tree() 304 sector_t block) in ocfs2_append_cache_array() argument 310 (unsigned long long)block, ci->ci_num_cached); in ocfs2_append_cache_array() 312 ci->ci_cache.ci_array[ci->ci_num_cached] = block; in ocfs2_append_cache_array() 322 sector_t block = new->c_block; in __ocfs2_insert_cache_tree() local 329 (unsigned long long)block, ci->ci_num_cached); in __ocfs2_insert_cache_tree() 336 if (block < tmp->c_block) in __ocfs2_insert_cache_tree() 338 else if (block > tmp->c_block) in __ocfs2_insert_cache_tree() [all …]
|
/fs/affs/ |
D | affs.h | 158 extern void affs_free_block(struct super_block *sb, u32 block); 221 affs_bread(struct super_block *sb, int block) in affs_bread() argument 223 pr_debug("%s: %d\n", __func__, block); in affs_bread() 224 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) in affs_bread() 225 return sb_bread(sb, block); in affs_bread() 229 affs_getblk(struct super_block *sb, int block) in affs_getblk() argument 231 pr_debug("%s: %d\n", __func__, block); in affs_getblk() 232 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) in affs_getblk() 233 return sb_getblk(sb, block); in affs_getblk() 237 affs_getzeroblk(struct super_block *sb, int block) in affs_getzeroblk() argument [all …]
|
/fs/befs/ |
D | io.c | 30 befs_blocknr_t block = 0; in befs_bread_iaddr() local 43 block = iaddr2blockno(sb, &iaddr); in befs_bread_iaddr() 45 befs_debug(sb, "%s: offset = %lu", __func__, (unsigned long)block); in befs_bread_iaddr() 47 bh = sb_bread(sb, block); in befs_bread_iaddr() 51 (unsigned long)block); in befs_bread_iaddr() 64 befs_bread(struct super_block *sb, befs_blocknr_t block) in befs_bread() argument 68 befs_debug(sb, "---> Enter %s %lu", __func__, (unsigned long)block); in befs_bread() 70 bh = sb_bread(sb, block); in befs_bread() 74 (unsigned long)block); in befs_bread()
|
/fs/ufs/ |
D | util.h | 470 #define ubh_isblockclear(ubh,begin,block) (!_ubh_isblockset_(uspi,ubh,begin,block)) argument 472 #define ubh_isblockset(ubh,begin,block) _ubh_isblockset_(uspi,ubh,begin,block) argument 474 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_isblockset_() argument 479 return (*ubh_get_addr (ubh, begin + block) == 0xff); in _ubh_isblockset_() 481 mask = 0x0f << ((block & 0x01) << 2); in _ubh_isblockset_() 482 return (*ubh_get_addr (ubh, begin + (block >> 1)) & mask) == mask; in _ubh_isblockset_() 484 mask = 0x03 << ((block & 0x03) << 1); in _ubh_isblockset_() 485 return (*ubh_get_addr (ubh, begin + (block >> 2)) & mask) == mask; in _ubh_isblockset_() 487 mask = 0x01 << (block & 0x07); in _ubh_isblockset_() 488 return (*ubh_get_addr (ubh, begin + (block >> 3)) & mask) == mask; in _ubh_isblockset_() [all …]
|
/fs/efs/ |
D | inode.c | 20 static sector_t _efs_bmap(struct address_space *mapping, sector_t block) in _efs_bmap() argument 22 return generic_block_bmap(mapping,block,efs_get_block); in _efs_bmap() 55 efs_block_t block, offset; in efs_iget() local 82 block = sb->fs_start + sb->first_block + in efs_iget() 90 bh = sb_bread(inode->i_sb, block); in efs_iget() 92 pr_warn("%s() failed at block %d\n", __func__, block); in efs_iget() 177 efs_extent_check(efs_extent *ptr, efs_block_t block, struct efs_sb_info *sb) { in efs_extent_check() argument 190 if ((block >= offset) && (block < offset+length)) { in efs_extent_check() 191 return(sb->fs_start + start + block - offset); in efs_extent_check() 197 efs_block_t efs_map_block(struct inode *inode, efs_block_t block) { in efs_map_block() argument [all …]
|
D | dir.c | 25 efs_block_t block; in efs_readdir() local 33 block = ctx->pos >> EFS_DIRBSIZE_BITS; in efs_readdir() 39 while (block < inode->i_blocks) { in efs_readdir() 44 bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); in efs_readdir() 48 __func__, block); in efs_readdir() 75 __func__, block, slot, dirblock->slots-1, in efs_readdir() 80 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir() 98 block++; in efs_readdir() 100 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
|
/fs/squashfs/ |
D | inode.c | 116 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode() local 127 err = squashfs_read_metadata(sb, sqshb_ino, &block, in squashfs_read_inode() 136 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode() 147 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode() 175 squashfs_i(inode)->block_list_start = block; in squashfs_read_inode() 181 offset, squashfs_i(inode)->start, block, offset); in squashfs_read_inode() 190 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode() 222 squashfs_i(inode)->block_list_start = block; in squashfs_read_inode() 228 offset, squashfs_i(inode)->start, block, offset); in squashfs_read_inode() 234 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode() [all …]
|
D | cache.c | 66 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument 75 if (cache->entry[i].block == block) { in squashfs_cache_get() 116 entry->block = block; in squashfs_cache_get() 123 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get() 174 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get() 178 block); in squashfs_cache_get() 267 entry->block = SQUASHFS_INVALID_BLK; in squashfs_cache_init() 335 u64 *block, int *offset, int length) in squashfs_read_metadata() argument 341 TRACE("Entered squashfs_read_metadata [%llx:%x]\n", *block, *offset); in squashfs_read_metadata() 347 entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0); in squashfs_read_metadata() [all …]
|
/fs/freevxfs/ |
D | vxfs_lookup.c | 109 u_long npages, page, nblocks, pblocks, block; in vxfs_find_entry() local 127 for (block = 0; block <= nblocks && block <= pblocks; block++) { in vxfs_find_entry() 132 baddr = kaddr + (block * bsize); in vxfs_find_entry() 236 u_long page, npages, block, pblocks, nblocks, offset; in vxfs_readdir() local 260 block = (u_long)(pos >> sbp->s_blocksize_bits) % pblocks; in vxfs_readdir() 262 for (; page < npages; page++, block = 0) { in vxfs_readdir() 271 for (; block <= nblocks && block <= pblocks; block++) { in vxfs_readdir() 276 baddr = kaddr + (block * bsize); in vxfs_readdir()
|
/fs/isofs/ |
D | isofs.h | 122 unsigned long block, 127 unsigned long block, in isofs_iget() argument 130 return __isofs_iget(sb, block, offset, 0); in isofs_iget() 134 unsigned long block, in isofs_iget_reloc() argument 137 return __isofs_iget(sb, block, offset, 1); in isofs_iget_reloc() 144 static inline unsigned long isofs_get_ino(unsigned long block, in isofs_get_ino() argument 148 return (block << (bufbits - 5)) | (offset >> 5); in isofs_get_ino() 184 unsigned long *block, in isofs_normalize_block_and_offset() argument 190 *block = (unsigned long)isonum_733(de->extent) in isofs_normalize_block_and_offset()
|
D | namei.c | 41 unsigned long block, f_pos, offset, block_saved, offset_saved; in isofs_find_entry() local 50 block = 0; in isofs_find_entry() 58 bh = isofs_bread(dir, block); in isofs_find_entry() 70 block = f_pos >> bufbits; in isofs_find_entry() 85 block++; in isofs_find_entry() 89 bh = isofs_bread(dir, block); in isofs_find_entry() 102 " in block %lu of inode %lu\n", block, in isofs_find_entry() 155 unsigned long uninitialized_var(block); in isofs_lookup() 165 &block, &offset, in isofs_lookup() 170 inode = found ? isofs_iget(dir->i_sb, block, offset) : NULL; in isofs_lookup()
|
/fs/hfs/ |
D | extent.c | 21 static void hfs_ext_build_key(hfs_btree_key *key, u32 cnid, u16 block, u8 type) in hfs_ext_build_key() argument 26 key->ext.FABN = cpu_to_be16(block); in hfs_ext_build_key() 82 return be16_to_cpu(ext->block) + off; in hfs_ext_find_block() 107 return be16_to_cpu(ext->block) + be16_to_cpu(ext->count); in hfs_ext_lastblock() 151 u32 cnid, u32 block, u8 type) in __hfs_ext_read_extent() argument 155 hfs_ext_build_key(fd->search_key, cnid, block, type); in __hfs_ext_read_extent() 169 static inline int __hfs_ext_cache_extent(struct hfs_find_data *fd, struct inode *inode, u32 block) in __hfs_ext_cache_extent() argument 180 block, HFS_IS_RSRC(inode) ? HFS_FK_RSRC : HFS_FK_DATA); in __hfs_ext_cache_extent() 191 static int hfs_ext_read_extent(struct inode *inode, u16 block) in hfs_ext_read_extent() argument 196 if (block >= HFS_I(inode)->cached_start && in hfs_ext_read_extent() [all …]
|