#include <obd_class.h>
#include <lustre_fid.h>
#include <lustre_mds.h>
-#include <lustre_idl.h>
+#include <lustre/lustre_idl.h>
#include "cmm_internal.h"
#include "mdc_internal.h"
#define CMM_NO_SPLITTABLE 2
enum {
- SPLIT_SIZE = 12*1024
+ SPLIT_SIZE = 64*1024
};
static inline struct lu_fid* cmm2_fid(struct cmm_object *obj)
{
struct lu_dirpage *dp;
struct lu_dirent *ent;
- int rc = 0, i;
+ int rc = 0;
ENTRY;
kmap(rdpg->rp_pages[0]);
}
*len = CFS_PAGE_SIZE;
unmap:
- kunmap(rdpg->rp_pages[i]);
+ kunmap(rdpg->rp_pages[0]);
RETURN(rc);
}
LASSERT(le32_to_cpu(next_dp->ldp_hash_start) >= seg_end);
dp->ldp_hash_end = next_dp->ldp_hash_start;
kunmap(page);
- CDEBUG(D_WARNING,"reset h_end %x for split obj"DFID"o_count %d index %d\n",
+ CDEBUG(D_INFO,"reset h_end %x for split obj"DFID"o_count %d index %d\n",
le32_to_cpu(dp->ldp_hash_end), PFID(&rid), obj->lo_objcount,
index);
cleanup:
struct mdd_device *mdd = mdo2mdd(obj);
struct thandle *handle;
struct lov_mds_md *lmm = NULL;
- int rc = 0, lmm_size = 0, max_size;
+ int rc = 0, lmm_size = 0, max_size = 0;
struct lu_attr *la_copy = &mdd_ctx_info(ctxt)->mti_la_for_fix;
ENTRY;