Home
last modified time | relevance | path

Searched refs:got (Results 1 – 25 of 25) sorted by relevance

/fs/xfs/libxfs/
Dxfs_bmap.c1277 struct xfs_bmbt_irec got; in xfs_bmap_first_unused() local
1297 for_each_xfs_iext(ifp, &icur, &got) { in xfs_bmap_first_unused()
1301 if (got.br_startoff >= lowest + len && in xfs_bmap_first_unused()
1302 got.br_startoff - max >= len) in xfs_bmap_first_unused()
1304 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1326 struct xfs_bmbt_irec got; in xfs_bmap_last_before() local
1348 if (!xfs_iext_lookup_extent_before(ip, ifp, last_block, &icur, &got)) in xfs_bmap_last_before()
1496 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real()
3225 if (!isnullstartblock(ap->got.br_startblock)) { in xfs_bmap_adjacent()
3229 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent()
[all …]
Dxfs_bmap.h25 struct xfs_bmbt_irec got; /* extent after, or delayed */ member
216 struct xfs_iext_cursor *cur, struct xfs_bmbt_irec *got,
219 struct xfs_iext_cursor *cur, struct xfs_bmbt_irec *got,
234 struct xfs_bmbt_irec *got, struct xfs_iext_cursor *cur,
Dxfs_inode_fork.h164 #define for_each_xfs_iext(ifp, ext, got) \ argument
166 xfs_iext_get_extent((ifp), (ext), (got)); \
Dxfs_da_btree.c2150 int nmap, error, got, i, mapi; in xfs_da_grow_inode_int() local
2204 for (i = 0, got = 0; i < mapi; i++) in xfs_da_grow_inode_int()
2205 got += mapp[i].br_blockcount; in xfs_da_grow_inode_int()
2206 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int()
/fs/xfs/
Dxfs_reflink.c248 struct xfs_bmbt_irec got; in xfs_reflink_convert_cow_locked() local
253 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) in xfs_reflink_convert_cow_locked()
257 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked()
259 if (got.br_state == XFS_EXT_NORM) in xfs_reflink_convert_cow_locked()
261 if (WARN_ON_ONCE(isnullstartblock(got.br_startblock))) in xfs_reflink_convert_cow_locked()
264 xfs_trim_extent(&got, offset_fsb, count_fsb); in xfs_reflink_convert_cow_locked()
265 if (!got.br_blockcount) in xfs_reflink_convert_cow_locked()
268 got.br_state = XFS_EXT_NORM; in xfs_reflink_convert_cow_locked()
270 XFS_COW_FORK, &icur, &dummy_cur, &got, in xfs_reflink_convert_cow_locked()
274 } while (xfs_iext_next_extent(ip->i_cowfp, &icur, &got)); in xfs_reflink_convert_cow_locked()
[all …]
Dxfs_bmap_util.c87 error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev, in xfs_bmap_rtalloc()
189 struct xfs_bmbt_irec got; in xfs_bmap_count_leaves() local
192 for_each_xfs_iext(ifp, &icur, &got) { in xfs_bmap_count_leaves()
193 if (!isnullstartblock(got.br_startblock)) { in xfs_bmap_count_leaves()
194 *count += got.br_blockcount; in xfs_bmap_count_leaves()
262 struct xfs_bmbt_irec *got) in xfs_getbmap_report_one() argument
268 error = xfs_reflink_trim_around_shared(ip, got, &shared); in xfs_getbmap_report_one()
272 if (isnullstartblock(got->br_startblock) || in xfs_getbmap_report_one()
273 got->br_startblock == DELAYSTARTBLOCK) { in xfs_getbmap_report_one()
282 if (got->br_startoff < XFS_B_TO_FSB(ip->i_mount, XFS_ISIZE(ip))) in xfs_getbmap_report_one()
[all …]
Dxfs_iomap.c369 struct xfs_bmbt_irec prev, got; in xfs_iomap_prealloc_size() local
404 while (xfs_iext_prev_extent(ifp, &ncur, &got)) { in xfs_iomap_prealloc_size()
406 isnullstartblock(got.br_startblock) || in xfs_iomap_prealloc_size()
407 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size()
408 got.br_startblock + got.br_blockcount != prev.br_startblock) in xfs_iomap_prealloc_size()
410 plen += got.br_blockcount; in xfs_iomap_prealloc_size()
411 prev = got; in xfs_iomap_prealloc_size()
Dxfs_dquot.c726 struct xfs_bmbt_irec got; in xfs_dq_get_next_id() local
751 if (xfs_iext_lookup_extent(quotip, &quotip->i_df, start, &cur, &got)) { in xfs_dq_get_next_id()
753 if (got.br_startoff < start) in xfs_dq_get_next_id()
754 got.br_startoff = start; in xfs_dq_get_next_id()
755 *id = got.br_startoff * mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
Dxfs_super.c607 struct xfs_bmbt_irec got; in xfs_check_delalloc() local
610 if (!ifp || !xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got)) in xfs_check_delalloc()
613 if (isnullstartblock(got.br_startblock)) { in xfs_check_delalloc()
618 got.br_startoff, got.br_blockcount); in xfs_check_delalloc()
620 } while (xfs_iext_next_extent(ifp, &icur, &got)); in xfs_check_delalloc()
/fs/xfs/scrub/
Ddir.c649 struct xfs_bmbt_irec got; in xchk_directory_blocks() local
680 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
684 (got.br_startoff > 0 || in xchk_directory_blocks()
685 got.br_blockcount != args.geo->fsbcount)) { in xchk_directory_blocks()
687 got.br_startoff); in xchk_directory_blocks()
692 if (got.br_startoff >= leaf_lblk) in xchk_directory_blocks()
706 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
708 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
715 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
717 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
[all …]
/fs/ceph/
Daddr.c334 int got = 0; in start_read() local
342 true, &got); in start_read()
345 } else if (!(got & want)) { in start_read()
350 if (got) in start_read()
351 ceph_put_cap_refs(ci, got); in start_read()
429 if (got) in start_read()
430 ceph_put_cap_refs(ci, got); in start_read()
443 if (got) in start_read()
444 ceph_put_cap_refs(ci, got); in start_read()
1495 int want, got, err; in ceph_filemap_fault() local
[all …]
Dfile.c453 int got = 0, want = CEPH_CAP_FILE_EXCL | CEPH_CAP_DIR_CREATE; in try_prep_async_create() local
491 got = want; in try_prep_async_create()
494 return got; in try_prep_async_create()
1553 int want, got = 0; in ceph_read_iter() local
1570 &got, &pinned_page); in ceph_read_iter()
1579 if ((got & (CEPH_CAP_FILE_CACHE|CEPH_CAP_FILE_LAZYIO)) == 0 || in ceph_read_iter()
1585 ceph_cap_string(got)); in ceph_read_iter()
1600 CEPH_DEFINE_RW_CONTEXT(rw_ctx, got); in ceph_read_iter()
1603 ceph_cap_string(got)); in ceph_read_iter()
1610 inode, ceph_vinop(inode), ceph_cap_string(got), (int)ret); in ceph_read_iter()
[all …]
Dcaps.c2679 void ceph_take_cap_refs(struct ceph_inode_info *ci, int got, in ceph_take_cap_refs() argument
2684 if (got & CEPH_CAP_PIN) in ceph_take_cap_refs()
2686 if (got & CEPH_CAP_FILE_RD) in ceph_take_cap_refs()
2688 if (got & CEPH_CAP_FILE_CACHE) in ceph_take_cap_refs()
2690 if (got & CEPH_CAP_FILE_EXCL) in ceph_take_cap_refs()
2692 if (got & CEPH_CAP_FILE_WR) { in ceph_take_cap_refs()
2700 if (got & CEPH_CAP_FILE_BUFFER) { in ceph_take_cap_refs()
2729 loff_t endoff, int flags, int *got) in try_get_cap_refs() argument
2815 *got = need | want; in try_get_cap_refs()
2817 *got = need; in try_get_cap_refs()
[all …]
Ddir.c1092 int got = 0, want = CEPH_CAP_FILE_EXCL | CEPH_CAP_DIR_UNLINK; in get_caps_for_async_unlink() local
1097 got = want; in get_caps_for_async_unlink()
1102 if (!got) in get_caps_for_async_unlink()
1117 if (want == got) in get_caps_for_async_unlink()
1118 return got; in get_caps_for_async_unlink()
1120 ceph_put_cap_refs(ci, got); in get_caps_for_async_unlink()
Dsuper.h1154 loff_t endoff, int *got, struct page **pinned_page);
1156 int need, int want, bool nonblock, int *got);
/fs/proc/
Dbase.c224 int ret, got; in get_mm_proctitle() local
234 got = access_remote_vm(mm, arg_start, page, PAGE_SIZE, FOLL_ANON); in get_mm_proctitle()
235 if (got > 0) { in get_mm_proctitle()
236 int len = strnlen(page, got); in get_mm_proctitle()
239 if (len < got) in get_mm_proctitle()
321 int got; in get_mm_cmdline() local
324 got = access_remote_vm(mm, pos, page, size, FOLL_ANON); in get_mm_cmdline()
325 if (got <= 0) in get_mm_cmdline()
327 got -= copy_to_user(buf, page, got); in get_mm_cmdline()
328 if (unlikely(!got)) { in get_mm_cmdline()
[all …]
/fs/ubifs/
Dubifs.h1577 const u8 *expected, const u8 *got) in ubifs_check_hash() argument
1579 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash()
1592 const u8 *expected, const u8 *got) in ubifs_check_hmac() argument
1594 return crypto_memneq(expected, got, c->hmac_desc_len); in ubifs_check_hmac()
/fs/jffs2/
DTODO30 got a match, and in readdir().
/fs/ext2/
Dialloc.c507 goto got; in ext2_new_inode()
516 got: in ext2_new_inode()
/fs/affs/
DChanges14 Alas, I've got no alpha to debug. :-(
162 This was fixed before, but somehow got lost.
/fs/quota/
Ddquot.c1518 struct dquot **dquots, *got[MAXQUOTAS] = {}; in __dquot_initialize() local
1573 got[cnt] = dquot; in __dquot_initialize()
1590 if (!got[cnt]) in __dquot_initialize()
1593 dquots[cnt] = got[cnt]; in __dquot_initialize()
1594 got[cnt] = NULL; in __dquot_initialize()
1615 dqput_all(got); in __dquot_initialize()
/fs/f2fs/
Dnode.c698 goto got; in get_node_path()
706 goto got; in get_node_path()
714 goto got; in get_node_path()
724 goto got; in get_node_path()
734 goto got; in get_node_path()
749 goto got; in get_node_path()
753 got: in get_node_path()
/fs/ext4/
Dialloc.c1112 goto got; /* we grabbed the inode! */ in __ext4_new_inode()
1123 got: in __ext4_new_inode()
/fs/reiserfs/
DREADME126 textbook he got the algorithm from in the code. Note that his analysis
/fs/befs/
DChangeLog328 Make sure inode we got was the one we asked for.