diff options
author | Mohit Agrawal <moagrawal@redhat.com> | 2018-12-10 11:14:04 +0530 |
---|---|---|
committer | Xavi Hernandez <xhernandez@redhat.com> | 2019-01-15 11:52:22 +0000 |
commit | 2261e444a47ffffb5d64305efceee1d5a734cd75 (patch) | |
tree | 06f85f6e3f4ba6c81a62347ad6b4102f6ec2f847 /xlators/storage/posix/src/posix.h | |
parent | f578cdad23d8a8428a7012f777f4987507f19ea4 (diff) |
posix: Convert several posix_private members to gf_atomic
Change-Id: I629698d8ddf6f15428880bdc1501d36bc37b8ebb
fixes: bz#1657607
Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 5a3fd29cc09..d5ba08ca593 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -152,9 +152,9 @@ struct posix_private { time_t last_landfill_check; int32_t janitor_sleep_duration; - int64_t read_value; /* Total read, from init */ - int64_t write_value; /* Total write, from init */ - int64_t nr_files; + gf_atomic_t read_value; /* Total read, from init */ + gf_atomic_t write_value; /* Total write, from init */ + gf_atomic_t nr_files; /* In some cases, two exported volumes may reside on the same partition on the server. Sending statvfs info for both |