[Devel] Re: [C/R][PATCH] Export generic_file_checkpoint and generic_file_restore

Oren Laadan orenl at cs.columbia.edu
Tue May 19 22:30:45 PDT 2009


Applied, thanks.

Oren.

Sukadev Bhattiprolu wrote:
> From: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
> Date: Tue, 19 May 2009 19:18:25 -0700
> Subject: [C/R][PATCH] Export generic_file_checkpoint and generic_file_restore
> 
> Needed when filesystems are compiled as modules.
> 
> Signed-off-by: Sukadev Bhattiprolu <sukadev at us.ibm.com>
> ---
>  checkpoint/files.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/checkpoint/files.c b/checkpoint/files.c
> index 7da2cbf..cfea034 100644
> --- a/checkpoint/files.c
> +++ b/checkpoint/files.c
> @@ -11,6 +11,7 @@
>  /* default debug level for output */
>  #define CKPT_DFLAG  CKPT_DFILE
>  
> +#include <linux/module.h>
>  #include <linux/kernel.h>
>  #include <linux/sched.h>
>  #include <linux/file.h>
> @@ -182,6 +183,7 @@ int generic_file_checkpoint(struct ckpt_ctx *ctx, struct file *file)
>  	ckpt_hdr_put(ctx, h);
>  	return ret;
>  }
> +EXPORT_SYMBOL(generic_file_checkpoint);
>  
>  /* checkpoint_file - dump the state of a given file pointer */
>  int checkpoint_file(struct ckpt_ctx *ctx, void *ptr)
> @@ -401,6 +403,7 @@ struct file *generic_file_restore(struct ckpt_ctx *ctx,
>  	}
>  	return file;
>  }
> +EXPORT_SYMBOL(generic_file_restore);
>  
>  struct restore_file_ops {
>  	char *file_name;
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list