Home
last modified time | relevance | path

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

12345678910

/fs/lockd/
Dsvclock.c43 static void nlmsvc_release_block(struct nlm_block *block);
44 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long);
45 static void nlmsvc_remove_block(struct nlm_block *block);
90 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument
95 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked()
96 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked()
97 kref_get(&block->b_count); in nlmsvc_insert_block_locked()
99 list_del_init(&block->b_list); in nlmsvc_insert_block_locked()
116 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked()
117 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.c228 struct btrfsic_block *block; member
293 struct btrfsic_block *block,
301 struct btrfsic_block *block,
312 struct btrfsic_block *block,
332 struct btrfsic_block *const block,
337 const struct btrfsic_block *block,
340 struct btrfsic_block *const block,
347 const struct btrfsic_block *block);
350 const struct btrfsic_block *block,
960 sf->block = first_block; in btrfsic_process_metablock()
[all …]
/fs/xfs/libxfs/
Dxfs_btree.c59 struct xfs_btree_block *block, in __xfs_btree_check_lblock() argument
68 if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) in __xfs_btree_check_lblock()
70 if (block->bb_u.l.bb_blkno != in __xfs_btree_check_lblock()
73 if (block->bb_u.l.bb_pad != cpu_to_be32(0)) in __xfs_btree_check_lblock()
77 if (be32_to_cpu(block->bb_magic) != xfs_btree_magic(crc, btnum)) in __xfs_btree_check_lblock()
79 if (be16_to_cpu(block->bb_level) != level) in __xfs_btree_check_lblock()
81 if (be16_to_cpu(block->bb_numrecs) > in __xfs_btree_check_lblock()
84 if (block->bb_u.l.bb_leftsib != cpu_to_be64(NULLFSBLOCK) && in __xfs_btree_check_lblock()
85 !xfs_btree_check_lptr(cur, be64_to_cpu(block->bb_u.l.bb_leftsib), in __xfs_btree_check_lblock()
88 if (block->bb_u.l.bb_rightsib != cpu_to_be64(NULLFSBLOCK) && in __xfs_btree_check_lblock()
[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_rmap_btree.h21 #define XFS_RMAP_REC_ADDR(block, index) \ argument
23 ((char *)(block) + XFS_RMAP_BLOCK_LEN + \
26 #define XFS_RMAP_KEY_ADDR(block, index) \ argument
28 ((char *)(block) + XFS_RMAP_BLOCK_LEN + \
31 #define XFS_RMAP_HIGH_KEY_ADDR(block, index) \ argument
33 ((char *)(block) + XFS_RMAP_BLOCK_LEN + \
37 #define XFS_RMAP_PTR_ADDR(block, index, maxrecs) \ argument
39 ((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()
35 } else if ((u64)block * (u64)sb->s_blocksize >= in block_to_path()
40 block, sb->s_bdev); 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 …]
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()
32 } else if (block >= (minix_sb(inode->i_sb)->s_max_size/BLOCK_SIZE)) { in block_to_path()
36 block, inode->i_sb->s_bdev); 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/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
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; in udf_bitmap_prealloc_blocks() local
192 block = first_block + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_prealloc_blocks()
193 block_group = block >> (sb->s_blocksize_bits + 3); in udf_bitmap_prealloc_blocks()
[all …]
Dmisc.c31 struct buffer_head *udf_tgetblk(struct super_block *sb, udf_pblk_t block) in udf_tgetblk() argument
34 return sb_getblk(sb, udf_fixed_to_variable(block)); in udf_tgetblk()
36 return sb_getblk(sb, block); in udf_tgetblk()
39 struct buffer_head *udf_tread(struct super_block *sb, udf_pblk_t block) in udf_tread() argument
42 return sb_bread(sb, udf_fixed_to_variable(block)); in udf_tread()
44 return sb_bread(sb, block); in udf_tread()
199 struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, in udf_read_tagged() argument
207 if (block == 0xFFFFFFFF) in udf_read_tagged()
210 bh = udf_tread(sb, block); in udf_read_tagged()
213 block, location); in udf_read_tagged()
[all …]
/fs/ocfs2/
Duptodate.c210 sector_t block) in ocfs2_search_cache_tree() argument
218 if (block < item->c_block) in ocfs2_search_cache_tree()
220 else if (block > item->c_block) in ocfs2_search_cache_tree()
290 sector_t block) in ocfs2_append_cache_array() argument
296 (unsigned long long)block, ci->ci_num_cached); in ocfs2_append_cache_array()
298 ci->ci_cache.ci_array[ci->ci_num_cached] = block; in ocfs2_append_cache_array()
308 sector_t block = new->c_block; in __ocfs2_insert_cache_tree() local
315 (unsigned long long)block, ci->ci_num_cached); in __ocfs2_insert_cache_tree()
322 if (block < tmp->c_block) in __ocfs2_insert_cache_tree()
324 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);
217 static inline bool affs_validblock(struct super_block *sb, int block) in affs_validblock() argument
219 return(block >= AFFS_SB(sb)->s_reserved && in affs_validblock()
220 block < AFFS_SB(sb)->s_partition_size); in affs_validblock()
229 affs_bread(struct super_block *sb, int block) in affs_bread() argument
231 pr_debug("%s: %d\n", __func__, block); in affs_bread()
232 if (affs_validblock(sb, block)) in affs_bread()
233 return sb_bread(sb, block); in affs_bread()
237 affs_getblk(struct super_block *sb, int block) in affs_getblk() argument
239 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.c133 struct xfs_btree_block *block; in xchk_btree_rec() local
137 block = xfs_btree_get_block(cur, 0, &bp); in xchk_btree_rec()
138 rec = xfs_btree_rec_addr(cur, cur->bc_ptrs[0], block); in xchk_btree_rec()
180 struct xfs_btree_block *block; in xchk_btree_key() local
184 block = xfs_btree_get_block(cur, level, &bp); in xchk_btree_key()
185 key = xfs_btree_key_addr(cur, cur->bc_ptrs[level], block); in xchk_btree_key()
209 key = xfs_btree_high_key_addr(cur, cur->bc_ptrs[level], block); in xchk_btree_key()
310 struct xfs_btree_block *block) in xchk_btree_block_check_siblings() argument
318 xfs_btree_get_sibling(cur, block, &leftsib, XFS_BB_LEFTSIB); in xchk_btree_block_check_siblings()
319 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 …]
Dcache.c53 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument
62 if (cache->entry[i].block == block) { in squashfs_cache_get()
103 entry->block = block; in squashfs_cache_get()
110 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get()
161 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get()
165 block); in squashfs_cache_get()
257 entry->block = SQUASHFS_INVALID_BLK; in squashfs_cache_init()
332 u64 *block, int *offset, int length) in squashfs_read_metadata() argument
338 TRACE("Entered squashfs_read_metadata [%llx:%x]\n", *block, *offset); in squashfs_read_metadata()
344 entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0); in squashfs_read_metadata()
[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.h126 unsigned long block,
131 unsigned long block, in isofs_iget() argument
134 return __isofs_iget(sb, block, offset, 0); in isofs_iget()
138 unsigned long block, in isofs_iget_reloc() argument
141 return __isofs_iget(sb, block, offset, 1); in isofs_iget_reloc()
148 static inline unsigned long isofs_get_ino(unsigned long block, in isofs_get_ino() argument
152 return (block << (bufbits - 5)) | (offset >> 5); in isofs_get_ino()
188 unsigned long *block, in isofs_normalize_block_and_offset() argument
194 *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()
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/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