diff options
-rw-r--r-- | fs/nfs/write.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 85ca49549b39..52cab65f91cf 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -786,7 +786,6 @@ static void nfs_inode_remove_request(struct nfs_page *req) | |||
786 | struct nfs_inode *nfsi = NFS_I(inode); | 786 | struct nfs_inode *nfsi = NFS_I(inode); |
787 | struct nfs_page *head; | 787 | struct nfs_page *head; |
788 | 788 | ||
789 | atomic_long_dec(&nfsi->nrequests); | ||
790 | if (nfs_page_group_sync_on_bit(req, PG_REMOVE)) { | 789 | if (nfs_page_group_sync_on_bit(req, PG_REMOVE)) { |
791 | head = req->wb_head; | 790 | head = req->wb_head; |
792 | 791 | ||
@@ -799,8 +798,10 @@ static void nfs_inode_remove_request(struct nfs_page *req) | |||
799 | spin_unlock(&mapping->private_lock); | 798 | spin_unlock(&mapping->private_lock); |
800 | } | 799 | } |
801 | 800 | ||
802 | if (test_and_clear_bit(PG_INODE_REF, &req->wb_flags)) | 801 | if (test_and_clear_bit(PG_INODE_REF, &req->wb_flags)) { |
803 | nfs_release_request(req); | 802 | nfs_release_request(req); |
803 | atomic_long_dec(&nfsi->nrequests); | ||
804 | } | ||
804 | } | 805 | } |
805 | 806 | ||
806 | static void | 807 | static void |