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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx>
---
 include/linux/checkpoint_types.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/checkpoint_types.h b/include/linux/checkpoint_types.h
index fa57cdc..5cc11d9 100644
--- a/include/linux/checkpoint_types.h
+++ b/include/linux/checkpoint_types.h
@@ -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;
 
-- 
1.5.6.3

_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux