aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_extent_busy.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-04-29 06:41:10 -0400
committerBen Myers <bpm@sgi.com>2012-05-14 17:20:56 -0400
commit4ecbfe637cbcc0f093d1f295ef483f4e31e3987b (patch)
tree38faf345e1e43b85105dbfc7f6b3b4e7409f0cfb /fs/xfs/xfs_extent_busy.h
parentefc27b52594e322d4c94e379489fa3690bf74739 (diff)
xfs: clean up busy extent naming
Now that the busy extent tracking has been moved out of the allocation files, clean up the namespace it uses to "xfs_extent_busy" rather than a mix of "xfs_busy" and "xfs_alloc_busy". Signed-off-by: Dave Chinner<dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_extent_busy.h')
-rw-r--r--fs/xfs/xfs_extent_busy.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/xfs/xfs_extent_busy.h b/fs/xfs/xfs_extent_busy.h
index 671b501f13e5..91f2fcbb2001 100644
--- a/fs/xfs/xfs_extent_busy.h
+++ b/fs/xfs/xfs_extent_busy.h
@@ -27,39 +27,39 @@
27 * Note that we use the transaction ID to record the transaction, not the 27 * Note that we use the transaction ID to record the transaction, not the
28 * transaction structure itself. See xfs_extent_busy_insert() for details. 28 * transaction structure itself. See xfs_extent_busy_insert() for details.
29 */ 29 */
30struct xfs_busy_extent { 30struct xfs_extent_busy {
31 struct rb_node rb_node; /* ag by-bno indexed search tree */ 31 struct rb_node rb_node; /* ag by-bno indexed search tree */
32 struct list_head list; /* transaction busy extent list */ 32 struct list_head list; /* transaction busy extent list */
33 xfs_agnumber_t agno; 33 xfs_agnumber_t agno;
34 xfs_agblock_t bno; 34 xfs_agblock_t bno;
35 xfs_extlen_t length; 35 xfs_extlen_t length;
36 unsigned int flags; 36 unsigned int flags;
37#define XFS_ALLOC_BUSY_DISCARDED 0x01 /* undergoing a discard op. */ 37#define XFS_EXTENT_BUSY_DISCARDED 0x01 /* undergoing a discard op. */
38#define XFS_ALLOC_BUSY_SKIP_DISCARD 0x02 /* do not discard */ 38#define XFS_EXTENT_BUSY_SKIP_DISCARD 0x02 /* do not discard */
39}; 39};
40 40
41void 41void
42xfs_alloc_busy_insert(struct xfs_trans *tp, xfs_agnumber_t agno, 42xfs_extent_busy_insert(struct xfs_trans *tp, xfs_agnumber_t agno,
43 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags); 43 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags);
44 44
45void 45void
46xfs_alloc_busy_clear(struct xfs_mount *mp, struct list_head *list, 46xfs_extent_busy_clear(struct xfs_mount *mp, struct list_head *list,
47 bool do_discard); 47 bool do_discard);
48 48
49int 49int
50xfs_alloc_busy_search(struct xfs_mount *mp, xfs_agnumber_t agno, 50xfs_extent_busy_search(struct xfs_mount *mp, xfs_agnumber_t agno,
51 xfs_agblock_t bno, xfs_extlen_t len); 51 xfs_agblock_t bno, xfs_extlen_t len);
52 52
53void 53void
54xfs_alloc_busy_reuse(struct xfs_mount *mp, xfs_agnumber_t agno, 54xfs_extent_busy_reuse(struct xfs_mount *mp, xfs_agnumber_t agno,
55 xfs_agblock_t fbno, xfs_extlen_t flen, bool userdata); 55 xfs_agblock_t fbno, xfs_extlen_t flen, bool userdata);
56 56
57int 57int
58xfs_alloc_busy_ag_cmp(void *priv, struct list_head *a, struct list_head *b); 58xfs_extent_busy_ag_cmp(void *priv, struct list_head *a, struct list_head *b);
59 59
60static inline void xfs_alloc_busy_sort(struct list_head *list) 60static inline void xfs_extent_busy_sort(struct list_head *list)
61{ 61{
62 list_sort(NULL, list, xfs_alloc_busy_ag_cmp); 62 list_sort(NULL, list, xfs_extent_busy_ag_cmp);
63} 63}
64 64
65#endif /* __XFS_EXTENT_BUSY_H__ */ 65#endif /* __XFS_EXTENT_BUSY_H__ */