Skip to contentSkip to conversation

Export generic_file_checkpoint and generic_file_restore

PATCH Applied Sukadev Bhattiprolu 2 participants 2 messages May 20, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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.

---
 checkpoint/files.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
checkpoint/files.c +3 -0
index 7da2cbf..cfea034 100644
@@ -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]

Applied
#2 lore raw

Applied, 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] Export generic_file_checkpoint and generic_file_restore

Needed when filesystems are compiled as modules.

---
 checkpoint/files.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
checkpoint/files.c +3 -0
index 7da2cbf..cfea034 100644
@@ -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;