[Devel] [RFC v2][PATCH 9/9] remove ->cksum field

Dave Hansen dave at linux.vnet.ibm.com
Wed Aug 20 12:26:08 PDT 2008


This is unused so far.  We'll add it back later.

---

 oren-cr.git-dave/checkpoint/checkpoint.c |    2 --
 oren-cr.git-dave/checkpoint/ckpt_hdr.h   |    1 -
 oren-cr.git-dave/checkpoint/restart.c    |    3 +--
 3 files changed, 1 insertion(+), 5 deletions(-)

diff -puN checkpoint/checkpoint.c~remove-unused-cksum checkpoint/checkpoint.c
--- oren-cr.git/checkpoint/checkpoint.c~remove-unused-cksum	2008-08-20 12:12:51.000000000 -0700
+++ oren-cr.git-dave/checkpoint/checkpoint.c	2008-08-20 12:12:51.000000000 -0700
@@ -125,8 +125,6 @@ static int cr_write_tail(struct cr_ctx *
 	h.id = 0;
 
 	hh->magic = CR_HEADER_MAGIC;
-	hh->cksum[0] = 1;
-       	hh->cksum[1] = 1;	/* TBD ... */
 
 	ret = cr_write_obj(ctx, &h, hh);
 	kfree(hh);
diff -puN checkpoint/ckpt_hdr.h~remove-unused-cksum checkpoint/ckpt_hdr.h
--- oren-cr.git/checkpoint/ckpt_hdr.h~remove-unused-cksum	2008-08-20 12:12:51.000000000 -0700
+++ oren-cr.git-dave/checkpoint/ckpt_hdr.h	2008-08-20 12:12:51.000000000 -0700
@@ -43,7 +43,6 @@ struct cr_hdr_head {
 
 struct cr_hdr_tail {
 	__u32 magic;
-	__u32 cksum[2];
 };
 
 struct cr_hdr_task {
diff -puN checkpoint/restart.c~remove-unused-cksum checkpoint/restart.c
--- oren-cr.git/checkpoint/restart.c~remove-unused-cksum	2008-08-20 12:12:51.000000000 -0700
+++ oren-cr.git-dave/checkpoint/restart.c	2008-08-20 12:12:51.000000000 -0700
@@ -113,8 +113,7 @@ static int cr_read_tail(struct cr_ctx *c
 	if (ret < 0)
 		return ret;
 
-	if (hh->magic != CR_HEADER_MAGIC ||
-	    hh->cksum[0] != 1 || hh->cksum[1] != 1)
+	if (hh->magic != CR_HEADER_MAGIC)
 		return -EINVAL;
 
 	kfree(hh);
_
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list