cluster/unify - unify_forget() should not try to access inode->ctx, if inode->st_mode is not set.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
This commit is contained in:
parent
2de8717247
commit
d22b495e0c
@ -4119,7 +4119,7 @@ unify_forget (xlator_t *this,
|
||||
int16_t *list = NULL;
|
||||
uint64_t tmp_list = 0;
|
||||
|
||||
if (!S_ISDIR(inode->st_mode)) {
|
||||
if (inode->st_mode && (!S_ISDIR(inode->st_mode))) {
|
||||
inode_ctx_get (inode, this, &tmp_list);
|
||||
if (tmp_list) {
|
||||
list = (int16_t *)(long)tmp_list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user