Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 77) sorted by relevance

1234

/fs/
Dmpage.c180 sector_t blocks[MAX_BUF_PER_PAGE]; in do_mpage_readpage() local
215 blocks[page_block] = map_bh->b_blocknr + map_offset + in do_mpage_readpage()
262 if (page_block && blocks[page_block-1] != map_bh->b_blocknr-1) in do_mpage_readpage()
271 blocks[page_block] = map_bh->b_blocknr+relative_block; in do_mpage_readpage()
292 if (bio && (*last_block_in_bio != blocks[0] - 1)) in do_mpage_readpage()
297 bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
316 *last_block_in_bio = blocks[blocks_per_page - 1]; in do_mpage_readpage()
454 sector_t blocks[MAX_BUF_PER_PAGE]; in __mpage_writepage() local
492 if (bh->b_blocknr != blocks[page_block-1] + 1) in __mpage_writepage()
495 blocks[page_block++] = bh->b_blocknr; in __mpage_writepage()
[all …]
Dquota_v1.c26 static inline qsize_t v1_qbtos(qsize_t blocks) in v1_qbtos() argument
28 return blocks << QUOTABLOCK_BITS; in v1_qbtos()
121 ulong blocks; in v1_check_quota_file() local
131 blocks = isize >> BLOCK_SIZE_BITS; in v1_check_quota_file()
133 if ((blocks % sizeof(struct v1_disk_dqblk) * BLOCK_SIZE + off) % sizeof(struct v1_disk_dqblk)) in v1_check_quota_file()
/fs/jffs2/
Dbuild.c338 c->blocks = vmalloc(size); in jffs2_do_mount_fs()
341 c->blocks = kmalloc(size, GFP_KERNEL); in jffs2_do_mount_fs()
342 if (!c->blocks) in jffs2_do_mount_fs()
345 memset(c->blocks, 0, size); in jffs2_do_mount_fs()
347 INIT_LIST_HEAD(&c->blocks[i].list); in jffs2_do_mount_fs()
348 c->blocks[i].offset = i * c->sector_size; in jffs2_do_mount_fs()
349 c->blocks[i].free_size = c->sector_size; in jffs2_do_mount_fs()
386 vfree(c->blocks); in jffs2_do_mount_fs()
389 kfree(c->blocks); in jffs2_do_mount_fs()
Dfs.c491 size_t blocks; in jffs2_do_fill_super() local
508 blocks = c->flash_size / c->sector_size; in jffs2_do_fill_super()
513 if ((c->sector_size * blocks) != c->flash_size) { in jffs2_do_fill_super()
514 c->flash_size = c->sector_size * blocks; in jffs2_do_fill_super()
571 vfree(c->blocks); in jffs2_do_fill_super()
573 kfree(c->blocks); in jffs2_do_fill_super()
DTODO23 - Split writes so they go to two separate blocks rather than just c->nextblock.
26 are likely to become dirty, and end up with blocks which are each far
Dsuper.c186 vfree(c->blocks); in jffs2_put_super()
188 kfree(c->blocks); in jffs2_put_super()
/fs/sysv/
Dballoc.c46 sysv_zone_t *blocks = sbi->s_bcache; in sysv_free_block() local
85 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t)); in sysv_free_block()
164 sysv_zone_t *blocks; in sysv_count_free_blocks() local
185 blocks = sbi->s_bcache; in sysv_count_free_blocks()
191 while (n && (zone = blocks[--n]) != 0) in sysv_count_free_blocks()
207 blocks = get_chunk(sb, bh); in sysv_count_free_blocks()
Ditree.c432 unsigned blocks, res, direct = DIRECT, i = DEPTH; in sysv_nblocks() local
433 blocks = (size + s->s_blocksize - 1) >> s->s_blocksize_bits; in sysv_nblocks()
434 res = blocks; in sysv_nblocks()
435 while (--i && blocks > direct) { in sysv_nblocks()
436 blocks = ((blocks - direct - 1) >> ptrs_bits) + 1; in sysv_nblocks()
437 res += blocks; in sysv_nblocks()
440 return blocks; in sysv_nblocks()
447 stat->blocks = (s->s_blocksize / 512) * sysv_nblocks(s, stat->size); in sysv_getattr()
/fs/partitions/
Dsgi.c35 unsigned int start, blocks; in sgi_partition() local
70 blocks = be32_to_cpu(p->num_blocks); in sgi_partition()
72 if (blocks) { in sgi_partition()
73 put_partition(state, slot, start, blocks); in sgi_partition()
/fs/gfs2/
Dtrans.c28 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() argument
35 BUG_ON(blocks == 0 && revokes == 0); in gfs2_trans_begin()
42 tr->tr_blocks = blocks; in gfs2_trans_begin()
45 if (blocks) in gfs2_trans_begin()
46 tr->tr_reserved += 6 + blocks; in gfs2_trans_begin()
Dglops.c41 unsigned int blocks; in gfs2_ail_empty_gl() local
47 blocks = atomic_read(&gl->gl_ail_count); in gfs2_ail_empty_gl()
48 if (!blocks) in gfs2_ail_empty_gl()
51 error = gfs2_trans_begin(sdp, 0, blocks); in gfs2_ail_empty_gl()
Dinode.h43 static inline void gfs2_set_inode_blocks(struct inode *inode, u64 blocks) in gfs2_set_inode_blocks() argument
45 inode->i_blocks = blocks << in gfs2_set_inode_blocks()
Dtrans.h28 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks,
/fs/minix/
Ditree_common.c353 unsigned blocks, res, direct = DIRECT, i = DEPTH; in nblocks() local
354 blocks = (size + sb->s_blocksize - 1) >> (BLOCK_SIZE_BITS + k); in nblocks()
355 res = blocks; in nblocks()
356 while (--i && blocks > direct) { in nblocks()
357 blocks -= direct; in nblocks()
358 blocks += sb->s_blocksize/sizeof(block_t) - 1; in nblocks()
359 blocks /= sb->s_blocksize/sizeof(block_t); in nblocks()
360 res += blocks; in nblocks()
/fs/squashfs/
Dfile.c187 int blocks = min_t(int, n, PAGE_CACHE_SIZE >> 2); in read_indexes() local
190 offset, blocks << 2); in read_indexes()
197 for (i = 0; i < blocks; i++) { in read_indexes()
201 n -= blocks; in read_indexes()
224 static inline int calculate_skip(int blocks) in calculate_skip() argument
226 int skip = blocks / ((SQUASHFS_META_ENTRIES + 1) in calculate_skip()
285 int blocks = skip * SQUASHFS_META_INDEXES; in fill_meta_index() local
286 long long res = read_indexes(inode->i_sb, blocks, in fill_meta_index()
/fs/ocfs2/
Djournal.h460 int blocks = ocfs2_mknod_credits(sb); in ocfs2_calc_symlink_credits() local
464 blocks += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_symlink_credits()
466 return blocks + ocfs2_quota_trans_credits(sb); in ocfs2_calc_symlink_credits()
472 int blocks; in ocfs2_calc_group_alloc_credits() local
476 blocks = 1 + 1 + 1 + bitmap_blocks; in ocfs2_calc_group_alloc_credits()
477 return blocks; in ocfs2_calc_group_alloc_credits()
Docfs2.h501 u64 blocks) in ocfs2_blocks_to_clusters() argument
506 return (u32)(blocks >> b_to_c_bits); in ocfs2_blocks_to_clusters()
548 u64 blocks; in ocfs2_align_bytes_to_blocks() local
550 blocks = ocfs2_blocks_for_bytes(sb, bytes); in ocfs2_align_bytes_to_blocks()
551 return blocks << sb->s_blocksize_bits; in ocfs2_align_bytes_to_blocks()
Dslot_map.c360 unsigned long long blocks, bytes; in ocfs2_map_slot_buffers() local
368 blocks = ocfs2_blocks_for_bytes(si->si_inode->i_sb, bytes); in ocfs2_map_slot_buffers()
369 BUG_ON(blocks > UINT_MAX); in ocfs2_map_slot_buffers()
370 si->si_blocks = blocks; in ocfs2_map_slot_buffers()
382 BUG_ON((osb->max_slots / si->si_slots_per_block) > blocks); in ocfs2_map_slot_buffers()
/fs/hfs/
Dextent.c275 u32 total_blocks, blocks, start; in hfs_free_fork() local
291 blocks = 0; in hfs_free_fork()
293 blocks += be16_to_cpu(extent[i].count); in hfs_free_fork()
295 res = hfs_free_extents(sb, extent, blocks, blocks); in hfs_free_fork()
298 if (total_blocks == blocks) in hfs_free_fork()
310 } while (total_blocks > blocks); in hfs_free_fork()
/fs/hfsplus/
Dextents.c313 u32 total_blocks, blocks, start; in hfsplus_free_fork() local
320 blocks = 0; in hfsplus_free_fork()
322 blocks += be32_to_cpu(fork->extents[i].block_count); in hfsplus_free_fork()
324 res = hfsplus_free_extents(sb, fork->extents, blocks, blocks); in hfsplus_free_fork()
327 if (total_blocks == blocks) in hfsplus_free_fork()
342 } while (total_blocks > blocks); in hfsplus_free_fork()
/fs/befs/
Ddatastream.c168 befs_blocknr_t blocks; in befs_count_blocks() local
209 blocks = datablocks + metablocks; in befs_count_blocks()
210 befs_debug(sb, "<--- befs_count_blocks() %u blocks", blocks); in befs_count_blocks()
212 return blocks; in befs_count_blocks()
/fs/cramfs/
Dinode.c282 sbi->blocks=super.fsid.blocks; in cramfs_fill_super()
286 sbi->blocks=0; in cramfs_fill_super()
324 buf->f_blocks = CRAMFS_SB(sb)->blocks; in cramfs_statfs()
/fs/afs/
Ddir.c117 union afs_dir_block blocks[PAGE_SIZE / sizeof(union afs_dir_block)]; member
138 qty = desc.size / sizeof(dbuf->blocks[0]); in afs_dir_check_page()
142 if (page->index == 0 && qty != ntohs(dbuf->blocks[0].pagehdr.npages)) { in afs_dir_check_page()
145 ntohs(dbuf->blocks[0].pagehdr.npages)); in afs_dir_check_page()
161 if (dbuf->blocks[tmp].pagehdr.magic != AFS_DIR_MAGIC) { in afs_dir_check_page()
164 ntohs(dbuf->blocks[tmp].pagehdr.magic)); in afs_dir_check_page()
368 dblock = &dbuf->blocks[(blkoff % PAGE_SIZE) / in afs_dir_iterate()
/fs/reiserfs/
Dsuper.c881 unsigned long *blocks, /* strtol-ed from NNN of resize=NNN */ in reiserfs_parse_options() argument
933 *blocks = 0; in reiserfs_parse_options()
953 *blocks = in reiserfs_parse_options()
957 *blocks = simple_strtoul(arg, &p, 0); in reiserfs_parse_options()
1166 unsigned long blocks; in reiserfs_remount() local
1184 (s, arg, &mount_options, &blocks, NULL, &commit_max_age, in reiserfs_remount()
1232 if (blocks) { in reiserfs_remount()
1233 err = reiserfs_resize(s, blocks); in reiserfs_remount()
1601 unsigned long blocks; in reiserfs_fill_super() local
1637 (s, (char *)data, &(sbi->s_mount_opt), &blocks, &jdev_name, in reiserfs_fill_super()
[all …]
/fs/affs/
DChanges18 blocks (some very old SCSI drives).
89 - clear meta blocks
101 with physical blocks != 512 bytes.
305 the 1-k blocks that Linux uses.
307 - The number of used blocks is now also calculated

1234