From: Dan Smith Subject: [PATCH 4/5] Export fill_fname() as ckpt_fill_fname() Date: Mon, 10 Aug 2009 08:32:58 -0700 Message-ID: <1249918379-29414-5-git-send-email-danms@us.ibm.com> References: <1249918379-29414-1-git-send-email-danms@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1249918379-29414-1-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.org Acked-by: Serge Hallyn Signed-off-by: Dan Smith --- checkpoint/files.c | 8 ++++---- include/linux/checkpoint.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/checkpoint/files.c b/checkpoint/files.c index 78cd9b7..7aecac9 100644 --- a/checkpoint/files.c +++ b/checkpoint/files.c @@ -28,14 +28,14 @@ */ /** - * fill_fname - return pathname of a given file + * ckpt_fill_fname - return pathname of a given file * @path: path name * @root: relative root * @buf: buffer for pathname * @len: buffer length (in) and pathname length (out) */ -static char *fill_fname(struct path *path, struct path *root, - char *buf, int *len) +char *ckpt_fill_fname(struct path *path, struct path *root, + char *buf, int *len) { struct path tmp = *root; char *fname; @@ -79,7 +79,7 @@ int checkpoint_fname(struct ckpt_ctx *ctx, struct path *path, struct path *root) if (!buf) return -ENOMEM; - fname = fill_fname(path, root, buf, &flen); + fname = ckpt_fill_fname(path, root, buf, &flen); if (!IS_ERR(fname)) ret = ckpt_write_obj_type(ctx, fname, flen, CKPT_HDR_FILE_NAME); diff --git a/include/linux/checkpoint.h b/include/linux/checkpoint.h index a6935b3..c3c9436 100644 --- a/include/linux/checkpoint.h +++ b/include/linux/checkpoint.h @@ -72,6 +72,8 @@ extern int ckpt_read_string(struct ckpt_ctx *ctx, char **str, int max); extern void *ckpt_read_obj_type(struct ckpt_ctx *ctx, int len, int type); extern void *ckpt_read_buf_type(struct ckpt_ctx *ctx, int len, int type); extern int ckpt_read_consume(struct ckpt_ctx *ctx, int len, int type); +extern char *ckpt_fill_fname(struct path *path, struct path *root, + char *buf, int *len); /* ckpt kflags */ #define ckpt_set_ctx_kflag(__ctx, __kflag) \ -- 1.6.2.5