Skip to contentSkip to conversation

Fix total byte read/write count for large checkpoint images

PATCH In review Matt Helsley 2 participants 2 messages Oct 23, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix total byte read/write count for large checkpoint images

Though currently unused, total relies on checkpoint images being less than 2GB. Since we've had 64-bit archs and LARGEFILE support for some time it's not totally unreasonable to make this a 64-bit quantity.

---
 include/linux/checkpoint_types.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/checkpoint_types.h +1 -1
index fa57cdc..5cc11d9 100644
@@ -48,7 +48,7 @@ struct ckpt_ctx {
 	unsigned long oflags;	/* restart: uflags from checkpoint */
 
 	struct file *file;	/* input/output file */
-	int total;		/* total read/written */
+	loff_t total;		/* total read/written */
 
 	atomic_t refcount;
 
Signature · 1 line
1.5.6.3

A message that is not in the archive (sent off-list or not yet received): 1256315918-3378-1-git-send-email-matthltc-r/[email protected]

#2 lore raw

Pulled, thanks.

Quoted 22 lines · Matt Helsley

Though currently unused, total relies on checkpoint images being less than 2GB. Since we've had 64-bit archs and LARGEFILE support for some time it's not totally unreasonable to make this a 64-bit quantity.

---
 include/linux/checkpoint_types.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/checkpoint_types.h +1 -1
index fa57cdc..5cc11d9 100644
@@ -48,7 +48,7 @@ struct ckpt_ctx {
 	unsigned long oflags;	/* restart: uflags from checkpoint */
 
 	struct file *file;	/* input/output file */
-	int total;		/* total read/written */
+	loff_t total;		/* total read/written */
 
 	atomic_t refcount;