Return-Path: linux-nfs-owner@vger.kernel.org Received: from natasha.panasas.com ([67.152.220.90]:54519 "EHLO natasha.panasas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766Ab2GZMQS (ORCPT ); Thu, 26 Jul 2012 08:16:18 -0400 Message-ID: <50113504.3060607@panasas.com> Date: Thu, 26 Jul 2012 15:16:04 +0300 From: Boaz Harrosh MIME-Version: 1.0 To: Peng Tao CC: linuxnfs , Benny Halevy Subject: Re: pnfs LD partial sector write References: <500FCA3A.5020606@panasas.com> <5010573F.4000901@panasas.com> <5010F1DF.3060905@panasas.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org List-ID: 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?