diff options
-rw-r--r-- | libglusterfs/src/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index 6c527fc75a3..c64286d405f 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -754,6 +754,8 @@ inode_unlink (inode_t *inode, { if (!__is_inode_hashed (inode)) { unlink_inode = __inode_search (table, inode->ino); + if (unlink_inode == NULL) + unlink_inode = inode; } __inode_unlink (unlink_inode, parent, name); |