diff options
author | Ben Myers <bpm@sgi.com> | 2012-05-10 14:55:33 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-05-14 17:21:04 -0400 |
commit | e700a06c71dbbc0879a5d15881cca7b772282484 (patch) | |
tree | fdd09e1d5b44ec203b1da949f1a65ac2fb2428bb /fs/xfs | |
parent | 611c99468c7aa1a5c2bb6d46e7b5d8e53eecfefd (diff) |
xfs: make xfs_extent_busy_trim not static
Commit e459df5, 'xfs: move busy extent handling to it's own file'
moved some code from xfs_alloc.c into xfs_extent_busy.c for
convenience in userspace code merges. One of the functions moved is
xfs_extent_busy_trim (formerly xfs_alloc_busy_trim) which is defined
STATIC. Unfortunately this function is still used in xfs_alloc.c, and
this results in an undefined symbol in xfs.ko.
Make xfs_extent_busy_trim not static and add its prototype to
xfs_extent_busy.h.
Signed-off-by: Ben Myers <bpm@sgi.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_alloc.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_extent_busy.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_extent_busy.h | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/fs/xfs/xfs_alloc.c b/fs/xfs/xfs_alloc.c index 588496de0f93..229641fb8e67 100644 --- a/fs/xfs/xfs_alloc.c +++ b/fs/xfs/xfs_alloc.c | |||
@@ -47,8 +47,6 @@ STATIC int xfs_alloc_ag_vextent_near(xfs_alloc_arg_t *); | |||
47 | STATIC int xfs_alloc_ag_vextent_size(xfs_alloc_arg_t *); | 47 | STATIC int xfs_alloc_ag_vextent_size(xfs_alloc_arg_t *); |
48 | STATIC int xfs_alloc_ag_vextent_small(xfs_alloc_arg_t *, | 48 | STATIC int xfs_alloc_ag_vextent_small(xfs_alloc_arg_t *, |
49 | xfs_btree_cur_t *, xfs_agblock_t *, xfs_extlen_t *, int *); | 49 | xfs_btree_cur_t *, xfs_agblock_t *, xfs_extlen_t *, int *); |
50 | STATIC void xfs_extent_busy_trim(struct xfs_alloc_arg *, | ||
51 | xfs_agblock_t, xfs_extlen_t, xfs_agblock_t *, xfs_extlen_t *); | ||
52 | 50 | ||
53 | /* | 51 | /* |
54 | * Lookup the record equal to [bno, len] in the btree given by cur. | 52 | * Lookup the record equal to [bno, len] in the btree given by cur. |
diff --git a/fs/xfs/xfs_extent_busy.c b/fs/xfs/xfs_extent_busy.c index 9475bd989379..85e9f87a1a7c 100644 --- a/fs/xfs/xfs_extent_busy.c +++ b/fs/xfs/xfs_extent_busy.c | |||
@@ -345,7 +345,7 @@ restart: | |||
345 | * args->minlen no suitable extent could be found, and the higher level | 345 | * args->minlen no suitable extent could be found, and the higher level |
346 | * code needs to force out the log and retry the allocation. | 346 | * code needs to force out the log and retry the allocation. |
347 | */ | 347 | */ |
348 | STATIC void | 348 | void |
349 | xfs_extent_busy_trim( | 349 | xfs_extent_busy_trim( |
350 | struct xfs_alloc_arg *args, | 350 | struct xfs_alloc_arg *args, |
351 | xfs_agblock_t bno, | 351 | xfs_agblock_t bno, |
diff --git a/fs/xfs/xfs_extent_busy.h b/fs/xfs/xfs_extent_busy.h index 91f2fcbb2001..985412d65ba5 100644 --- a/fs/xfs/xfs_extent_busy.h +++ b/fs/xfs/xfs_extent_busy.h | |||
@@ -54,6 +54,10 @@ void | |||
54 | xfs_extent_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 | void | ||
58 | xfs_extent_busy_trim(struct xfs_alloc_arg *args, xfs_agblock_t bno, | ||
59 | xfs_extlen_t len, xfs_agblock_t *rbno, xfs_extlen_t *rlen); | ||
60 | |||
57 | int | 61 | int |
58 | xfs_extent_busy_ag_cmp(void *priv, struct list_head *a, struct list_head *b); | 62 | xfs_extent_busy_ag_cmp(void *priv, struct list_head *a, struct list_head *b); |
59 | 63 | ||