diff mbox

[RFC,1/2] Add unlocked version of igrab.

Message ID 20110328025423.GN13806@parisc-linux.org (mailing list archive)
State New, archived
Headers show

Commit Message

Matthew Wilcox March 28, 2011, 2:54 a.m. UTC
None
diff mbox

Patch

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++;
 	}