From patchwork Mon Mar 28 02:54:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 667161 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 p2S2sQJ3009047 for ; Mon, 28 Mar 2011 02:54:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753381Ab1C1CyZ (ORCPT ); Sun, 27 Mar 2011 22:54:25 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:46950 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753324Ab1C1CyZ (ORCPT ); Sun, 27 Mar 2011 22:54:25 -0400 Received: by mail.parisc-linux.org (Postfix, from userid 26919) id D7C07494003; Sun, 27 Mar 2011 20:54:23 -0600 (MDT) Date: Sun, 27 Mar 2011 20:54:23 -0600 From: Matthew Wilcox To: Ryan Mallon Cc: viro@zeniv.linux.org.uk, dchinner@redhat.com, Trond.Myklebust@netapp.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [RFC PATCH 1/2] Add unlocked version of igrab. Message-ID: <20110328025423.GN13806@parisc-linux.org> References: <1301277361-9453-1-git-send-email-ryan@bluewatersys.com> <1301277361-9453-2-git-send-email-ryan@bluewatersys.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1301277361-9453-2-git-send-email-ryan@bluewatersys.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 28 Mar 2011 02:54:27 +0000 (UTC) diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 85d7525..330cef3 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -390,7 +390,7 @@ static int nfs_inode_add_request(struct inode *inode, struct nfs_page *req) error = radix_tree_insert(&nfsi->nfs_page_tree, req->wb_index, req); BUG_ON(error); if (!nfsi->npages) { - igrab(inode); + __iget(inode); if (nfs_have_delegation(inode, FMODE_WRITE)) nfsi->change_attr++; }