Home
last modified time | relevance | path

Searched refs:resv (Results 1 – 16 of 16) sorted by relevance

/fs/ocfs2/
Dreservations.c42 struct ocfs2_alloc_reservation *resv) in ocfs2_resv_window_bits() argument
47 if (!(resv->r_flags & OCFS2_RESV_FLAG_DIR)) { in ocfs2_resv_window_bits()
56 static inline unsigned int ocfs2_resv_end(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_end() argument
58 if (resv->r_len) in ocfs2_resv_end()
59 return resv->r_start + resv->r_len - 1; in ocfs2_resv_end()
60 return resv->r_start; in ocfs2_resv_end()
63 static inline int ocfs2_resv_empty(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_empty() argument
65 return !!(resv->r_len == 0); in ocfs2_resv_empty()
79 struct ocfs2_alloc_reservation *resv; in ocfs2_dump_resv() local
87 resv = rb_entry(node, struct ocfs2_alloc_reservation, r_node); in ocfs2_dump_resv()
[all …]
Dreservations.h56 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,
Dlocalalloc.c42 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/
Dxfs_ag_resv.c133 struct xfs_ag_resv *resv; in __xfs_ag_resv_free() local
139 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_free()
141 pag->pag_mount->m_ag_max_usable += resv->ar_asked; in __xfs_ag_resv_free()
148 oldresv = resv->ar_orig_reserved; in __xfs_ag_resv_free()
150 oldresv = resv->ar_reserved; in __xfs_ag_resv_free()
152 resv->ar_reserved = 0; in __xfs_ag_resv_free()
153 resv->ar_asked = 0; in __xfs_ag_resv_free()
154 resv->ar_orig_reserved = 0; in __xfs_ag_resv_free()
185 struct xfs_ag_resv *resv; in __xfs_ag_resv_init() local
233 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_init()
[all …]
Dxfs_ialloc_btree.c95 enum xfs_ag_resv_type resv) in __xfs_inobt_alloc_block() argument
110 args.resv = resv; in __xfs_inobt_alloc_block()
155 enum xfs_ag_resv_type resv) in __xfs_inobt_free_block() argument
160 &XFS_RMAP_OINFO_INOBT, resv); in __xfs_inobt_free_block()
Dxfs_alloc.h77 enum xfs_ag_resv_type resv; /* block reservation to use */ member
Dxfs_alloc.c1057 args->resv == XFS_AG_RESV_AGFL || in xfs_alloc_ag_vextent_small()
1165 ASSERT(!args->wasfromfl || args->resv != XFS_AG_RESV_AGFL); in xfs_alloc_ag_vextent()
1186 xfs_ag_resv_alloc_extent(args->pag, args->resv, args); in xfs_alloc_ag_vextent()
2296 reservation = xfs_ag_resv_needed(pag, args->resv); in xfs_alloc_space_available()
2602 targs.resv = XFS_AG_RESV_AGFL; in xfs_alloc_fix_freelist()
Dxfs_refcount_btree.c72 args.resv = XFS_AG_RESV_METADATA; in xfs_refcountbt_alloc_block()
Dxfs_bmap.c3642 args.resv = XFS_AG_RESV_NONE; in xfs_bmap_btalloc()
/fs/xfs/scrub/
Drepair.c289 enum xfs_ag_resv_type resv) in xrep_alloc_ag_block() argument
295 switch (resv) { in xrep_alloc_ag_block()
306 if (resv == XFS_AG_RESV_RMAPBT) in xrep_alloc_ag_block()
321 args.resv = resv; in xrep_alloc_ag_block()
530 enum xfs_ag_resv_type resv) in xrep_reap_block() argument
577 else if (resv == XFS_AG_RESV_AGFL) in xrep_reap_block()
580 error = xfs_free_extent(sc->tp, fsbno, 1, oinfo, resv); in xrep_reap_block()
Drepair.h28 enum xfs_ag_resv_type resv);
/fs/xfs/
Dxfs_trans.c31 struct xfs_trans_res resv; in xfs_trans_trace_reservations() local
40 xfs_log_get_max_trans_res(mp, &resv); in xfs_trans_trace_reservations()
41 trace_xfs_trans_resv_calc(mp, -1, &resv); in xfs_trans_trace_reservations()
315 struct xfs_trans_res resv = {0}; in xfs_trans_alloc_empty() local
317 return xfs_trans_alloc(mp, &resv, 0, 0, XFS_TRANS_NO_WRITECOUNT, tpp); in xfs_trans_alloc_empty()
Dxfs_trace.h1614 xfs_extlen_t len, enum xfs_ag_resv_type resv, int haveleft,
1616 TP_ARGS(mp, agno, agbno, len, resv, haveleft, haveright),
1622 __field(int, resv)
1631 __entry->resv = resv;
1640 __entry->resv,
1667 __field(int, resv)
1688 __entry->resv = args->resv;
1712 __entry->resv,
2694 TP_PROTO(struct xfs_perag *pag, enum xfs_ag_resv_type resv,
2696 TP_ARGS(pag, resv, len),
[all …]
Dxfs_log_recover.c2448 struct xfs_trans_res resv; in xlog_finish_defer_ops() local
2456 resv.tr_logres = dfc->dfc_logres; in xlog_finish_defer_ops()
2457 resv.tr_logcount = 1; in xlog_finish_defer_ops()
2458 resv.tr_logflags = XFS_TRANS_PERM_LOG_RES; in xlog_finish_defer_ops()
2460 error = xfs_trans_alloc(mp, &resv, dfc->dfc_blkres, in xlog_finish_defer_ops()
/fs/nfsd/
Dnfscache.c508 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()
Dnfssvc.c1041 struct kvec *resv = &rqstp->rq_res.head[0]; in nfsd_dispatch() local
1071 p = resv->iov_base + resv->iov_len; in nfsd_dispatch()
1072 resv->iov_len += sizeof(__be32); in nfsd_dispatch()