diff options
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 0de19f413f92..628d9a69d0a2 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -595,12 +595,9 @@ nfs_scan_commit(struct inode *inode, struct list_head *dst) | |||
595 | spin_lock(&inode->i_lock); | 595 | spin_lock(&inode->i_lock); |
596 | if (nfsi->ncommit > 0) { | 596 | if (nfsi->ncommit > 0) { |
597 | const int max = INT_MAX; | 597 | const int max = INT_MAX; |
598 | int pnfs_ret; | ||
599 | 598 | ||
600 | ret = nfs_scan_commit_list(&nfsi->commit_list, dst, max); | 599 | ret = nfs_scan_commit_list(&nfsi->commit_list, dst, max); |
601 | pnfs_ret = pnfs_scan_commit_lists(inode, max - ret); | 600 | ret += pnfs_scan_commit_lists(inode, max - ret); |
602 | ret += pnfs_ret; | ||
603 | nfsi->ncommit -= ret; | ||
604 | } | 601 | } |
605 | spin_unlock(&inode->i_lock); | 602 | spin_unlock(&inode->i_lock); |
606 | return ret; | 603 | return ret; |