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:
Basavanagowda Kanur 2009-04-29 02:16:51 +05:30 committed by Anand V. Avati
parent 2de8717247
commit d22b495e0c

View File

@ -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;