diff options
author | David Howells <dhowells@redhat.com> | 2014-05-21 15:55:26 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-05-23 13:05:22 +0100 |
commit | 656f88ddf1ec3abf2cd20b8b4028c44e8e95f56d (patch) | |
tree | a61e9fc6abc26d076d51615f6933ca1bcf03154f /fs/afs/internal.h | |
parent | 150a6b478982475c60fa25b7060ab990ece5483d (diff) | |
download | linux-656f88ddf1ec3abf2cd20b8b4028c44e8e95f56d.tar.gz linux-656f88ddf1ec3abf2cd20b8b4028c44e8e95f56d.tar.bz2 linux-656f88ddf1ec3abf2cd20b8b4028c44e8e95f56d.zip |
AFS: Pass an afs_call* to call->async_workfn() instead of a work_struct*
call->async_workfn() can take an afs_call* arg rather than a work_struct* as
the functions assigned there are now called from afs_async_workfn() which has
to call container_of() anyway.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Nathaniel Wesley Filardo <nwf@cs.jhu.edu>
Reviewed-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/afs/internal.h')
-rw-r--r-- | fs/afs/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/internal.h b/fs/afs/internal.h index be75b500005d..590b55f46d61 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h @@ -75,7 +75,7 @@ struct afs_call { const struct afs_call_type *type; /* type of call */ const struct afs_wait_mode *wait_mode; /* completion wait mode */ wait_queue_head_t waitq; /* processes awaiting completion */ - work_func_t async_workfn; + void (*async_workfn)(struct afs_call *call); /* asynchronous work function */ struct work_struct async_work; /* asynchronous work processor */ struct work_struct work; /* actual work processor */ struct sk_buff_head rx_queue; /* received packets */ |