Home
last modified time | relevance | path

Searched refs:nextents (Results 1 – 5 of 5) sorted by relevance

/fs/xfs/
Dxfs_extfree_item.c239 uint nextents) in xfs_efi_init() argument
245 ASSERT(nextents > 0); in xfs_efi_init()
246 if (nextents > XFS_EFI_MAX_FAST_EXTENTS) { in xfs_efi_init()
248 ((nextents - 1) * sizeof(xfs_extent_t))); in xfs_efi_init()
255 efip->efi_format.efi_nextents = nextents; in xfs_efi_init()
324 uint nextents) in xfs_efi_release() argument
326 ASSERT(atomic_read(&efip->efi_next_extent) >= nextents); in xfs_efi_release()
327 if (atomic_sub_and_test(nextents, &efip->efi_next_extent)) in xfs_efi_release()
499 uint nextents) in xfs_efd_init() argument
505 ASSERT(nextents > 0); in xfs_efd_init()
[all …]
Dxfs_trans_extfree.c38 uint nextents) in xfs_trans_get_efi() argument
43 ASSERT(nextents > 0); in xfs_trans_get_efi()
45 efip = xfs_efi_init(tp->t_mountp, nextents); in xfs_trans_get_efi()
94 uint nextents) in xfs_trans_get_efd() argument
99 ASSERT(nextents > 0); in xfs_trans_get_efd()
101 efdp = xfs_efd_init(tp->t_mountp, efip, nextents); in xfs_trans_get_efd()
Dxfs_inode.c893 xfs_extnum_t nextents; in xfs_iread_extents() local
900 nextents = XFS_IFORK_NEXTENTS(ip, whichfork); in xfs_iread_extents()
908 xfs_iext_add(ifp, 0, nextents); in xfs_iread_extents()
915 xfs_validate_extents(ifp, nextents, XFS_EXTFMT_INODE(ip)); in xfs_iread_extents()
2800 xfs_extnum_t nextents; /* number of extents in file */ in xfs_iext_add() local
2802 nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); in xfs_iext_add()
2803 ASSERT((idx >= 0) && (idx <= nextents)); in xfs_iext_add()
2811 if (nextents + ext_diff <= XFS_INLINE_EXTS) { in xfs_iext_add()
2812 if (idx < nextents) { in xfs_iext_add()
2815 (nextents - idx) * sizeof(xfs_bmbt_rec_t)); in xfs_iext_add()
[all …]
Dxfs_bmap.c3052 xfs_extnum_t nextents; /* number of file extents */ in xfs_bmap_extents_to_btree() local
3131 nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); in xfs_bmap_extents_to_btree()
3132 for (cnt = i = 0; i < nextents; i++) { in xfs_bmap_extents_to_btree()
3784 xfs_extnum_t nextents; /* number of extent entries */ in xfs_bmap_first_unused() local
3798 nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); in xfs_bmap_first_unused()
3799 for (idx = 0, lastaddr = 0, max = lowest; idx < nextents; idx++) { in xfs_bmap_first_unused()
3875 int nextents; in xfs_bmap_last_extent() local
3883 nextents = ifp->if_bytes / sizeof(xfs_bmbt_rec_t); in xfs_bmap_last_extent()
3884 if (nextents == 0) { in xfs_bmap_last_extent()
3889 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, nextents - 1), rec); in xfs_bmap_last_extent()
[all …]
Dxfs_qm.c1067 xfs_extnum_t nextents; /* number of extent entries */ in xfs_qm_get_rtblks() local
1077 nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); in xfs_qm_get_rtblks()
1078 for (idx = 0; idx < nextents; idx++) in xfs_qm_get_rtblks()