Home
last modified time | relevance | path

Searched refs:hint (Results 1 – 18 of 18) sorted by relevance

/fs/reiserfs/
Dbitmap.c773 static inline void new_hashed_relocation(reiserfs_blocknr_hint_t * hint) in new_hashed_relocation() argument
777 if (hint->formatted_node) { in new_hashed_relocation()
778 hash_in = (char *)&hint->key.k_dir_id; in new_hashed_relocation()
780 if (!hint->inode) { in new_hashed_relocation()
782 hash_in = (char *)&hint->key.k_dir_id; in new_hashed_relocation()
784 if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super)) in new_hashed_relocation()
785 hash_in = (char *)(&INODE_PKEY(hint->inode)->k_dir_id); in new_hashed_relocation()
788 (char *)(&INODE_PKEY(hint->inode)->k_objectid); in new_hashed_relocation()
791 hint->search_start = in new_hashed_relocation()
792 hint->beg + keyed_hash(hash_in, 4) % (hint->end - hint->beg); in new_hashed_relocation()
[all …]
Dreiserfs.h3334 reiserfs_blocknr_hint_t hint = { in reiserfs_new_form_blocknrs() local
3342 return reiserfs_allocate_blocknrs(&hint, new_blocknrs, amount_needed, in reiserfs_new_form_blocknrs()
3352 reiserfs_blocknr_hint_t hint = { in reiserfs_new_unf_blocknrs() local
3360 return reiserfs_allocate_blocknrs(&hint, new_blocknrs, 1, 0); in reiserfs_new_unf_blocknrs()
3370 reiserfs_blocknr_hint_t hint = { in reiserfs_new_unf_blocknrs2() local
3378 return reiserfs_allocate_blocknrs(&hint, new_blocknrs, 1, 0); in reiserfs_new_unf_blocknrs2()
/fs/jfs/
Djfs_extent.c76 s64 nxlen, nxaddr, xoff, hint, xaddr = 0; in extAlloc() local
94 if ((hint = addressXAD(xp))) { in extAlloc()
108 xaddr = hint + nxlen; in extAlloc()
111 hint += (nxlen - 1); in extAlloc()
125 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc()
496 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
523 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
Djfs_dmap.h291 extern int dbAlloc(struct inode *ipbmap, s64 hint, s64 nblocks, s64 * results);
Djfs_imap.c2160 s64 blkno, hint; in diNewExt() local
2255 hint = ((s64) agno << sbi->bmap->db_agl2size) - 1; in diNewExt()
2257 hint = addressPXD(&iagp->inoext[extno - 1]) + in diNewExt()
2260 if ((rc = dbAlloc(ipimap, hint, (s64) imap->im_nbperiext, &blkno))) in diNewExt()
Djfs_dmap.c725 int dbAlloc(struct inode *ip, s64 hint, s64 nblocks, s64 * results) in dbAlloc() argument
751 if (hint >= mapSize) { in dbAlloc()
770 if (hint == 0) in dbAlloc()
777 blkno = hint + 1; in dbAlloc()
Djfs_xtree.c529 s64 xaddr, hint; in xtInsert() local
573 hint = addressXAD(xad) + lengthXAD(xad) - 1; in xtInsert()
575 hint = 0; in xtInsert()
578 if ((rc = dbAlloc(ip, hint, (s64) xlen, &xaddr))) { in xtInsert()
/fs/lockd/
Dsvcsubs.c331 nlmsvc_mark_host(void *data, struct nlm_host *hint) in nlmsvc_mark_host() argument
335 if ((hint->net == NULL) || in nlmsvc_mark_host()
336 (host->net == hint->net)) in nlmsvc_mark_host()
372 struct nlm_host hint; in nlmsvc_mark_resources() local
375 hint.net = net; in nlmsvc_mark_resources()
376 nlm_traverse_files(&hint, nlmsvc_mark_host, NULL); in nlmsvc_mark_resources()
/fs/
Dfcntl.c261 static bool rw_hint_valid(enum rw_hint hint) in rw_hint_valid() argument
263 switch (hint) { in rw_hint_valid()
281 enum rw_hint hint; in fcntl_rw_hint() local
293 hint = (enum rw_hint) h; in fcntl_rw_hint()
294 if (!rw_hint_valid(hint)) in fcntl_rw_hint()
298 file->f_write_hint = hint; in fcntl_rw_hint()
309 hint = (enum rw_hint) h; in fcntl_rw_hint()
310 if (!rw_hint_valid(hint)) in fcntl_rw_hint()
314 inode->i_write_hint = hint; in fcntl_rw_hint()
Dbuffer.c54 enum rw_hint hint, struct writeback_control *wbc);
/fs/ocfs2/
Dsuballoc.c1884 u64 hint = ac->ac_last_group; in ocfs2_claim_suballoc_bits() local
1908 res->sr_bg_blkno = hint; in ocfs2_claim_suballoc_bits()
1933 hint = res->sr_bg_blkno; in ocfs2_claim_suballoc_bits()
1935 hint = ocfs2_group_from_res(res); in ocfs2_claim_suballoc_bits()
1960 hint = ocfs2_group_from_res(res); in ocfs2_claim_suballoc_bits()
1977 ac->ac_last_group = hint; in ocfs2_claim_suballoc_bits()
/fs/f2fs/
Dsegment.c2392 unsigned int hint = GET_SEC_FROM_SEG(sbi, *newseg); in get_new_segment() local
2394 unsigned int left_start = hint; in get_new_segment()
2403 GET_SEG_FROM_SEC(sbi, hint + 1), *newseg + 1); in get_new_segment()
2404 if (segno < GET_SEG_FROM_SEC(sbi, hint + 1)) in get_new_segment()
2408 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2416 left_start = hint - 1; in get_new_segment()
2457 hint = zoneno * sbi->secs_per_zone - 1; in get_new_segment()
2459 hint = 0; in get_new_segment()
2461 hint = (zoneno + 1) * sbi->secs_per_zone; in get_new_segment()
2917 int f2fs_rw_hint_to_seg_type(enum rw_hint hint) in f2fs_rw_hint_to_seg_type() argument
[all …]
Ddata.c3639 enum rw_hint hint = iocb->ki_hint; in f2fs_direct_IO() local
3682 iocb->ki_hint = hint; in f2fs_direct_IO()
3688 iocb->ki_hint = hint; in f2fs_direct_IO()
3711 iocb->ki_hint = hint; in f2fs_direct_IO()
Df2fs.h3415 int f2fs_rw_hint_to_seg_type(enum rw_hint hint);
/fs/gfs2/
Dfile.c401 int hint = min_t(size_t, INT_MAX, blks); in gfs2_size_hint() local
403 if (hint > atomic_read(&ip->i_sizehint)) in gfs2_size_hint()
404 atomic_set(&ip->i_sizehint, hint); in gfs2_size_hint()
/fs/btrfs/
Dextent-tree.c4530 int level, u64 hint, in btrfs_alloc_tree_block() argument
4559 empty_size, hint, &ins, 0, 0); in btrfs_alloc_tree_block()
Dctree.c1004 u64 hint, in alloc_tree_block_no_bg_flush() argument
1034 hint, empty_size); in alloc_tree_block_no_bg_flush()
Dctree.h2425 int level, u64 hint,