Whamcloud - gitweb
- more fixes about lmv_put_inode()
authoryury <yury>
Sun, 14 Nov 2004 11:33:18 +0000 (11:33 +0000)
committeryury <yury>
Sun, 14 Nov 2004 11:33:18 +0000 (11:33 +0000)
lustre/llite/llite_lib.c
lustre/lmv/lmv_obd.c

index 6cd5960..80f368e 100644 (file)
@@ -1381,14 +1381,17 @@ void ll_put_inode(struct inode *inode)
         int rc;
         ENTRY;
 
-        /* notifying metadata target of putting inode. */
+        /* 
+         * notifying metadata target that any in memory data assosiated 
+         * with object @id should be removed. 
+         */
         if (atomic_read(&inode->i_count) == 1) {
                 ll_inode2id(&id, inode);
 
                 rc = md_put_inode(sbi->ll_lmv_exp, &id);
                 if (rc) {
-                        CERROR("md_put_inode() failed, "
-                               "error %d.\n", rc);
+                        CDEBUG("md_put_inode() failed, error %d\n", 
+                               rc);
                 }
         }
 
index bd6606a..f5262a9 100644 (file)
@@ -1467,12 +1467,7 @@ int lmv_unlink_slaves(struct obd_export *exp, struct mdc_op_data *data,
 int lmv_put_inode(struct obd_export *exp, struct lustre_id *id)
 {
         ENTRY;
-
-        if (!lmv_delete_obj(exp, id)) {
-                CDEBUG(D_OTHER, "object "DLID4" is not found.\n",
-                       OLID4(id));
-        }
-        
+        lmv_delete_obj(exp, id);
         RETURN(0);
 }