Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Mon, 9 Oct 2006 03:56:34 +0000 (03:56 +0000)
committerwangdi <wangdi>
Mon, 9 Oct 2006 03:56:34 +0000 (03:56 +0000)
update lmv slave object size.

lustre/lmv/lmv_intent.c

index 593fd36..6ecfd08 100644 (file)
@@ -941,8 +941,7 @@ int lmv_revalidate_slaves(struct obd_export *exp, struct ptlrpc_request **reqp,
                 LASSERT(body);
 
 update:
-                obj->lo_inodes[i].li_size = (MAX_HASH_SIZE/obj->lo_objcount) *
-                        (i + 1);
+                obj->lo_inodes[i].li_size = body->size;
 
                 CDEBUG(D_OTHER, "fresh: %lu\n",
                        (unsigned long)obj->lo_inodes[i].li_size);