Export generic_file_checkpoint and generic_file_restore
PATCH 1/1 Export generic_file_checkpoint and generic_file_restore
From: Sukadev Bhattiprolu <[email protected]>
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-r/[email protected]>
--- checkpoint/files.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
checkpoint/files.c +3 -0
@@ -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;
Signature · 1 line
1.5.2.5
A message that is not in the archive (sent off-list or not yet received): 20090520022059.GA30168-r/[email protected]
Oren Laadan
AppliedApplied, thanks.
Oren.
Quoted 39 lines · Sukadev Bhattiprolu
From: Sukadev Bhattiprolu <[email protected]>
Date: Tue, 19 May 2009 19:18:25 -0700
Subject: [C/R][PATCH] Exportgeneric_file_checkpointandgeneric_file_restoreNeeded when filesystems are compiled as modules.
Signed-off-by Sukadev Bhattiprolu <sukadev-r/[email protected]>--- checkpoint/files.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)checkpoint/files.c +3
-0@@ -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;