From: Jeff Layton Subject: Re: fsx-linux failing with latest cifs-2.6 git tree Date: Fri, 21 Nov 2008 20:50:36 -0500 Message-ID: <20081121205036.53869184@tleilax.poochiereds.net> References: <20081121105613.09a8cb8e@tleilax.poochiereds.net> <524f69650811210846q7502fd99m6f4d335bb6ac1b65@mail.gmail.com> <524f69650811211109w659e5decoa34a8e0f907772a3@mail.gmail.com> <524f69650811211113q4fffcc70of88cb85db531c358@mail.gmail.com> <1227296476.20845.8.camel@norville.austin.ibm.com> <524f69650811211218v78295682lcf6dce842327b097@mail.gmail.com> <524f69650811211238x3c81d899r225f46776aeb52f1@mail.gmail.com> <20081121175017.4e656475@tleilax.poochiereds.net> <1227308568.20845.30.camel@norville.austin.ibm.com> <20081121182505.4398606f@tleilax.poochiereds.net> <524f69650811211704o22bf9032n712fae744814545@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "Dave Kleikamp" , "Nick Piggin" , pbadari@us.ibm.com, linux-fsdevel , "linux-cifs-client@lists.samba.org" To: "Steve French" Return-path: Received: from mx2.redhat.com ([66.187.237.31]:37982 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757130AbYKVBur (ORCPT ); Fri, 21 Nov 2008 20:50:47 -0500 In-Reply-To: <524f69650811211704o22bf9032n712fae744814545@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, 21 Nov 2008 19:04:04 -0600 "Steve French" wrote: > Don't we also have to add the check for > if (mapping->host->clientCanCacheRead) before we decide to skip doing > the cifs_readpage_worker ... otherwise we aren't 100% sure of the file > size on the server (although it is probably right since we just did > revalidate) > > so something like > > if (mapping->host->clientCanCacheRead && (page_start >= i_size || > (offset == 0 && (pos + len) >= i_size))) > That certainly would be safer. I'll plan to add that in once I'm more clear on the page flag handling here... -- Jeff Layton