Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 14 of 14) sorted by relevance

/fs/xfs/
Dxfs_iomap.c401 int shift = 0; in xfs_quota_calc_throttle() local
412 shift = 2; in xfs_quota_calc_throttle()
414 shift += 2; in xfs_quota_calc_throttle()
416 shift += 2; in xfs_quota_calc_throttle()
420 if ((freesp >> shift) < (*qblocks >> *qshift)) { in xfs_quota_calc_throttle()
422 *qshift = shift; in xfs_quota_calc_throttle()
441 int shift = 0; in xfs_iomap_prealloc_size() local
465 shift = 2; in xfs_iomap_prealloc_size()
467 shift++; in xfs_iomap_prealloc_size()
469 shift++; in xfs_iomap_prealloc_size()
[all …]
Dxfs_trace.h623 TP_PROTO(struct xfs_inode *ip, xfs_fsblock_t blocks, int shift,
625 TP_ARGS(ip, blocks, shift, writeio_blocks),
630 __field(int, shift)
637 __entry->shift = shift;
643 __entry->blocks, __entry->shift, __entry->writeio_blocks)
/fs/adfs/
Dadfs.h177 static inline __u32 signed_asl(__u32 val, signed int shift) in signed_asl() argument
179 if (shift >= 0) in signed_asl()
180 val <<= shift; in signed_asl()
182 val >>= -shift; in signed_asl()
/fs/gfs2/
Dmeta_io.c133 unsigned int shift; in gfs2_getbuf() local
137 shift = PAGE_CACHE_SHIFT - sdp->sd_sb.sb_bsize_shift; in gfs2_getbuf()
138 index = blkno >> shift; /* convert block to page */ in gfs2_getbuf()
139 bufnum = blkno - (index << shift); /* block buf index within page */ in gfs2_getbuf()
Dbmap.c1339 unsigned int shift; in gfs2_write_alloc_required() local
1353 shift = sdp->sd_sb.sb_bsize_shift; in gfs2_write_alloc_required()
1355 end_of_file = (i_size_read(&ip->i_inode) + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()
1356 lblock = offset >> shift; in gfs2_write_alloc_required()
1357 lblock_stop = (offset + len + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()
1361 size = (lblock_stop - lblock) << shift; in gfs2_write_alloc_required()
/fs/cachefiles/
Drdwr.c408 unsigned shift; in cachefiles_read_or_alloc_page() local
430 shift = PAGE_SHIFT - inode->i_sb->s_blocksize_bits; in cachefiles_read_or_alloc_page()
445 block0 <<= shift; in cachefiles_read_or_alloc_page()
718 unsigned shift, nrbackpages; in cachefiles_read_or_alloc_pages() local
746 shift = PAGE_SHIFT - inode->i_sb->s_blocksize_bits; in cachefiles_read_or_alloc_pages()
768 block0 <<= shift; in cachefiles_read_or_alloc_pages()
/fs/jbd/
Drevoke.c234 int shift = 0; in journal_init_revoke_table() local
243 shift++; in journal_init_revoke_table()
246 table->hash_shift = shift; in journal_init_revoke_table()
/fs/jbd2/
Drevoke.c224 int shift = 0; in jbd2_journal_init_revoke_table() local
233 shift++; in jbd2_journal_init_revoke_table()
236 table->hash_shift = shift; in jbd2_journal_init_revoke_table()
/fs/nls/
Dnls_base.c31 int shift; member
103 c = t->shift; in utf32_to_utf8()
/fs/hfsplus/
Dextents.c230 int shift; in hfsplus_get_block() local
233 shift = sbi->alloc_blksz_shift - sb->s_blocksize_bits; in hfsplus_get_block()
/fs/ufs/
Dinode.c89 int shift = uspi->s_apbshift-uspi->s_fpbshift; in ufs_frag_map() local
120 bh = sb_bread(sb, uspi->s_sbbase + fs32_to_cpu(sb, block)+(n>>shift)); in ufs_frag_map()
142 bh = sb_bread(sb, temp +(u64) (n>>shift)); in ufs_frag_map()
/fs/
Dexec.c576 static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift) in shift_arg_pages() argument
582 unsigned long new_start = old_start - shift; in shift_arg_pages()
583 unsigned long new_end = old_end - shift; in shift_arg_pages()
/fs/ext4/
Dextents.c5243 ext4_ext_shift_path_extents(struct ext4_ext_path *path, ext4_lblk_t shift, in ext4_ext_shift_path_extents() argument
5273 le32_add_cpu(&ex_start->ee_block, -shift); in ext4_ext_shift_path_extents()
5296 le32_add_cpu(&path[depth].p_idx->ei_block, -shift); in ext4_ext_shift_path_extents()
5320 ext4_lblk_t start, ext4_lblk_t shift) in ext4_ext_shift_extents() argument
5363 if ((start == ex_start && shift > ex_start) || in ext4_ext_shift_extents()
5364 (shift > start - ex_end)) in ext4_ext_shift_extents()
5388 ret = ext4_ext_shift_path_extents(path, shift, inode, in ext4_ext_shift_extents()
/fs/ocfs2/
Dalloc.c1514 int ret, shift; in ocfs2_grow_tree() local
1521 shift = ocfs2_find_branch_target(et, &bh); in ocfs2_grow_tree()
1522 if (shift < 0) { in ocfs2_grow_tree()
1523 ret = shift; in ocfs2_grow_tree()
1531 if (shift) { in ocfs2_grow_tree()