Whamcloud - gitweb
LU-744 clio: save memory allocations for cl_page
[fs/lustre-release.git] / lustre / osc / osc_object.c
index 72ba12b..2bf87db 100644 (file)
@@ -98,6 +98,8 @@ static int osc_object_init(const struct lu_env *env, struct lu_object *obj,
        cfs_atomic_set(&osc->oo_nr_writes, 0);
        spin_lock_init(&osc->oo_lock);
 
+       cl_object_page_init(lu2cl(obj), sizeof(struct osc_page));
+
        return 0;
 }