Home
last modified time | relevance | path

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

/fs/ocfs2/
Dreservations.c40 struct ocfs2_alloc_reservation *resv) in ocfs2_resv_window_bits() argument
45 if (!(resv->r_flags & OCFS2_RESV_FLAG_DIR)) { in ocfs2_resv_window_bits()
54 static inline unsigned int ocfs2_resv_end(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_end() argument
56 if (resv->r_len) in ocfs2_resv_end()
57 return resv->r_start + resv->r_len - 1; in ocfs2_resv_end()
58 return resv->r_start; in ocfs2_resv_end()
61 static inline int ocfs2_resv_empty(struct ocfs2_alloc_reservation *resv) in ocfs2_resv_empty() argument
63 return !!(resv->r_len == 0); in ocfs2_resv_empty()
77 struct ocfs2_alloc_reservation *resv; in ocfs2_dump_resv() local
85 resv = rb_entry(node, struct ocfs2_alloc_reservation, r_node); in ocfs2_dump_resv()
[all …]
Dreservations.h54 void ocfs2_resv_init_once(struct ocfs2_alloc_reservation *resv);
57 void ocfs2_resv_set_type(struct ocfs2_alloc_reservation *resv,
71 struct ocfs2_alloc_reservation *resv);
122 struct ocfs2_alloc_reservation *resv,
141 struct ocfs2_alloc_reservation *resv,
Dlocalalloc.c40 struct ocfs2_alloc_reservation *resv);
825 struct ocfs2_alloc_reservation *resv) in ocfs2_local_alloc_find_clear_bits() argument
838 if (!resv) { in ocfs2_local_alloc_find_clear_bits()
842 resv = &r; in ocfs2_local_alloc_find_clear_bits()
846 if (ocfs2_resmap_resv_bits(resmap, resv, &bitoff, &numfound) == 0) { in ocfs2_local_alloc_find_clear_bits()
901 ocfs2_resv_discard(resmap, resv); in ocfs2_local_alloc_find_clear_bits()
/fs/xfs/libxfs/
Dxfs_log_rlimit.c47 struct xfs_trans_resv *resv) in xfs_log_calc_trans_resv_for_minlogblocks() argument
62 xfs_trans_resv_calc(mp, resv); in xfs_log_calc_trans_resv_for_minlogblocks()
69 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; in xfs_log_calc_trans_resv_for_minlogblocks()
70 resv->tr_itruncate.tr_logcount = in xfs_log_calc_trans_resv_for_minlogblocks()
72 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT_REFLINK; in xfs_log_calc_trans_resv_for_minlogblocks()
78 resv->tr_write.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks()
79 resv->tr_itruncate.tr_logcount = XFS_ITRUNCATE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks()
80 resv->tr_qm_dqalloc.tr_logcount = XFS_WRITE_LOG_COUNT; in xfs_log_calc_trans_resv_for_minlogblocks()
88 resv->tr_write.tr_logres = in xfs_log_calc_trans_resv_for_minlogblocks()
90 resv->tr_itruncate.tr_logres = in xfs_log_calc_trans_resv_for_minlogblocks()
[all …]
Dxfs_ag_resv.c134 struct xfs_ag_resv *resv; in __xfs_ag_resv_free() local
140 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_free()
142 pag->pag_mount->m_ag_max_usable += resv->ar_asked; in __xfs_ag_resv_free()
149 oldresv = resv->ar_orig_reserved; in __xfs_ag_resv_free()
151 oldresv = resv->ar_reserved; in __xfs_ag_resv_free()
153 resv->ar_reserved = 0; in __xfs_ag_resv_free()
154 resv->ar_asked = 0; in __xfs_ag_resv_free()
155 resv->ar_orig_reserved = 0; in __xfs_ag_resv_free()
186 struct xfs_ag_resv *resv; in __xfs_ag_resv_init() local
238 resv = xfs_perag_resv(pag, type); in __xfs_ag_resv_init()
[all …]
Dxfs_ialloc_btree.c97 enum xfs_ag_resv_type resv) in __xfs_inobt_alloc_block() argument
112 args.resv = resv; in __xfs_inobt_alloc_block()
157 enum xfs_ag_resv_type resv) in __xfs_inobt_free_block() argument
162 &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.c1070 args->resv == XFS_AG_RESV_AGFL || in xfs_alloc_ag_vextent_small()
1179 ASSERT(!args->wasfromfl || args->resv != XFS_AG_RESV_AGFL); in xfs_alloc_ag_vextent()
1200 xfs_ag_resv_alloc_extent(args->pag, args->resv, args); in xfs_alloc_ag_vextent()
2311 reservation = xfs_ag_resv_needed(pag, args->resv); in xfs_alloc_space_available()
2720 targs.resv = XFS_AG_RESV_AGFL; in xfs_alloc_fix_freelist()
Dxfs_refcount_btree.c75 args.resv = XFS_AG_RESV_METADATA; in xfs_refcountbt_alloc_block()
Dxfs_ag.c831 .resv = XFS_AG_RESV_NONE, in xfs_ag_shrink_space()
Dxfs_bmap.c3502 args.resv = XFS_AG_RESV_NONE; in xfs_bmap_exact_minlen_extent_alloc()
3663 args.resv = XFS_AG_RESV_NONE; in xfs_bmap_btalloc()
/fs/xfs/scrub/
Drepair.c291 enum xfs_ag_resv_type resv) in xrep_alloc_ag_block() argument
297 switch (resv) { in xrep_alloc_ag_block()
308 if (resv == XFS_AG_RESV_RMAPBT) in xrep_alloc_ag_block()
323 args.resv = resv; in xrep_alloc_ag_block()
535 enum xfs_ag_resv_type resv) in xrep_reap_block() argument
582 else if (resv == XFS_AG_RESV_AGFL) in xrep_reap_block()
585 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.c329 struct xfs_trans_res resv = {0}; in xfs_trans_alloc_empty() local
331 return xfs_trans_alloc(mp, &resv, 0, 0, XFS_TRANS_NO_WRITECOUNT, tpp); in xfs_trans_alloc_empty()
1179 struct xfs_trans_res *resv, in xfs_trans_alloc_inode() argument
1191 error = xfs_trans_alloc(mp, resv, dblocks, in xfs_trans_alloc_inode()
1234 struct xfs_trans_res *resv, in xfs_trans_alloc_icreate() argument
1246 error = xfs_trans_alloc(mp, resv, dblocks, 0, 0, &tp); in xfs_trans_alloc_icreate()
1363 struct xfs_trans_res *resv, in xfs_trans_alloc_dir() argument
1378 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp); in xfs_trans_alloc_dir()
1382 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp); in xfs_trans_alloc_dir()
Dxfs_trans.h260 int xfs_trans_alloc_inode(struct xfs_inode *ip, struct xfs_trans_res *resv,
263 int xfs_trans_alloc_icreate(struct xfs_mount *mp, struct xfs_trans_res *resv,
270 int xfs_trans_alloc_dir(struct xfs_inode *dp, struct xfs_trans_res *resv,
Dxfs_trace.h1749 xfs_extlen_t len, enum xfs_ag_resv_type resv, int haveleft,
1751 TP_ARGS(mp, agno, agbno, len, resv, haveleft, haveright),
1757 __field(int, resv)
1766 __entry->resv = resv;
1775 __entry->resv,
1802 __field(int, resv)
1823 __entry->resv = args->resv;
1847 __entry->resv,
2831 TP_PROTO(struct xfs_perag *pag, enum xfs_ag_resv_type resv,
2833 TP_ARGS(pag, resv, len),
[all …]
Dxfs_log_recover.c2467 struct xfs_trans_res resv; in xlog_finish_defer_ops() local
2476 resv.tr_logres = dfc->dfc_logres; in xlog_finish_defer_ops()
2477 resv.tr_logcount = 1; in xlog_finish_defer_ops()
2478 resv.tr_logflags = XFS_TRANS_PERM_LOG_RES; in xlog_finish_defer_ops()
2480 error = xfs_trans_alloc(mp, &resv, dfc->dfc_blkres, in xlog_finish_defer_ops()
/fs/nfsd/
Dnfscache.c555 struct kvec *resv = &rqstp->rq_res.head[0], *cachv; in nfsd_cache_update() local
565 len = resv->iov_len - ((char*)statp - (char*)resv->iov_base); in nfsd_cache_update()