From: shadow Date: Mon, 21 Jul 2008 08:27:42 +0000 (+0000) Subject: don't swab ost objects in response about directory, because X-Git-Tag: v1_8_0_110~390 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f0f5e88308d4cafb56382123e39558d275bdd333;p=fs%2Flustre-release.git don't swab ost objects in response about directory, because this not exist. Branch b1_8 b=16318 i=johann i=deen --- diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 396b9fb..ef31788 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -37,6 +37,13 @@ tbd Sun Microsystems, Inc. For more information, please refer to bugzilla 13904. Severity : normal +Bugzilla : 16318 +Frequency : rare, on PPC clients +Description: not swab ost objects in response about directory, because + this not exist. +Details : bug similar bug 14856, but in different function. + +Severity : normal Bugzilla : 16037 Description: Client runs out of low memory Details : Consider only lowmem when counting initial number of llap pages diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 2487e6a..616bf76 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -2056,7 +2056,10 @@ int ll_lov_getstripe_ea_info(struct inode *inode, const char *filename, if (LOV_MAGIC != cpu_to_le32(LOV_MAGIC)) { if (lmm->lmm_magic == cpu_to_le32(LOV_MAGIC)) { lustre_swab_lov_user_md((struct lov_user_md *)lmm); - lustre_swab_lov_user_md_objects((struct lov_user_md *)lmm); + /* if function called for directory - we should be + * avoid swab not existent lsm objects */ + if (S_ISREG(body->mode)) + lustre_swab_lov_user_md_objects((struct lov_user_md *)lmm); } else if (lmm->lmm_magic == cpu_to_le32(LOV_MAGIC_JOIN)) { lustre_swab_lov_user_md_join((struct lov_user_md_join *)lmm); }