Home
last modified time | relevance | path

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

/fs/ocfs2/
Dreservations.c53 struct ocfs2_alloc_reservation *resv) in ocfs2_resv_window_bits() argument
58 if (!(resv->r_flags & OCFS2_RESV_FLAG_DIR)) { in ocfs2_resv_window_bits()
67 static inline unsigned int ocfs2_resv_end(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_end() argument
69 if (resv->r_len) in ocfs2_resv_end()
70 return resv->r_start + resv->r_len - 1; in ocfs2_resv_end()
71 return resv->r_start; in ocfs2_resv_end()
74 static inline int ocfs2_resv_empty(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_empty() argument
76 return !!(resv->r_len == 0); in ocfs2_resv_empty()
90 struct ocfs2_alloc_reservation *resv; in ocfs2_dump_resv() local
98 resv = rb_entry(node, struct ocfs2_alloc_reservation, r_node); in ocfs2_dump_resv()
[all …]
Dreservations.h64 void ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv);
67 void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv,
81 struct ocfs2_alloc_reservation *resv);
137 struct ocfs2_alloc_reservation *resv,
156 struct ocfs2_alloc_reservation *resv,
Dlocalalloc.c56 struct ocfs2_alloc_reservation *resv);
837 struct ocfs2_alloc_reservation *resv) in ocfs2_local_alloc_find_clear_bits() argument
850 if (!resv) { in ocfs2_local_alloc_find_clear_bits()
854 resv = &r; in ocfs2_local_alloc_find_clear_bits()
858 if (ocfs2_resmap_resv_bits(resmap, resv, &bitoff, &numfound) == 0) { in ocfs2_local_alloc_find_clear_bits()
914 ocfs2_resv_discard(resmap, resv); in ocfs2_local_alloc_find_clear_bits()
/fs/xfs/libxfs/
Dxfs_ag_resv.c153 struct xfs_ag_resv *resv; in __xfs_ag_resv_free() local
159 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_free()
161 pag->pag_mount->m_ag_max_usable += resv->ar_asked; in __xfs_ag_resv_free()
167 oldresv = resv->ar_orig_reserved; in __xfs_ag_resv_free()
169 oldresv = resv->ar_reserved; in __xfs_ag_resv_free()
171 resv->ar_reserved = 0; in __xfs_ag_resv_free()
172 resv->ar_asked = 0; in __xfs_ag_resv_free()
203 struct xfs_ag_resv *resv; in __xfs_ag_resv_init() local
230 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_init()
231 resv->ar_asked = ask; in __xfs_ag_resv_init()
[all …]
Dxfs_ialloc_btree.c90 enum xfs_ag_resv_type resv) in __xfs_inobt_alloc_block() argument
107 args.resv = resv; in __xfs_inobt_alloc_block()
Dxfs_alloc.h93 enum xfs_ag_resv_type resv; /* block reservation to use */ member
Dxfs_alloc.c696 ASSERT(!args->wasfromfl || args->resv != XFS_AG_RESV_AGFL); in xfs_alloc_ag_vextent()
718 xfs_ag_resv_alloc_extent(args->pag, args->resv, args); in xfs_alloc_ag_vextent()
1567 args->resv != XFS_AG_RESV_AGFL && in xfs_alloc_ag_vextent_small()
2009 reservation = xfs_ag_resv_needed(pag, args->resv); in xfs_alloc_space_available()
2165 targs.resv = XFS_AG_RESV_AGFL; in xfs_alloc_fix_freelist()
Dxfs_refcount_btree.c93 args.resv = XFS_AG_RESV_METADATA; in xfs_refcountbt_alloc_block()
Dxfs_bmap.c3873 args.resv = XFS_AG_RESV_NONE; in xfs_bmap_btalloc()
/fs/nfsd/
Dnfscache.c513 struct kvec *resv = &rqstp->rq_res.head[0], *cachv; in nfsd_cache_update() local
525 len = resv->iov_len - ((char*)statp - (char*)resv->iov_base); in nfsd_cache_update()
/fs/xfs/
Dxfs_trace.h1578 xfs_extlen_t len, enum xfs_ag_resv_type resv, int haveleft,
1580 TP_ARGS(mp, agno, agbno, len, resv, haveleft, haveright),
1586 __field(int, resv)
1595 __entry->resv = resv;
1604 __entry->resv,
1631 __field(int, resv)
1652 __entry->resv = args->resv;
1676 __entry->resv,
2624 TP_PROTO(struct xfs_perag *pag, enum xfs_ag_resv_type resv,
2626 TP_ARGS(pag, resv, len),
[all …]
Dxfs_trans.c282 struct xfs_trans_res resv = {0}; in xfs_trans_alloc_empty() local
284 return xfs_trans_alloc(mp, &resv, 0, 0, XFS_TRANS_NO_WRITECOUNT, tpp); in xfs_trans_alloc_empty()