summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/locks/src')
-rw-r--r--xlators/features/locks/src/common.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c
index d87aec229ed..675fb0235be 100644
--- a/xlators/features/locks/src/common.c
+++ b/xlators/features/locks/src/common.c
@@ -51,15 +51,16 @@ __insert_and_merge (pl_inode_t *pl_inode, posix_lock_t *lock,
pl_inode_t *
pl_inode_get (xlator_t *this, inode_t *inode)
{
+ uint64_t tmp_pl_inode = 0;
pl_inode_t *pl_inode = NULL;
mode_t st_mode = 0;
int ret = 0;
- ret = inode_ctx_get (inode, this,
- (uint64_t *)(&pl_inode));
- if (ret == 0)
+ ret = inode_ctx_get (inode, this,&tmp_pl_inode);
+ if (ret == 0) {
+ pl_inode = (pl_inode_t *)(long)tmp_pl_inode;
goto out;
-
+ }
pl_inode = CALLOC (1, sizeof (*pl_inode));
if (!pl_inode) {
gf_log (this->name, GF_LOG_ERROR,