Home
last modified time | relevance | path

Searched refs:i_delayed_blks (Results 1 – 13 of 13) sorted by relevance

/linux/fs/xfs/libxfs/
H A Dxfs_metafile.c91 if (ip->i_delayed_blks >= rhs) in xfs_metafile_resv_can_cover()
99 rhs - ip->i_delayed_blks, 2048) >= 0; in xfs_metafile_resv_can_cover()
147 if (ip->i_delayed_blks > 0) { in xfs_metafile_resv_alloc_space()
150 from_resv = min_t(int64_t, len, ip->i_delayed_blks); in xfs_metafile_resv_alloc_space()
151 ip->i_delayed_blks -= from_resv; in xfs_metafile_resv_alloc_space()
201 to_resv = ip->i_meta_resv_asked - (ip->i_nblocks + ip->i_delayed_blks); in xfs_metafile_resv_free_space()
204 ip->i_delayed_blks += to_resv; in xfs_metafile_resv_free_space()
230 if (ip->i_delayed_blks) { in xfs_metafile_resv_free()
231 xfs_mod_delalloc(ip, 0, -ip->i_delayed_blks); in xfs_metafile_resv_free()
232 xfs_add_fdblocks(ip->i_mount, ip->i_delayed_blks); in xfs_metafile_resv_free()
[all …]
H A Dxfs_bmap.c3417 ap->ip->i_delayed_blks += ap->length; in xfs_bmap_alloc_account()
3428 ap->ip->i_delayed_blks -= ap->length; in xfs_bmap_alloc_account()
4138 ip->i_delayed_blks += alen; in xfs_bmapi_reserve_delalloc()
4842 ip->i_delayed_blks -= len; /* see xfs_bmap_defer_add */ in xfs_bmapi_remap()
4981 ip->i_delayed_blks -= del->br_blockcount; in xfs_bmap_del_extent_delay()
5148 ip->i_delayed_blks -= del->br_blockcount; in xfs_bmap_del_extent_cow()
/linux/fs/xfs/
H A Dxfs_bmap_util.c310 (ip->i_delayed_blks || XFS_ISIZE(ip) > ip->i_disk_size)) { in xfs_getbmap()
514 ip->i_delayed_blks == 0) in xfs_can_free_eofblocks()
525 if ((ip->i_diflags & XFS_DIFLAG_PREALLOC) && !ip->i_delayed_blks) in xfs_can_free_eofblocks()
547 if (ip->i_delayed_blks || in xfs_can_free_eofblocks()
582 if (ip->i_delayed_blks) { in xfs_free_eofblocks()
1417 ASSERT(tip->i_delayed_blks == 0); in xfs_swap_extent_forks()
1418 tip->i_delayed_blks = ip->i_delayed_blks; in xfs_swap_extent_forks()
1419 ip->i_delayed_blks = 0; in xfs_swap_extent_forks()
H A Dxfs_bmap_item.c360 bi->bi_owner->i_delayed_blks += bi->bi_bmap.br_blockcount; in xfs_bmap_defer_add()
374 bi->bi_owner->i_delayed_blks -= bi->bi_bmap.br_blockcount; in xfs_bmap_update_cancel_item()
475 bi->bi_owner->i_delayed_blks += bi->bi_bmap.br_blockcount; in xfs_bui_recover_work()
H A Dxfs_inode.h67 uint64_t i_delayed_blks; /* count of delay alloc blks */ member
321 return ip->i_df.if_nextents > 0 || ip->i_delayed_blks > 0; in xfs_inode_has_filedata()
H A Dxfs_qm.c1432 ASSERT(ip->i_delayed_blks == 0); in xfs_qm_dqusage_adjust()
2124 -ip->i_delayed_blks); in xfs_qm_vop_chown()
2136 ASSERT(prevdq->q_rtb.reserved >= ip->i_delayed_blks); in xfs_qm_vop_chown()
2137 prevdq->q_rtb.reserved -= ip->i_delayed_blks; in xfs_qm_vop_chown()
2139 ASSERT(prevdq->q_blk.reserved >= ip->i_delayed_blks); in xfs_qm_vop_chown()
2140 prevdq->q_blk.reserved -= ip->i_delayed_blks; in xfs_qm_vop_chown()
H A Dxfs_trans.c1303 rblocks += ip->i_delayed_blks; in xfs_trans_alloc_ichange()
1305 dblocks += ip->i_delayed_blks; in xfs_trans_alloc_ichange()
H A Dxfs_icache.c122 ip->i_delayed_blks = 0; in xfs_inode_alloc()
1906 if (!xfs_is_shutdown(mp) && ip->i_delayed_blks) { in xfs_inodegc_set_reclaimable()
H A Dxfs_iops.c645 stat->blocks = XFS_FSB_TO_BB(mp, ip->i_nblocks + ip->i_delayed_blks); in xfs_vn_getattr()
H A Dxfs_file.c1325 if (ip->i_delayed_blks > 0) in xfs_file_release()
H A Dxfs_trace.h5626 __entry->reserved = ip->i_delayed_blks;
/linux/fs/xfs/scrub/
H A Drepair.c1393 delta = ip->i_nblocks + ip->i_delayed_blks - ip->i_meta_resv_asked; in xrep_reset_metafile_resv()
1404 give_back = min_t(uint64_t, delta, ip->i_delayed_blks); in xrep_reset_metafile_resv()
1408 ip->i_delayed_blks -= give_back; in xrep_reset_metafile_resv()
1434 ip->i_delayed_blks += delta; in xrep_reset_metafile_resv()
H A Dbmap_repair.c495 if (rb->whichfork == XFS_ATTR_FORK || ip->i_delayed_blks == 0) in xrep_bmap_find_delalloc()