Return-Path: linux-nfs-owner@vger.kernel.org Received: from mail-gh0-f174.google.com ([209.85.160.174]:32833 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040Ab2GZN5f (ORCPT ); Thu, 26 Jul 2012 09:57:35 -0400 Received: by ghrr11 with SMTP id r11so1983045ghr.19 for ; Thu, 26 Jul 2012 06:57:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <50113504.3060607@panasas.com> References: <500FCA3A.5020606@panasas.com> <5010573F.4000901@panasas.com> <5010F1DF.3060905@panasas.com> <50113504.3060607@panasas.com> From: Peng Tao Date: Thu, 26 Jul 2012 21:57:13 +0800 Message-ID: Subject: Re: pnfs LD partial sector write To: Boaz Harrosh Cc: linuxnfs , Benny Halevy Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: On Thu, Jul 26, 2012 at 8:16 PM, Boaz Harrosh wrote: > On 07/26/2012 11:25 AM, Peng Tao wrote: > >> For these two sectors, I need to allocate two pages... Just look at >> struct bio_vec. >> > > > NO! I know all about bio_vecs > > You need 1024 bytes, and 2 x one entry BIOs which is a few bytes, where > did you get the "two pages" from? > What do you put int bio_vec->bv_page? Even if you just use 512 bytes of a page, it is still allocated page. -- Thanks, Tao