From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: [PATCH 05/11] DIO: Separate map_bh from dio v2 Date: Mon, 08 Aug 2011 14:11:44 -0400 Message-ID: References: <1312259893-4548-1-git-send-email-andi@firstfloor.org> <1312259893-4548-6-git-send-email-andi@firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, hch@infradead.org, Andi Kleen To: Andi Kleen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44236 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752389Ab1HHSLx (ORCPT ); Mon, 8 Aug 2011 14:11:53 -0400 In-Reply-To: <1312259893-4548-6-git-send-email-andi@firstfloor.org> (Andi Kleen's message of "Mon, 1 Aug 2011 21:38:07 -0700") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Andi Kleen writes: > From: Andi Kleen > > Only a single b_private field in the map_bh buffer head is needed after > the submission path. Move map_bh separately to avoid storing > this information in the long term slab. > > This avoids the weird 104 byte hole in struct dio_submit which also needed > to be memseted early. > > v2: b_private->private (hch) > Signed-off-by: Andi Kleen > @@ -1045,6 +1051,7 @@ direct_io_worker(int rw, struct kiocb *iocb, struct inode *inode, > ssize_t ret = 0; > ssize_t ret2; > size_t bytes; > + struct buffer_head map_bh = { 0, }; So long as that zeroes the entire struct (seems to), I'm okay with this patch. Cheers, Jeff