Skip to content

Commit

Permalink
Check for fh_desc.start in cache_inode_clean_internal
Browse files Browse the repository at this point in the history
Signed-off-by:  Rong zeng <rongzeng@us.ibm.com>
Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>
  • Loading branch information
Venkateswararao Jujjuri (JV) committed May 16, 2012
1 parent 248cac2 commit c9f8a9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Cache_inode/cache_inode_remove.c
Expand Up @@ -106,6 +106,9 @@ cache_inode_clean_internal(cache_entry_t *entry,
hash_buffer_t key, val;
hash_error_t rc = 0;

if (entry->fh_desc.start == 0)
return CACHE_INODE_SUCCESS;

key.pdata = entry->fh_desc.start;
key.len = entry->fh_desc.len;

Expand Down

0 comments on commit c9f8a9c

Please sign in to comment.