Searched refs:max_blocks (Results 1 – 8 of 8) sorted by relevance
/fs/omfs/ |
D | file.c | 229 int max_blocks = bh_result->b_size >> inode->i_blkbits; in omfs_get_block() local 257 if (remain > max_blocks) in omfs_get_block() 258 remain = max_blocks; in omfs_get_block()
|
/fs/fat/ |
D | inode.c | 112 unsigned long *max_blocks, in __fat_get_block() argument 126 *max_blocks = min(mapped_blocks, *max_blocks); in __fat_get_block() 148 *max_blocks = min(mapped_blocks, *max_blocks); in __fat_get_block() 149 MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits; in __fat_get_block() 156 BUG_ON(*max_blocks != mapped_blocks); in __fat_get_block() 167 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block() local 170 err = __fat_get_block(inode, iblock, &max_blocks, bh_result, create); in fat_get_block() 173 bh_result->b_size = max_blocks << sb->s_blocksize_bits; in fat_get_block()
|
/fs/nilfs2/ |
D | sufile.c | 1035 u64 segnum, segnum_end, minlen, len, max_blocks, ndiscarded = 0; in nilfs_sufile_trim_fs() local 1043 max_blocks = ((u64)nilfs->ns_nsegments * nilfs->ns_blocks_per_segment); in nilfs_sufile_trim_fs() 1045 if (!len || range->start >= max_blocks << nilfs->ns_blocksize_bits) in nilfs_sufile_trim_fs() 1056 if (max_blocks - start_block < len) in nilfs_sufile_trim_fs() 1057 end_block = max_blocks - 1; in nilfs_sufile_trim_fs()
|
/fs/ext4/ |
D | extents.c | 4800 unsigned int max_blocks; in ext4_zero_range() local 4837 max_blocks = (end >> blkbits); in ext4_zero_range() 4838 if (max_blocks < lblk) in ext4_zero_range() 4839 max_blocks = 0; in ext4_zero_range() 4841 max_blocks -= lblk; in ext4_zero_range() 4883 if (max_blocks > 0) { in ext4_zero_range() 4901 ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, in ext4_zero_range() 4964 unsigned int max_blocks; in ext4_fallocate() local 5013 max_blocks = (EXT4_BLOCK_ALIGN(len + offset, blkbits) >> blkbits) in ext4_fallocate() 5043 ret = ext4_alloc_file_blocks(file, lblk, max_blocks, new_size, in ext4_fallocate() [all …]
|
/fs/ocfs2/ |
D | aops.c | 142 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block() local 168 if (max_blocks < count) in ocfs2_get_block() 169 count = max_blocks; in ocfs2_get_block() 524 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_direct_IO_get_blocks() local 609 if (max_blocks < contig_blocks) in ocfs2_direct_IO_get_blocks() 610 contig_blocks = max_blocks; in ocfs2_direct_IO_get_blocks()
|
/fs/gfs2/ |
D | file.c | 782 unsigned int max_blocks) in calc_max_reserv() argument 786 unsigned int tmp, max_data = max_blocks - 3 * (sdp->sd_max_height - 1); in calc_max_reserv() 794 *ind_blocks = max_blocks - max_data; in calc_max_reserv()
|
/fs/f2fs/ |
D | segment.c | 982 unsigned long offset, size, max_blocks = sbi->blocks_per_seg; in __check_sit_bitmap() local 993 size = max_blocks; in __check_sit_bitmap() 1605 int max_blocks = sbi->blocks_per_seg; in add_discard_addrs() local 1617 if (se->valid_blocks == max_blocks || !f2fs_discard_en(sbi)) in add_discard_addrs() 1634 start = __find_rev_next_bit(dmap, max_blocks, end + 1); in add_discard_addrs() 1635 if (start >= max_blocks) in add_discard_addrs() 1638 end = __find_rev_next_zero_bit(dmap, max_blocks, start + 1); in add_discard_addrs() 1639 if (force && start && end != max_blocks in add_discard_addrs()
|
/fs/ext2/ |
D | inode.c | 768 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext2_get_block() local 769 int ret = ext2_get_blocks(inode, iblock, max_blocks, in ext2_get_block()
|