Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308550
b: refs/heads/master
c: 84c53ab
h: refs/heads/master
v: v3
  • Loading branch information
Fred Isaman authored and Trond Myklebust committed Apr 27, 2012
1 parent eb429bc commit 96a1057
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 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: 584aa810b6240d88c28113a90c5029449814a3b5
refs/heads/master: 84c53ab5c093058c756dcef1879d38be6de90a3c
15 changes: 12 additions & 3 deletions trunk/fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,17 @@ static const struct rpc_call_ops nfs_commit_ops = {
.rpc_release = nfs_commit_release,
};

static int nfs_generic_commit_list(struct inode *inode, struct list_head *head,
int how)
{
int status;

status = pnfs_commit_list(inode, head, how);
if (status == PNFS_NOT_ATTEMPTED)
status = nfs_commit_list(inode, head, how);
return status;
}

int nfs_commit_inode(struct inode *inode, int how)
{
LIST_HEAD(head);
Expand All @@ -1536,9 +1547,7 @@ int nfs_commit_inode(struct inode *inode, int how)
if (res) {
int error;

error = pnfs_commit_list(inode, &head, how);
if (error == PNFS_NOT_ATTEMPTED)
error = nfs_commit_list(inode, &head, how);
error = nfs_generic_commit_list(inode, &head, how);
if (error < 0)
return error;
if (!may_wait)
Expand Down

0 comments on commit 96a1057

Please sign in to comment.