Home
last modified time | relevance | path

Searched refs:hint (Results 1 – 20 of 20) 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.h3333 reiserfs_blocknr_hint_t hint = { in reiserfs_new_form_blocknrs() local
3341 return reiserfs_allocate_blocknrs(&hint, new_blocknrs, amount_needed, in reiserfs_new_form_blocknrs()
3351 reiserfs_blocknr_hint_t hint = { in reiserfs_new_unf_blocknrs() local
3359 return reiserfs_allocate_blocknrs(&hint, new_blocknrs, 1, 0); in reiserfs_new_unf_blocknrs()
3369 reiserfs_blocknr_hint_t hint = { in reiserfs_new_unf_blocknrs2() local
3377 return reiserfs_allocate_blocknrs(&hint, new_blocknrs, 1, 0); in reiserfs_new_unf_blocknrs2()
/fs/jfs/
Djfs_extent.c73 s64 nxlen, nxaddr, xoff, hint, xaddr = 0; in extAlloc() local
91 if ((hint = addressXAD(xp))) { in extAlloc()
105 xaddr = hint + nxlen; in extAlloc()
108 hint += (nxlen - 1); in extAlloc()
122 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc()
299 extBalloc(struct inode *ip, s64 hint, s64 * nblocks, s64 * blkno) in extBalloc() argument
326 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_xtree.c518 s64 xaddr, hint; in xtInsert() local
562 hint = addressXAD(xad) + lengthXAD(xad) - 1; in xtInsert()
564 hint = 0; in xtInsert()
567 if ((rc = dbAlloc(ip, hint, (s64) xlen, &xaddr))) { in xtInsert()
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_imap.c2158 s64 blkno, hint; in diNewExt() local
2253 hint = ((s64) agno << sbi->bmap->db_agl2size) - 1; in diNewExt()
2255 hint = addressPXD(&iagp->inoext[extno - 1]) + in diNewExt()
2258 if ((rc = dbAlloc(ipimap, hint, (s64) imap->im_nbperiext, &blkno))) in diNewExt()
/fs/ntfs3/
Dbitmap.c956 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint, in wnd_find() argument
986 if (wnd->zone_bit <= hint && hint < wnd->zone_end) in wnd_find()
987 hint = wnd->zone_end; in wnd_find()
992 if (hint >= max_alloc) in wnd_find()
993 hint = 0; in wnd_find()
1004 if (!hint) in wnd_find()
1014 if (e->start.key == hint) in wnd_find()
1017 if (e->start.key < hint) { in wnd_find()
1035 if (e->start.key + e->count.key > hint) { in wnd_find()
1037 size_t len = e->start.key + e->count.key - hint; in wnd_find()
[all …]
Dattrib.c895 CLST hint, svcn, to_alloc, evcn1, next_svcn, asize, end; in attr_data_get_block() local
998 hint = 0; in attr_data_get_block()
1006 } else if (vcn && !run_lookup_entry(run, vcn - 1, &hint, NULL, NULL)) { in attr_data_get_block()
1007 hint = -1; in attr_data_get_block()
1011 sbi, run, vcn, hint + 1, to_alloc, NULL, 0, len, in attr_data_get_block()
1613 CLST alen, hint = 0; in attr_allocate_frame() local
1616 !run_lookup_entry(run, vcn + clst_data - 1, &hint, NULL, in attr_allocate_frame()
1618 hint = -1; in attr_allocate_frame()
1622 hint + 1, len - clst_data, NULL, 0, in attr_allocate_frame()
Dntfs_fs.h553 int ni_write_inode(struct inode *inode, int sync, const char *hint);
601 void ntfs_bad_inode(struct inode *inode, const char *hint);
836 size_t wnd_find(struct wnd_bitmap *wnd, size_t to_alloc, size_t hint,
Dfsntfs.c879 void ntfs_bad_inode(struct inode *inode, const char *hint) in ntfs_bad_inode() argument
883 ntfs_inode_err(inode, "%s", hint); in ntfs_bad_inode()
Dfrecord.c3238 int ni_write_inode(struct inode *inode, int sync, const char *hint) in ni_write_inode() argument
3359 ntfs_err(sb, "%s r=%lx failed, %d.", hint, inode->i_ino, err); in ni_write_inode()
/fs/lockd/
Dsvcsubs.c377 nlmsvc_mark_host(void *data, struct nlm_host *hint) in nlmsvc_mark_host() argument
381 if ((hint->net == NULL) || in nlmsvc_mark_host()
382 (host->net == hint->net)) in nlmsvc_mark_host()
418 struct nlm_host hint; in nlmsvc_mark_resources() local
421 hint.net = net; in nlmsvc_mark_resources()
422 nlm_traverse_files(&hint, nlmsvc_mark_host, NULL); in nlmsvc_mark_resources()
/fs/
Dfcntl.c270 static bool rw_hint_valid(enum rw_hint hint) in rw_hint_valid() argument
272 switch (hint) { in rw_hint_valid()
290 enum rw_hint hint; in fcntl_rw_hint() local
302 hint = (enum rw_hint) h; in fcntl_rw_hint()
303 if (!rw_hint_valid(hint)) in fcntl_rw_hint()
307 inode->i_write_hint = hint; in fcntl_rw_hint()
/fs/ocfs2/
Dsuballoc.c1885 u64 hint = ac->ac_last_group; in ocfs2_claim_suballoc_bits() local
1909 res->sr_bg_blkno = hint; in ocfs2_claim_suballoc_bits()
1934 hint = res->sr_bg_blkno; in ocfs2_claim_suballoc_bits()
1936 hint = ocfs2_group_from_res(res); in ocfs2_claim_suballoc_bits()
1961 hint = ocfs2_group_from_res(res); in ocfs2_claim_suballoc_bits()
1978 ac->ac_last_group = hint; in ocfs2_claim_suballoc_bits()
/fs/f2fs/
Dsegment.c2550 unsigned int hint = GET_SEC_FROM_SEG(sbi, *newseg); in get_new_segment() local
2552 unsigned int left_start = hint; in get_new_segment()
2561 GET_SEG_FROM_SEC(sbi, hint + 1), *newseg + 1); in get_new_segment()
2562 if (segno < GET_SEG_FROM_SEC(sbi, hint + 1)) in get_new_segment()
2566 secno = find_next_zero_bit(free_i->free_secmap, MAIN_SECS(sbi), hint); in get_new_segment()
2574 left_start = hint - 1; in get_new_segment()
2615 hint = zoneno * sbi->secs_per_zone - 1; in get_new_segment()
2617 hint = 0; in get_new_segment()
2619 hint = (zoneno + 1) * sbi->secs_per_zone; in get_new_segment()
3185 int f2fs_rw_hint_to_seg_type(enum rw_hint hint) in f2fs_rw_hint_to_seg_type() argument
[all …]
Df2fs.h3705 int f2fs_rw_hint_to_seg_type(enum rw_hint hint);
/fs/gfs2/
Dfile.c371 int hint = min_t(size_t, INT_MAX, blks); in gfs2_size_hint() local
373 if (hint > atomic_read(&ip->i_sizehint)) in gfs2_size_hint()
374 atomic_set(&ip->i_sizehint, hint); in gfs2_size_hint()
/fs/btrfs/
Dextent-tree.c4987 int level, u64 hint, in btrfs_alloc_tree_block() argument
5017 empty_size, hint, &ins, 0, 0); in btrfs_alloc_tree_block()
Dctree.h2893 int level, u64 hint,