/fs/ocfs2/ |
D | reservations.c | 45 struct ocfs2_alloc_reservation *resv) in ocfs2_resv_window_bits() argument 50 if (!(resv->r_flags & OCFS2_RESV_FLAG_DIR)) { in ocfs2_resv_window_bits() 59 static inline unsigned int ocfs2_resv_end(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_end() argument 61 if (resv->r_len) in ocfs2_resv_end() 62 return resv->r_start + resv->r_len - 1; in ocfs2_resv_end() 63 return resv->r_start; in ocfs2_resv_end() 66 static inline int ocfs2_resv_empty(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_empty() argument 68 return !!(resv->r_len == 0); in ocfs2_resv_empty() 82 struct ocfs2_alloc_reservation *resv; in ocfs2_dump_resv() local 90 resv = rb_entry(node, struct ocfs2_alloc_reservation, r_node); in ocfs2_dump_resv() [all …]
|
D | reservations.h | 56 void ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv); 59 void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv, 73 struct ocfs2_alloc_reservation *resv); 129 struct ocfs2_alloc_reservation *resv, 148 struct ocfs2_alloc_reservation *resv,
|
D | localalloc.c | 42 struct ocfs2_alloc_reservation *resv); 827 struct ocfs2_alloc_reservation *resv) in ocfs2_local_alloc_find_clear_bits() argument 840 if (!resv) { in ocfs2_local_alloc_find_clear_bits() 844 resv = &r; in ocfs2_local_alloc_find_clear_bits() 848 if (ocfs2_resmap_resv_bits(resmap, resv, &bitoff, &numfound) == 0) { in ocfs2_local_alloc_find_clear_bits() 903 ocfs2_resv_discard(resmap, resv); in ocfs2_local_alloc_find_clear_bits()
|
/fs/xfs/libxfs/ |
D | xfs_ag_resv.c | 131 struct xfs_ag_resv *resv; in __xfs_ag_resv_free() local 137 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_free() 139 pag->pag_mount->m_ag_max_usable += resv->ar_asked; in __xfs_ag_resv_free() 146 oldresv = resv->ar_orig_reserved; in __xfs_ag_resv_free() 148 oldresv = resv->ar_reserved; in __xfs_ag_resv_free() 150 resv->ar_reserved = 0; in __xfs_ag_resv_free() 151 resv->ar_asked = 0; in __xfs_ag_resv_free() 152 resv->ar_orig_reserved = 0; in __xfs_ag_resv_free() 183 struct xfs_ag_resv *resv; in __xfs_ag_resv_init() local 231 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_init() [all …]
|
D | xfs_ialloc_btree.c | 76 enum xfs_ag_resv_type resv) in __xfs_inobt_alloc_block() argument 91 args.resv = resv; in __xfs_inobt_alloc_block() 135 enum xfs_ag_resv_type resv) in __xfs_inobt_free_block() argument 139 &XFS_RMAP_OINFO_INOBT, resv); in __xfs_inobt_free_block()
|
D | xfs_alloc.h | 78 enum xfs_ag_resv_type resv; /* block reservation to use */ member
|
D | xfs_alloc.c | 737 args->resv == XFS_AG_RESV_AGFL || in xfs_alloc_ag_vextent_small() 846 ASSERT(!args->wasfromfl || args->resv != XFS_AG_RESV_AGFL); in xfs_alloc_ag_vextent() 868 xfs_ag_resv_alloc_extent(args->pag, args->resv, args); in xfs_alloc_ag_vextent() 2052 reservation = xfs_ag_resv_needed(pag, args->resv); in xfs_alloc_space_available() 2359 targs.resv = XFS_AG_RESV_AGFL; in xfs_alloc_fix_freelist()
|
D | xfs_refcount_btree.c | 73 args.resv = XFS_AG_RESV_METADATA; in xfs_refcountbt_alloc_block()
|
D | xfs_bmap.c | 3558 args.resv = XFS_AG_RESV_NONE; in xfs_bmap_btalloc()
|
/fs/xfs/scrub/ |
D | repair.c | 287 enum xfs_ag_resv_type resv) in xrep_alloc_ag_block() argument 293 switch (resv) { in xrep_alloc_ag_block() 304 if (resv == XFS_AG_RESV_RMAPBT) in xrep_alloc_ag_block() 319 args.resv = resv; in xrep_alloc_ag_block() 524 enum xfs_ag_resv_type resv) in xrep_reap_block() argument 573 else if (resv == XFS_AG_RESV_AGFL) in xrep_reap_block() 576 error = xfs_free_extent(sc->tp, fsbno, 1, oinfo, resv); in xrep_reap_block()
|
D | repair.h | 26 enum xfs_ag_resv_type resv);
|
/fs/xfs/ |
D | xfs_trans.c | 30 struct xfs_trans_res resv; in xfs_trans_trace_reservations() local 39 xfs_log_get_max_trans_res(mp, &resv); in xfs_trans_trace_reservations() 40 trace_xfs_trans_resv_calc(mp, -1, &resv); in xfs_trans_trace_reservations() 323 struct xfs_trans_res resv = {0}; in xfs_trans_alloc_empty() local 325 return xfs_trans_alloc(mp, &resv, 0, 0, XFS_TRANS_NO_WRITECOUNT, tpp); in xfs_trans_alloc_empty()
|
D | xfs_trace.h | 1534 xfs_extlen_t len, enum xfs_ag_resv_type resv, int haveleft, 1536 TP_ARGS(mp, agno, agbno, len, resv, haveleft, haveright), 1542 __field(int, resv) 1551 __entry->resv = resv; 1560 __entry->resv, 1587 __field(int, resv) 1608 __entry->resv = args->resv; 1632 __entry->resv, 2579 TP_PROTO(struct xfs_perag *pag, enum xfs_ag_resv_type resv, 2581 TP_ARGS(pag, resv, len), [all …]
|
D | xfs_log_recover.c | 4783 struct xfs_trans_res resv; in xlog_finish_defer_ops() local 4791 resv.tr_logres = dfc->dfc_logres; in xlog_finish_defer_ops() 4792 resv.tr_logcount = 1; in xlog_finish_defer_ops() 4793 resv.tr_logflags = XFS_TRANS_PERM_LOG_RES; in xlog_finish_defer_ops() 4795 error = xfs_trans_alloc(mp, &resv, dfc->dfc_blkres, in xlog_finish_defer_ops()
|
/fs/nfsd/ |
D | nfscache.c | 508 struct kvec *resv = &rqstp->rq_res.head[0], *cachv; in nfsd_cache_update() local 520 len = resv->iov_len - ((char*)statp - (char*)resv->iov_base); in nfsd_cache_update()
|
/fs/ |
D | io_uring.c | 3935 for (i = 0; i < ARRAY_SIZE(p.resv); i++) { in io_uring_setup() 3936 if (p.resv[i]) in io_uring_setup()
|