@@ -44,7 +44,6 @@ struct nfs_local_fsync_ctx {
44
44
struct work_struct work ;
45
45
struct completion * done ;
46
46
};
47
- static void nfs_local_fsync_work (struct work_struct * work );
48
47
49
48
static bool localio_enabled __read_mostly = true;
50
49
module_param (localio_enabled , bool , 0644 );
@@ -678,21 +677,6 @@ nfs_local_release_commit_data(struct nfsd_file *localio,
678
677
call_ops -> rpc_release (data );
679
678
}
680
679
681
- static struct nfs_local_fsync_ctx *
682
- nfs_local_fsync_ctx_alloc (struct nfs_commit_data * data ,
683
- struct nfsd_file * localio , gfp_t flags )
684
- {
685
- struct nfs_local_fsync_ctx * ctx = kmalloc (sizeof (* ctx ), flags );
686
-
687
- if (ctx != NULL ) {
688
- ctx -> localio = localio ;
689
- ctx -> data = data ;
690
- INIT_WORK (& ctx -> work , nfs_local_fsync_work );
691
- ctx -> done = NULL ;
692
- }
693
- return ctx ;
694
- }
695
-
696
680
static void
697
681
nfs_local_fsync_ctx_free (struct nfs_local_fsync_ctx * ctx )
698
682
{
@@ -717,6 +701,21 @@ nfs_local_fsync_work(struct work_struct *work)
717
701
nfs_local_fsync_ctx_free (ctx );
718
702
}
719
703
704
+ static struct nfs_local_fsync_ctx *
705
+ nfs_local_fsync_ctx_alloc (struct nfs_commit_data * data ,
706
+ struct nfsd_file * localio , gfp_t flags )
707
+ {
708
+ struct nfs_local_fsync_ctx * ctx = kmalloc (sizeof (* ctx ), flags );
709
+
710
+ if (ctx != NULL ) {
711
+ ctx -> localio = localio ;
712
+ ctx -> data = data ;
713
+ INIT_WORK (& ctx -> work , nfs_local_fsync_work );
714
+ ctx -> done = NULL ;
715
+ }
716
+ return ctx ;
717
+ }
718
+
720
719
int nfs_local_commit (struct nfsd_file * localio ,
721
720
struct nfs_commit_data * data ,
722
721
const struct rpc_call_ops * call_ops , int how )
0 commit comments