summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/inode.h
diff options
context:
space:
mode:
authorMohit Agrawal <moagrawal@redhat.com>2018-10-30 12:35:59 +0530
committerMohit Agrawal <moagrawal@redhat.com>2018-10-30 12:38:37 +0530
commit6cc573631df28eb357ffb006d1dbfe1bfd60aeba (patch)
tree76ddd3d63776c999c64fc077b832e82c8aa91179 /libglusterfs/src/inode.h
parentbae584148761ad98cd3d5c380f8cea1ff83aa8c3 (diff)
core: Use GF_ATOMIC ops to update inode->nlookup
fixes: bz#1644164 Change-Id: I0ac5aff565b3a30d5ff25ec5a3f20e0bda424a5d Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
Diffstat (limited to 'libglusterfs/src/inode.h')
-rw-r--r--libglusterfs/src/inode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/inode.h b/libglusterfs/src/inode.h
index 276a1f1577c..5745ea643a3 100644
--- a/libglusterfs/src/inode.h
+++ b/libglusterfs/src/inode.h
@@ -89,7 +89,7 @@ struct _inode {
inode_table_t *table; /* the table this inode belongs to */
uuid_t gfid;
gf_lock_t lock;
- uint64_t nlookup;
+ gf_atomic_t nlookup;
uint32_t fd_count; /* Open fd count */
uint32_t active_fd_count; /* Active open fd count */
uint32_t ref; /* reference count on this inode */