summaryrefslogtreecommitdiffstats
path: root/xlators/performance/quick-read/src/quick-read.h
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2018-08-11 19:18:32 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-08-13 11:39:45 +0000
commitcde1d393992f9b44954e0e790b3963fe4fa47e92 (patch)
tree9b45ad9d846bedd4577dba6db648f95b0fdfc26a /xlators/performance/quick-read/src/quick-read.h
parent212075b662820a2794f170d11b3a66734e00d6c3 (diff)
performance/quick-read: handle rollover of generation counter
Change-Id: I37a6e0efda430b70d03dd431c35bef23b3d16361 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Updates: bz#1512691
Diffstat (limited to 'xlators/performance/quick-read/src/quick-read.h')
-rw-r--r--xlators/performance/quick-read/src/quick-read.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.h b/xlators/performance/quick-read/src/quick-read.h
index 20f7307a9a7..0f816cd8431 100644
--- a/xlators/performance/quick-read/src/quick-read.h
+++ b/xlators/performance/quick-read/src/quick-read.h
@@ -38,6 +38,7 @@ struct qr_inode {
uint32_t ia_mtime_nsec;
uint32_t ia_ctime;
uint32_t ia_ctime_nsec;
+ uint32_t gen_rollover;
struct iatt buf;
struct timeval last_refresh;
struct list_head lru;
@@ -85,7 +86,7 @@ struct qr_private {
time_t last_child_down;
gf_lock_t lock;
struct qr_statistics qr_counter;
- gf_atomic_t generation;
+ gf_atomic_int32_t generation;
};
typedef struct qr_private qr_private_t;