lkml.org 
[lkml]   [2008]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[RFC v2][PATCH 9/9] remove ->cksum field
From
Date

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);
_

\
 
 \ /
  Last update: 2008-08-20 21:31    [W:0.065 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site