Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101894
b: refs/heads/master
c: f3d47a3
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Jul 9, 2008
1 parent e8a2572 commit d1b06c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b4aae7aad162ad175ba8a65708332f888066b26
refs/heads/master: f3d47a3a6a1484a93c8cfe1e8c8d4399c95199c7
11 changes: 4 additions & 7 deletions trunk/fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,13 +584,6 @@ static struct nfs_page * nfs_update_request(struct nfs_open_context* ctx,
/* Loop over all inode entries and see if we find
* A request for the page we wish to update
*/
if (new) {
if (radix_tree_preload(GFP_NOFS)) {
nfs_release_request(new);
return ERR_PTR(-ENOMEM);
}
}

spin_lock(&inode->i_lock);
req = nfs_page_find_request_locked(page);
if (req) {
Expand Down Expand Up @@ -630,6 +623,10 @@ static struct nfs_page * nfs_update_request(struct nfs_open_context* ctx,
new = nfs_create_request(ctx, inode, page, offset, bytes);
if (IS_ERR(new))
return new;
if (radix_tree_preload(GFP_NOFS)) {
nfs_release_request(new);
return ERR_PTR(-ENOMEM);
}
}

/* We have a request for our page.
Expand Down

0 comments on commit d1b06c1

Please sign in to comment.