From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harvey Harrison Subject: Re: [PATCH] UBIFS: endian handling fixes and annotations Date: Sat, 22 Nov 2008 19:21:29 -0800 Message-ID: <1227410489.6117.1.camel@brick> References: <1227287970-14684-1-git-send-email-dedekind@infradead.org> <1227287970-14684-3-git-send-email-dedekind@infradead.org> <20081122192747.GB21433@Chamillionaire.breakpoint.cc> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Artem Bityutskiy , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: Sebastian Andrzej Siewior Return-path: In-Reply-To: <20081122192747.GB21433@Chamillionaire.breakpoint.cc> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sat, 2008-11-22 at 20:27 +0100, Sebastian Andrzej Siewior wrote: > * Artem Bityutskiy | 2008-11-21 19:19:24 [+0200]: > > > save_flags = mst->flags; > >- mst->flags = cpu_to_le32(le32_to_cpu(mst->flags) | UBIFS_MST_RCVRY); > >+ mst->flags |= cpu_to_le32(UBIFS_MST_RCVRY); > > another micro optimisation would be to use __constant_cpu_to_le32() > Nope, no difference, cpu_to_le32 does constant-detection these days and so there ends up being no difference. Harvey