diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-04-29 06:41:10 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-05-14 17:20:56 -0400 |
commit | 4ecbfe637cbcc0f093d1f295ef483f4e31e3987b (patch) | |
tree | 38faf345e1e43b85105dbfc7f6b3b4e7409f0cfb /fs/xfs/xfs_extent_busy.h | |
parent | efc27b52594e322d4c94e379489fa3690bf74739 (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.h | 20 |
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 | */ |
30 | struct xfs_busy_extent { | 30 | struct 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 | ||
41 | void | 41 | void |
42 | xfs_alloc_busy_insert(struct xfs_trans *tp, xfs_agnumber_t agno, | 42 | xfs_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 | ||
45 | void | 45 | void |
46 | xfs_alloc_busy_clear(struct xfs_mount *mp, struct list_head *list, | 46 | xfs_extent_busy_clear(struct xfs_mount *mp, struct list_head *list, |
47 | bool do_discard); | 47 | bool do_discard); |
48 | 48 | ||
49 | int | 49 | int |
50 | xfs_alloc_busy_search(struct xfs_mount *mp, xfs_agnumber_t agno, | 50 | xfs_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 | ||
53 | void | 53 | void |
54 | xfs_alloc_busy_reuse(struct xfs_mount *mp, xfs_agnumber_t agno, | 54 | xfs_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 | ||
57 | int | 57 | int |
58 | xfs_alloc_busy_ag_cmp(void *priv, struct list_head *a, struct list_head *b); | 58 | xfs_extent_busy_ag_cmp(void *priv, struct list_head *a, struct list_head *b); |
59 | 59 | ||
60 | static inline void xfs_alloc_busy_sort(struct list_head *list) | 60 | static 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__ */ |