Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 244) sorted by relevance

12345678910

/fs/lockd/
Dsvclock.c44 static void nlmsvc_release_block(struct nlm_block *block);
45 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long);
46 static void nlmsvc_remove_block(struct nlm_block *block);
91 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument
96 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked()
97 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked()
98 kref_get(&block->b_count); in nlmsvc_insert_block_locked()
100 list_del_init(&block->b_list); in nlmsvc_insert_block_locked()
117 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked()
118 block->b_when = when; in nlmsvc_insert_block_locked()
[all …]
Dclntlock.c102 struct nlm_wait *block; in nlmclnt_prepare_block() local
104 block = kmalloc(sizeof(*block), GFP_KERNEL); in nlmclnt_prepare_block()
105 if (block != NULL) { in nlmclnt_prepare_block()
106 block->b_host = host; in nlmclnt_prepare_block()
107 block->b_lock = fl; in nlmclnt_prepare_block()
108 init_waitqueue_head(&block->b_wait); in nlmclnt_prepare_block()
109 block->b_status = nlm_lck_blocked; in nlmclnt_prepare_block()
112 list_add(&block->b_list, &nlm_blocked); in nlmclnt_prepare_block()
115 return block; in nlmclnt_prepare_block()
118 void nlmclnt_finish_block(struct nlm_wait *block) in nlmclnt_finish_block() argument
[all …]
/fs/afs/
Ddir_edit.c23 static int afs_find_contig_bits(union afs_xdr_dir_block *block, unsigned int nr_slots) in afs_find_contig_bits() argument
29 bitmap = (u64)block->hdr.bitmap[0] << 0 * 8; in afs_find_contig_bits()
30 bitmap |= (u64)block->hdr.bitmap[1] << 1 * 8; in afs_find_contig_bits()
31 bitmap |= (u64)block->hdr.bitmap[2] << 2 * 8; in afs_find_contig_bits()
32 bitmap |= (u64)block->hdr.bitmap[3] << 3 * 8; in afs_find_contig_bits()
33 bitmap |= (u64)block->hdr.bitmap[4] << 4 * 8; in afs_find_contig_bits()
34 bitmap |= (u64)block->hdr.bitmap[5] << 5 * 8; in afs_find_contig_bits()
35 bitmap |= (u64)block->hdr.bitmap[6] << 6 * 8; in afs_find_contig_bits()
36 bitmap |= (u64)block->hdr.bitmap[7] << 7 * 8; in afs_find_contig_bits()
68 static void afs_set_contig_bits(union afs_xdr_dir_block *block, in afs_set_contig_bits() argument
[all …]
/fs/btrfs/
Dcheck-integrity.c224 struct btrfsic_block *block; member
247 struct btrfsic_block *block,
255 struct btrfsic_block *block,
266 struct btrfsic_block *block,
277 struct btrfsic_block *const block,
281 const struct btrfsic_block *block,
284 struct btrfsic_block *const block,
291 const struct btrfsic_block *block);
294 const struct btrfsic_block *block,
898 sf->block = first_block; in btrfsic_process_metablock()
[all …]
/fs/xfs/libxfs/
Dxfs_btree.c126 struct xfs_btree_block *block, in __xfs_btree_check_lblock() argument
137 if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) in __xfs_btree_check_lblock()
139 if (block->bb_u.l.bb_blkno != in __xfs_btree_check_lblock()
142 if (block->bb_u.l.bb_pad != cpu_to_be32(0)) in __xfs_btree_check_lblock()
146 if (be32_to_cpu(block->bb_magic) != xfs_btree_magic(crc, btnum)) in __xfs_btree_check_lblock()
148 if (be16_to_cpu(block->bb_level) != level) in __xfs_btree_check_lblock()
150 if (be16_to_cpu(block->bb_numrecs) > in __xfs_btree_check_lblock()
158 block->bb_u.l.bb_leftsib); in __xfs_btree_check_lblock()
161 block->bb_u.l.bb_rightsib); in __xfs_btree_check_lblock()
169 struct xfs_btree_block *block, in xfs_btree_check_lblock() argument
[all …]
Dxfs_bmap_btree.h22 #define XFS_BMBT_REC_ADDR(mp, block, index) \ argument
24 ((char *)(block) + \
28 #define XFS_BMBT_KEY_ADDR(mp, block, index) \ argument
30 ((char *)(block) + \
34 #define XFS_BMBT_PTR_ADDR(mp, block, index, maxrecs) \ argument
36 ((char *)(block) + \
41 #define XFS_BMDR_REC_ADDR(block, index) \ argument
43 ((char *)(block) + \
47 #define XFS_BMDR_KEY_ADDR(block, index) \ argument
49 ((char *)(block) + \
[all …]
Dxfs_btree.h120 const struct xfs_btree_block *block,
275 struct xfs_btree_block *block, int level, struct xfs_buf *bp);
277 struct xfs_btree_block *block, int level, struct xfs_buf *bp);
285 struct xfs_btree_block *block, /* generic btree block pointer */
426 static inline int xfs_btree_get_numrecs(const struct xfs_btree_block *block) in xfs_btree_get_numrecs() argument
428 return be16_to_cpu(block->bb_numrecs); in xfs_btree_get_numrecs()
431 static inline void xfs_btree_set_numrecs(struct xfs_btree_block *block, in xfs_btree_set_numrecs() argument
434 block->bb_numrecs = cpu_to_be16(numrecs); in xfs_btree_set_numrecs()
437 static inline int xfs_btree_get_level(const struct xfs_btree_block *block) in xfs_btree_get_level() argument
439 return be16_to_cpu(block->bb_level); in xfs_btree_get_level()
[all …]
Dxfs_rmap_btree.h22 #define XFS_RMAP_REC_ADDR(block, index) \ argument
24 ((char *)(block) + XFS_RMAP_BLOCK_LEN + \
27 #define XFS_RMAP_KEY_ADDR(block, index) \ argument
29 ((char *)(block) + XFS_RMAP_BLOCK_LEN + \
32 #define XFS_RMAP_HIGH_KEY_ADDR(block, index) \ argument
34 ((char *)(block) + XFS_RMAP_BLOCK_LEN + \
38 #define XFS_RMAP_PTR_ADDR(block, index, maxrecs) \ argument
40 ((char *)(block) + XFS_RMAP_BLOCK_LEN + \
/fs/minix/
Ditree_v2.c27 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, sb->s_bdev); in block_to_path()
37 if ((u64)block * (u64)sb->s_blocksize >= sb->s_maxbytes) in block_to_path()
40 if (block < DIRCOUNT) { in block_to_path()
41 offsets[n++] = block; in block_to_path()
42 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path()
44 offsets[n++] = block; in block_to_path()
45 } else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) { in block_to_path()
47 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path()
[all …]
Ditree_v1.c25 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, inode->i_sb->s_bdev); in block_to_path()
34 if ((u64)block * BLOCK_SIZE >= inode->i_sb->s_maxbytes) in block_to_path()
37 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()
45 offsets[n++] = block>>9; in block_to_path()
[all …]
/fs/sysv/
Dballoc.c49 unsigned block = fs32_to_cpu(sbi, nr); in sysv_free_block() local
59 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in sysv_free_block()
77 block += sbi->s_block_base; in sysv_free_block()
78 bh = sb_getblk(sb, block); in sysv_free_block()
103 unsigned int block; in sysv_new_block() local
117 block = fs32_to_cpu(sbi, nr); in sysv_new_block()
121 if (block < sbi->s_firstdatazone || block >= sbi->s_nzones) { in sysv_new_block()
123 block); in sysv_new_block()
130 block += sbi->s_block_base; in sysv_new_block()
131 if (!(bh = sb_bread(sb, block))) { in sysv_new_block()
[all …]
/fs/udf/
Dpartition.c29 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 …]
Dballoc.c35 struct udf_bitmap *bitmap, unsigned int block, in read_block_bitmap() argument
46 bh = udf_tread(sb, udf_get_lb_pblock(sb, &loc, block)); in read_block_bitmap()
137 unsigned long block; in udf_bitmap_free_blocks() local
155 block = bloc->logicalBlockNum + offset + in udf_bitmap_free_blocks()
160 block_group = block >> (sb->s_blocksize_bits + 3); in udf_bitmap_free_blocks()
161 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks()
185 block += count; in udf_bitmap_free_blocks()
201 int bit, block, block_group; in udf_bitmap_prealloc_blocks() local
215 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_prealloc_blocks()
216 block_group = block >> (sb->s_blocksize_bits + 3); in udf_bitmap_prealloc_blocks()
[all …]
/fs/smbfs_common/
Dcifs_md4.c122 le32_to_cpu_array(ctx->block, ARRAY_SIZE(ctx->block)); in md4_transform_helper()
123 md4_transform(ctx->hash, ctx->block); in md4_transform_helper()
141 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in cifs_md4_update()
146 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in cifs_md4_update()
151 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in cifs_md4_update()
158 while (len >= sizeof(mctx->block)) { in cifs_md4_update()
159 memcpy(mctx->block, data, sizeof(mctx->block)); in cifs_md4_update()
161 data += sizeof(mctx->block); in cifs_md4_update()
162 len -= sizeof(mctx->block); in cifs_md4_update()
165 memcpy(mctx->block, data, len); in cifs_md4_update()
[all …]
/fs/ocfs2/
Duptodate.c208 sector_t block) in ocfs2_search_cache_tree() argument
216 if (block < item->c_block) in ocfs2_search_cache_tree()
218 else if (block > item->c_block) in ocfs2_search_cache_tree()
288 sector_t block) in ocfs2_append_cache_array() argument
294 (unsigned long long)block, ci->ci_num_cached); in ocfs2_append_cache_array()
296 ci->ci_cache.ci_array[ci->ci_num_cached] = block; in ocfs2_append_cache_array()
306 sector_t block = new->c_block; in __ocfs2_insert_cache_tree() local
313 (unsigned long long)block, ci->ci_num_cached); in __ocfs2_insert_cache_tree()
320 if (block < tmp->c_block) in __ocfs2_insert_cache_tree()
322 else if (block > tmp->c_block) in __ocfs2_insert_cache_tree()
[all …]
/fs/affs/
Daffs.h159 extern void affs_free_block(struct super_block *sb, u32 block);
223 static inline bool affs_validblock(struct super_block *sb, int block) in affs_validblock() argument
225 return(block >= AFFS_SB(sb)->s_reserved && in affs_validblock()
226 block < AFFS_SB(sb)->s_partition_size); in affs_validblock()
235 affs_bread(struct super_block *sb, int block) in affs_bread() argument
237 pr_debug("%s: %d\n", __func__, block); in affs_bread()
238 if (affs_validblock(sb, block)) in affs_bread()
239 return sb_bread(sb, block); in affs_bread()
243 affs_getblk(struct super_block *sb, int block) in affs_getblk() argument
245 pr_debug("%s: %d\n", __func__, block); in affs_getblk()
[all …]
/fs/ufs/
Dutil.h466 #define ubh_isblockclear(ubh,begin,block) (!_ubh_isblockset_(uspi,ubh,begin,block)) argument
468 #define ubh_isblockset(ubh,begin,block) _ubh_isblockset_(uspi,ubh,begin,block) argument
470 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_isblockset_() argument
475 return (*ubh_get_addr (ubh, begin + block) == 0xff); in _ubh_isblockset_()
477 mask = 0x0f << ((block & 0x01) << 2); in _ubh_isblockset_()
478 return (*ubh_get_addr (ubh, begin + (block >> 1)) & mask) == mask; in _ubh_isblockset_()
480 mask = 0x03 << ((block & 0x03) << 1); in _ubh_isblockset_()
481 return (*ubh_get_addr (ubh, begin + (block >> 2)) & mask) == mask; in _ubh_isblockset_()
483 mask = 0x01 << (block & 0x07); in _ubh_isblockset_()
484 return (*ubh_get_addr (ubh, begin + (block >> 3)) & mask) == mask; in _ubh_isblockset_()
[all …]
/fs/efs/
Dinode.c21 static sector_t _efs_bmap(struct address_space *mapping, sector_t block) in _efs_bmap() argument
23 return generic_block_bmap(mapping,block,efs_get_block); in _efs_bmap()
56 efs_block_t block, offset; in efs_iget() local
83 block = sb->fs_start + sb->first_block + in efs_iget()
91 bh = sb_bread(inode->i_sb, block); in efs_iget()
93 pr_warn("%s() failed at block %d\n", __func__, block); in efs_iget()
179 efs_extent_check(efs_extent *ptr, efs_block_t block, struct efs_sb_info *sb) { in efs_extent_check() argument
192 if ((block >= offset) && (block < offset+length)) { in efs_extent_check()
193 return(sb->fs_start + start + block - offset); in efs_extent_check()
199 efs_block_t efs_map_block(struct inode *inode, efs_block_t block) { in efs_map_block() argument
[all …]
Ddir.c26 efs_block_t block; in efs_readdir() local
34 block = ctx->pos >> EFS_DIRBSIZE_BITS; in efs_readdir()
40 while (block < inode->i_blocks) { in efs_readdir()
45 bh = sb_bread(inode->i_sb, efs_bmap(inode, block)); in efs_readdir()
49 __func__, block); in efs_readdir()
76 __func__, block, slot, dirblock->slots-1, in efs_readdir()
81 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
99 block++; in efs_readdir()
101 ctx->pos = (block << EFS_DIRBSIZE_BITS) | slot; in efs_readdir()
/fs/xfs/scrub/
Dbtree.c134 struct xfs_btree_block *block; in xchk_btree_rec() local
138 block = xfs_btree_get_block(cur, 0, &bp); in xchk_btree_rec()
139 rec = xfs_btree_rec_addr(cur, cur->bc_ptrs[0], block); in xchk_btree_rec()
181 struct xfs_btree_block *block; in xchk_btree_key() local
185 block = xfs_btree_get_block(cur, level, &bp); in xchk_btree_key()
186 key = xfs_btree_key_addr(cur, cur->bc_ptrs[level], block); in xchk_btree_key()
210 key = xfs_btree_high_key_addr(cur, cur->bc_ptrs[level], block); in xchk_btree_key()
311 struct xfs_btree_block *block) in xchk_btree_block_check_siblings() argument
319 xfs_btree_get_sibling(cur, block, &leftsib, XFS_BB_LEFTSIB); in xchk_btree_block_check_siblings()
320 xfs_btree_get_sibling(cur, block, &rightsib, XFS_BB_RIGHTSIB); in xchk_btree_block_check_siblings()
[all …]
/fs/squashfs/
Dinode.c104 u64 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode() local
115 err = squashfs_read_metadata(sb, sqshb_ino, &block, in squashfs_read_inode()
124 block = SQUASHFS_INODE_BLK(ino) + msblk->inode_table; in squashfs_read_inode()
135 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
163 squashfs_i(inode)->block_list_start = block; in squashfs_read_inode()
169 offset, squashfs_i(inode)->start, block, offset); in squashfs_read_inode()
178 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
210 squashfs_i(inode)->block_list_start = block; in squashfs_read_inode()
216 offset, squashfs_i(inode)->start, block, offset); in squashfs_read_inode()
222 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
[all …]
/fs/hfs/
Dextent.c21 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 …]
/fs/isofs/
Disofs.h125 unsigned long block,
130 unsigned long block, in isofs_iget() argument
133 return __isofs_iget(sb, block, offset, 0); in isofs_iget()
137 unsigned long block, in isofs_iget_reloc() argument
140 return __isofs_iget(sb, block, offset, 1); in isofs_iget_reloc()
147 static inline unsigned long isofs_get_ino(unsigned long block, in isofs_get_ino() argument
151 return (block << (bufbits - 5)) | (offset >> 5); in isofs_get_ino()
187 unsigned long *block, in isofs_normalize_block_and_offset() argument
193 *block = (unsigned long)isonum_733(de->extent) in isofs_normalize_block_and_offset()
Dnamei.c42 unsigned long block, f_pos, offset, block_saved, offset_saved; in isofs_find_entry() local
51 block = 0; in isofs_find_entry()
59 bh = isofs_bread(dir, block); in isofs_find_entry()
71 block = f_pos >> bufbits; in isofs_find_entry()
86 block++; in isofs_find_entry()
90 bh = isofs_bread(dir, block); in isofs_find_entry()
103 " in block %lu of inode %lu\n", block, in isofs_find_entry()
156 unsigned long block; in isofs_lookup() local
166 &block, &offset, in isofs_lookup()
171 inode = found ? isofs_iget(dir->i_sb, block, offset) : NULL; in isofs_lookup()
/fs/bfs/
Dfile.c64 static int bfs_get_block(struct inode *inode, sector_t block, in bfs_get_block() argument
73 phys = bi->i_sblock + block; in bfs_get_block()
77 create, (unsigned long)block, phys); in bfs_get_block()
89 create, (unsigned long)block, phys); in bfs_get_block()
108 create, (unsigned long)block, phys); in bfs_get_block()
119 if (phys + block >= info->si_blocks) { in bfs_get_block()
136 create, (unsigned long)block, phys); in bfs_get_block()
138 phys += block; in bfs_get_block()
185 static sector_t bfs_bmap(struct address_space *mapping, sector_t block) in bfs_bmap() argument
187 return generic_block_bmap(mapping, block, bfs_get_block); in bfs_bmap()

12345678910