From patchwork Wed Jan 5 18:47:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Bottomley X-Patchwork-Id: 454461 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p05IlUC6025723 for ; Wed, 5 Jan 2011 18:47:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752250Ab1AESra (ORCPT ); Wed, 5 Jan 2011 13:47:30 -0500 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:49426 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751780Ab1AESr3 (ORCPT ); Wed, 5 Jan 2011 13:47:29 -0500 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 692098EE10C; Wed, 5 Jan 2011 10:47:29 -0800 (PST) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DemVkPPFN1uL; Wed, 5 Jan 2011 10:47:29 -0800 (PST) Received: from [192.168.2.10] (dagonet.hansenpartnership.com [76.243.235.53]) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id CE0DD8EE0DF; Wed, 5 Jan 2011 10:47:28 -0800 (PST) Subject: Re: NFS broken in latest 2.6.37-rcX From: James Bottomley To: Guy Martin Cc: "Carlos O'Donell" , linux-parisc@vger.kernel.org In-Reply-To: <20110105193105.0e3b0fec@borg.bxl.tuxicoman.be> References: <20101222223410.3a5f44c3@zombie> <1294248961.15356.30.camel@mulgrave.site> <20110105193105.0e3b0fec@borg.bxl.tuxicoman.be> Date: Wed, 05 Jan 2011 12:47:26 -0600 Message-ID: <1294253246.16957.7.camel@mulgrave.site> Mime-Version: 1.0 X-Mailer: Evolution 2.30.1.2 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 05 Jan 2011 18:47:31 +0000 (UTC) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 996dd89..37d7347 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1783,6 +1783,7 @@ static int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *sym memcpy(kaddr, symname, pathlen); if (pathlen < PAGE_SIZE) memset(kaddr + pathlen, 0, PAGE_SIZE - pathlen); + flush_kernel_dcache_page(page); kunmap_atomic(kaddr, KM_USER0); error = NFS_PROTO(dir)->symlink(dir, dentry, page, pathlen, &attr); diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 4435e5e..9a6bfea 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -205,6 +205,7 @@ static void nfs4_setup_readdir(u64 cookie, __be32 *verifier, struct dentry *dent readdir->pgbase = (char *)p - (char *)start; readdir->count -= readdir->pgbase; + flush_kernel_dcache_page(*readdir->pages); kunmap_atomic(start, KM_USER0); }