Fix total byte read/write count for large checkpoint images
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.
Signed-off-by Matt Helsley <matthltc-r/[email protected]>
--- include/linux/checkpoint_types.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/checkpoint_types.h +1 -1
@@ -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]
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.
Signed-off-by Matt Helsley <matthltc-r/[email protected]>--- include/linux/checkpoint_types.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)include/linux/checkpoint_types.h +1
-1@@ -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;