diff options
author | David Teigland <teigland@redhat.com> | 2008-02-06 00:35:45 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2008-02-06 00:35:45 -0600 |
commit | e5dae548b0b5397e070de793be925cfc5813ad95 (patch) | |
tree | 5ad4c94cbeab745fc1bac3426423c405971c6796 /fs/dlm/ast.c | |
parent | cb79f1998d89821a4dbac47f59a46ee3fbbf3c61 (diff) | |
download | linux-e5dae548b0b5397e070de793be925cfc5813ad95.tar.gz linux-e5dae548b0b5397e070de793be925cfc5813ad95.tar.bz2 linux-e5dae548b0b5397e070de793be925cfc5813ad95.zip |
dlm: proper types for asts and basts
Use proper types for ast and bast functions, and use
consistent type for ast param.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/ast.c')
-rw-r--r-- | fs/dlm/ast.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c index 6308122890ca..8bf31e3fbf01 100644 --- a/fs/dlm/ast.c +++ b/fs/dlm/ast.c @@ -39,7 +39,6 @@ void dlm_add_ast(struct dlm_lkb *lkb, int type) dlm_user_add_ast(lkb, type); return; } - DLM_ASSERT(lkb->lkb_astaddr != DLM_FAKE_USER_AST, dlm_print_lkb(lkb);); spin_lock(&ast_queue_lock); if (!(lkb->lkb_ast_type & (AST_COMP | AST_BAST))) { @@ -58,8 +57,8 @@ static void process_asts(void) struct dlm_ls *ls = NULL; struct dlm_rsb *r = NULL; struct dlm_lkb *lkb; - void (*cast) (long param); - void (*bast) (long param, int mode); + void (*cast) (void *astparam); + void (*bast) (void *astparam, int mode); int type = 0, found, bmode; for (;;) { @@ -83,8 +82,8 @@ static void process_asts(void) if (!found) break; - cast = lkb->lkb_astaddr; - bast = lkb->lkb_bastaddr; + cast = lkb->lkb_astfn; + bast = lkb->lkb_bastfn; bmode = lkb->lkb_bastmode; if ((type & AST_COMP) && cast) |