From: huanghua Date: Fri, 21 Jul 2006 06:13:09 +0000 (+0000) Subject: remove debug code; restore MAX_MD_SIZE to a smaller one X-Git-Tag: v1_8_0_110~486^2~1365 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=0d96df54cd571452288dd7c37f6e06e6d1fe50a0;p=fs%2Flustre-release.git remove debug code; restore MAX_MD_SIZE to a smaller one --- diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h index a759d89..0b50179 100644 --- a/lustre/include/lustre/lustre_idl.h +++ b/lustre/include/lustre/lustre_idl.h @@ -588,7 +588,7 @@ struct lov_mds_md_v1 { /* LOV EA mds/wire data (little-endian) */ struct lov_ost_data_v1 lmm_objects[0]; /* per-stripe data */ }; -#define MAX_MD_SIZE (sizeof(struct lov_mds_md) + 16 * sizeof(struct lov_ost_data)) +#define MAX_MD_SIZE (sizeof(struct lov_mds_md) + 4 * sizeof(struct lov_ost_data)) #define OBD_MD_FLID (0x00000001ULL) /* object ID */ #define OBD_MD_FLATIME (0x00000002ULL) /* access time */ diff --git a/lustre/mdt/mdt_open.c b/lustre/mdt/mdt_open.c index 703a4f4..266dc3b 100644 --- a/lustre/mdt/mdt_open.c +++ b/lustre/mdt/mdt_open.c @@ -127,7 +127,6 @@ static int mdt_mfd_open(struct mdt_thread_info *info, if (ma->ma_valid & MA_INODE) mdt_pack_attr2body(repbody, la, mdt_object_fid(o)); if (ma->ma_lmm_size && ma->ma_valid & MA_LOV) { - CERROR("LOVLOV size = %d\n", ma->ma_lmm_size); repbody->eadatasize = ma->ma_lmm_size; if (S_ISDIR(la->la_mode)) repbody->valid |= OBD_MD_FLDIREA;