Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752576AbcC0UdJ (ORCPT ); Sun, 27 Mar 2016 16:33:09 -0400 Received: from ns.horizon.com ([71.41.210.147]:26005 "HELO ns.horizon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750796AbcC0UdH (ORCPT ); Sun, 27 Mar 2016 16:33:07 -0400 Date: 27 Mar 2016 16:33:04 -0400 Message-ID: <20160327203304.9695.qmail@ns.horizon.com> From: "George Spelvin" To: ebiggers3@gmail.com Subject: Re: Bloat caused by unnecessary calls to compound_head()? Cc: kirill@shutemov.name, linux@horizon.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 165 Lines: 3 Could you just mark compound_head __pure? That would tell the compiler that it's safe to re-use the return value as long as there is no memory mutation in between.