Home
last modified time | relevance | path

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

/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/xfs/
Dxfs_iomap.c336 int shift = 0; in xfs_iomap_prealloc_size() local
351 shift = 2; in xfs_iomap_prealloc_size()
353 shift++; in xfs_iomap_prealloc_size()
355 shift++; in xfs_iomap_prealloc_size()
357 shift++; in xfs_iomap_prealloc_size()
359 shift++; in xfs_iomap_prealloc_size()
361 if (shift) in xfs_iomap_prealloc_size()
362 alloc_blocks >>= shift; in xfs_iomap_prealloc_size()
/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.c1281 unsigned int shift; in gfs2_write_alloc_required() local
1295 shift = sdp->sd_sb.sb_bsize_shift; in gfs2_write_alloc_required()
1297 end_of_file = (i_size_read(&ip->i_inode) + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()
1298 lblock = offset >> shift; in gfs2_write_alloc_required()
1299 lblock_stop = (offset + len + sdp->sd_sb.sb_bsize - 1) >> shift; in gfs2_write_alloc_required()
1303 size = (lblock_stop - lblock) << shift; in gfs2_write_alloc_required()
/fs/cachefiles/
Drdwr.c400 unsigned shift; in cachefiles_read_or_alloc_page() local
422 shift = PAGE_SHIFT - inode->i_sb->s_blocksize_bits; in cachefiles_read_or_alloc_page()
437 block0 <<= shift; in cachefiles_read_or_alloc_page()
699 unsigned shift, nrbackpages; in cachefiles_read_or_alloc_pages() local
727 shift = PAGE_SHIFT - inode->i_sb->s_blocksize_bits; in cachefiles_read_or_alloc_pages()
749 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.c229 int shift = 0; in jbd2_journal_init_revoke_table() local
238 shift++; in jbd2_journal_init_revoke_table()
241 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.c225 int shift; in hfsplus_get_block() local
228 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.c593 static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift) in shift_arg_pages() argument
599 unsigned long new_start = old_start - shift; in shift_arg_pages()
600 unsigned long new_end = old_end - shift; in shift_arg_pages()
/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()