Whamcloud - gitweb
- numerous fixes from b_cray, b_1_4 and Andreas' comments.
[fs/lustre-release.git] / lustre / lvfs / llog_lvfs.c
index 3a9dd92..a72b329 100644 (file)
@@ -915,7 +915,7 @@ static int llog_lvfs_destroy(struct llog_handle *loghandle)
                         down(&ctxt->loc_objects_dir->d_inode->i_sem);
                         fdentry = lookup_one_len(id_name, ctxt->loc_objects_dir,
                                                  id_len);
-                        if (fdentry == NULL || fdentry->d_inode == NULL) {
+                        if (IS_ERR(fdentry) || fdentry->d_inode == NULL) {
                                 CERROR("destroy non_existent object %s\n", 
                                        id_name);
                                 GOTO(out_err, rc = IS_ERR(fdentry) ?