Home
last modified time | relevance | path

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

12

/fs/xfs/libxfs/
A Dxfs_bmap.c1276 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
3734 got->br_startoff + got->br_blockcount <= obno) { in xfs_bmapi_trim_map()
3759 got->br_blockcount - (*bno - got->br_startoff)); in xfs_bmapi_trim_map()
4693 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_delay()
4830 got_endoff = got->br_startoff + got->br_blockcount; in xfs_bmap_del_extent_cow()
4953 got_endoff = got.br_startoff + got.br_blockcount; in xfs_bmap_del_extent_real()
5051 old = got; in xfs_bmap_del_extent_real()
5264 got.br_startoff + got.br_blockcount - 1); in __xfs_bunmapi()
5271 del = got; in __xfs_bunmapi()
5655 got); in xfs_bmap_shift_update_extent()
[all …]
A Dxfs_bmap.h24 struct xfs_bmbt_irec got; /* extent after, or delayed */ member
210 struct xfs_iext_cursor *cur, struct xfs_bmbt_irec *got,
213 struct xfs_iext_cursor *cur, struct xfs_bmbt_irec *got,
A Dxfs_inode_fork.h252 #define for_each_xfs_iext(ifp, ext, got) \ argument
254 xfs_iext_get_extent((ifp), (ext), (got)); \
/fs/xfs/scrub/
A Dcow_repair.c480 struct xfs_bmbt_irec *got) in xrep_cow_find_mapping() argument
488 if (got->br_startoff > startoff) in xrep_cow_find_mapping()
491 if (got->br_blockcount == 0) in xrep_cow_find_mapping()
497 if (xfs_bmap_is_written_extent(got)) in xrep_cow_find_mapping()
517 const struct xfs_bmbt_irec *got, in xrep_cow_replace_mapping() argument
527 if (got->br_blockcount == repl->len) { in xrep_cow_replace_mapping()
546 new.br_startoff = got->br_startoff; in xrep_cow_replace_mapping()
564 struct xfs_bmbt_irec got; in xrep_cow_replace_range() local
578 got.br_startoff + got.br_blockcount); in xrep_cow_replace_range()
607 got.br_startblock, repl.len); in xrep_cow_replace_range()
[all …]
A Ddir.c789 struct xfs_bmbt_irec got; in xchk_directory_blocks() local
828 if (got.br_startoff >= leaf_lblk) in xchk_directory_blocks()
842 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
844 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
852 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
862 got.br_startoff == leaf_lblk && in xchk_directory_blocks()
863 got.br_blockcount == args.geo->fsbcount && in xchk_directory_blocks()
864 !xfs_iext_next_extent(ifp, &icur, &got)) { in xchk_directory_blocks()
886 lblk = got.br_startoff; in xchk_directory_blocks()
909 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
[all …]
A Dattr_repair.c884 struct xfs_bmbt_irec got; in xrep_xattr_recover() local
900 offset = got.br_startoff + got.br_blockcount) { in xrep_xattr_recover()
903 &got, &nmap, XFS_BMAPI_ATTRFORK); in xrep_xattr_recover()
908 if (!xfs_bmap_is_written_extent(&got)) in xrep_xattr_recover()
911 for (dabno = round_up(got.br_startoff, geo->fsbcount); in xrep_xattr_recover()
912 dabno < got.br_startoff + got.br_blockcount; in xrep_xattr_recover()
914 xfs_fileoff_t curr_offset = dabno - got.br_startoff; in xrep_xattr_recover()
921 got.br_blockcount - curr_offset); in xrep_xattr_recover()
923 curr_offset + got.br_startblock, in xrep_xattr_recover()
A Ddir_repair.c955 struct xfs_bmbt_irec got; in xrep_dir_recover() local
969 offset = got.br_startoff + got.br_blockcount) { in xrep_dir_recover()
972 &got, &nmap, 0); in xrep_dir_recover()
977 if (!xfs_bmap_is_written_extent(&got)) in xrep_dir_recover()
980 for (dabno = round_up(got.br_startoff, geo->fsbcount); in xrep_dir_recover()
981 dabno < got.br_startoff + got.br_blockcount; in xrep_dir_recover()
A Dbmap.c962 struct xfs_bmbt_irec got; in xchk_bmap_iext_iter() local
984 while (xfs_iext_peek_next_extent(ifp, &info->icur, &got)) { in xchk_bmap_iext_iter()
985 if (!xchk_are_bmaps_contiguous(info, irec, &got)) in xchk_bmap_iext_iter()
988 if (!xchk_bmap_iext_mapping(info, &got)) { in xchk_bmap_iext_iter()
990 got.br_startoff); in xchk_bmap_iext_iter()
995 irec->br_blockcount += got.br_blockcount; in xchk_bmap_iext_iter()
A Dinode_repair.c1848 struct xfs_bmbt_irec got; in xrep_inode_blockdir_size() local
1862 if (!xfs_iext_lookup_extent_before(sc->ip, ifp, &off, &icur, &got)) { in xrep_inode_blockdir_size()
1867 off = got.br_startoff + got.br_blockcount; in xrep_inode_blockdir_size()
/fs/xfs/
A Dxfs_reflink.c303 struct xfs_bmbt_irec got; in xfs_reflink_convert_cow_locked() local
314 if (got.br_state == XFS_EXT_NORM) in xfs_reflink_convert_cow_locked()
320 if (!got.br_blockcount) in xfs_reflink_convert_cow_locked()
323 got.br_state = XFS_EXT_NORM; in xfs_reflink_convert_cow_locked()
629 struct xfs_bmbt_irec got, del; in xfs_reflink_cancel_cow_blocks() local
640 while (got.br_startoff + got.br_blockcount > offset_fsb) { in xfs_reflink_cancel_cow_blocks()
641 del = got; in xfs_reflink_cancel_cow_blocks()
808 got.br_startoff >= end_fsb) { in xfs_reflink_end_cow_extent_locked()
822 got.br_startoff >= end_fsb) { in xfs_reflink_end_cow_extent_locked()
827 del = got; in xfs_reflink_end_cow_extent_locked()
[all …]
A Dxfs_bmap_util.c79 struct xfs_bmbt_irec got; in xfs_bmap_count_leaves() local
84 *count += got.br_blockcount; in xfs_bmap_count_leaves()
150 struct xfs_bmbt_irec *got) in xfs_getbmap_report_one() argument
260 struct xfs_bmbt_irec got, rec; in xfs_getbmap() local
382 if (got.br_startoff > bno) { in xfs_getbmap()
384 got.br_startoff); in xfs_getbmap()
394 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
395 rec = got; in xfs_getbmap()
447 struct xfs_bmbt_irec got, del; in xfs_bmap_punch_delalloc_range() local
456 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range()
[all …]
A Dxfs_iomap.c513 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size()
514 got.br_startblock + got.br_blockcount != prev.br_startblock) in xfs_iomap_prealloc_size()
516 plen += got.br_blockcount; in xfs_iomap_prealloc_size()
517 prev = got; in xfs_iomap_prealloc_size()
1398 struct xfs_bmbt_irec *got, in xfs_bmapi_reserve_delalloc() argument
1478 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc()
1480 got->br_blockcount = alen; in xfs_bmapi_reserve_delalloc()
1537 struct xfs_bmbt_irec got; in xfs_zoned_buffered_write_iomap_begin() local
1614 got.br_startoff = end_fsb; in xfs_zoned_buffered_write_iomap_begin()
1672 got.br_state = XFS_EXT_NORM; in xfs_zoned_buffered_write_iomap_begin()
[all …]
A Dxfs_dquot.c760 struct xfs_bmbt_irec got; in xfs_dq_get_next_id() local
783 if (xfs_iext_lookup_extent(quotip, &quotip->i_df, start, &cur, &got)) { in xfs_dq_get_next_id()
785 if (got.br_startoff < start) in xfs_dq_get_next_id()
786 got.br_startoff = start; in xfs_dq_get_next_id()
787 *id = got.br_startoff * mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
A Dxfs_icache.c1884 struct xfs_bmbt_irec got; in xfs_check_delalloc() local
1887 if (!ifp || !xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got)) in xfs_check_delalloc()
1890 if (isnullstartblock(got.br_startblock)) { in xfs_check_delalloc()
1895 got.br_startoff, got.br_blockcount); in xfs_check_delalloc()
1897 } while (xfs_iext_next_extent(ifp, &icur, &got)); in xfs_check_delalloc()
A Dxfs_inode.c1105 struct xfs_bmbt_irec got; in xfs_inactive_dir() local
1117 for_each_xfs_iext(ifp, &icur, &got) { in xfs_inactive_dir()
1118 for (off = round_up(got.br_startoff, geo->fsbcount); in xfs_inactive_dir()
1119 off < got.br_startoff + got.br_blockcount; in xfs_inactive_dir()
1125 fsbno = (off - got.br_startoff) + got.br_startblock; in xfs_inactive_dir()
/fs/ceph/
A Dfile.c549 got = want; in try_prep_async_create()
552 return got; in try_prep_async_create()
2118 int want = 0, got = 0; in ceph_read_iter() local
2181 ceph_put_cap_refs(ci, got); in ceph_read_iter()
2271 int want = 0, got = 0; in ceph_splice_read() local
2307 rw_ctx.caps = got; in ceph_splice_read()
2315 ceph_put_cap_refs(ci, got); in ceph_splice_read()
2342 int err, want = 0, got; in ceph_write_iter() local
2413 got = 0; in ceph_write_iter()
2488 ceph_put_cap_refs(ci, got); in ceph_write_iter()
[all …]
A Daddr.c501 if (!(got & want)) { in ceph_init_request()
511 priv->caps = got; in ceph_init_request()
517 if (got) in ceph_init_request()
1964 int want, got, err; in ceph_filemap_fault() local
1980 got = 0; in ceph_filemap_fault()
1986 off, ceph_cap_string(got)); in ceph_filemap_fault()
1990 CEPH_DEFINE_RW_CONTEXT(rw_ctx, got); in ceph_filemap_fault()
1999 ceph_put_cap_refs(ci, got); in ceph_filemap_fault()
2059 int want, got, err; in ceph_page_mkwrite() local
2085 got = 0; in ceph_page_mkwrite()
[all …]
A Dioctl.c296 int ret, got = 0; in ceph_set_encryption_policy() local
312 ret = ceph_get_caps(file, CEPH_CAP_FILE_SHARED, 0, -1, &got); in ceph_set_encryption_policy()
317 if (got) in ceph_set_encryption_policy()
318 ceph_put_cap_refs(ci, got); in ceph_set_encryption_policy()
A Dcaps.c2769 if (got & CEPH_CAP_PIN) in ceph_take_cap_refs()
2771 if (got & CEPH_CAP_FILE_RD) in ceph_take_cap_refs()
2773 if (got & CEPH_CAP_FILE_CACHE) in ceph_take_cap_refs()
2775 if (got & CEPH_CAP_FILE_EXCL) in ceph_take_cap_refs()
2777 if (got & CEPH_CAP_FILE_WR) { in ceph_take_cap_refs()
2785 if (got & CEPH_CAP_FILE_BUFFER) { in ceph_take_cap_refs()
2908 *got = need | (want & ~exclude); in try_get_cap_refs()
2910 *got = need; in try_get_cap_refs()
3009 bool nonblock, int *got) in ceph_try_get_caps() argument
3168 *got = _got; in __ceph_get_caps()
[all …]
A Ddir.c1303 int got = 0, want = CEPH_CAP_FILE_EXCL | CEPH_CAP_DIR_UNLINK; in get_caps_for_async_unlink() local
1308 got = want; in get_caps_for_async_unlink()
1313 if (!got) in get_caps_for_async_unlink()
1328 if (want == got) in get_caps_for_async_unlink()
1329 return got; in get_caps_for_async_unlink()
1331 ceph_put_cap_refs(ci, got); in get_caps_for_async_unlink()
A Dsuper.h1274 int need, int want, loff_t endoff, int *got);
1276 loff_t endoff, int *got);
1278 int need, int want, bool nonblock, int *got);
/fs/bcachefs/
A Dchecksum.h62 struct bch_csum got) in bch2_csum_err_msg() argument
67 bch2_csum_to_text(out, type, got); in bch2_csum_err_msg()
/fs/proc/
A Dbase.c259 int ret, got; in get_mm_proctitle() local
270 if (got > 0) { in get_mm_proctitle()
274 if (len < got) in get_mm_proctitle()
356 int got; in get_mm_cmdline() local
360 if (got <= 0) in get_mm_cmdline()
362 got -= copy_to_user(buf, page, got); in get_mm_cmdline()
363 if (unlikely(!got)) { in get_mm_cmdline()
368 pos += got; in get_mm_cmdline()
369 buf += got; in get_mm_cmdline()
370 len += got; in get_mm_cmdline()
[all …]
/fs/ubifs/
A Dubifs.h1591 const u8 *expected, const u8 *got) in ubifs_check_hash() argument
1593 return crypto_memneq(expected, got, c->hash_len); in ubifs_check_hash()
1606 const u8 *expected, const u8 *got) in ubifs_check_hmac() argument
1608 return crypto_memneq(expected, got, c->hmac_desc_len); in ubifs_check_hmac()
/fs/ext2/
A Dialloc.c498 goto got; in ext2_new_inode()
507 got: in ext2_new_inode()

Completed in 119 milliseconds

12