diff options
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index f6675d2c386c..883dd4a1c157 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -57,6 +57,8 @@ | |||
57 | #include <linux/nfs_fs.h> | 57 | #include <linux/nfs_fs.h> |
58 | #include <linux/nfs_mount.h> | 58 | #include <linux/nfs_mount.h> |
59 | #include <linux/nfs_page.h> | 59 | #include <linux/nfs_page.h> |
60 | #include <linux/backing-dev.h> | ||
61 | |||
60 | #include <asm/uaccess.h> | 62 | #include <asm/uaccess.h> |
61 | #include <linux/smp_lock.h> | 63 | #include <linux/smp_lock.h> |
62 | 64 | ||
@@ -395,7 +397,7 @@ int nfs_writepages(struct address_space *mapping, struct writeback_control *wbc) | |||
395 | out: | 397 | out: |
396 | clear_bit(BDI_write_congested, &bdi->state); | 398 | clear_bit(BDI_write_congested, &bdi->state); |
397 | wake_up_all(&nfs_write_congestion); | 399 | wake_up_all(&nfs_write_congestion); |
398 | writeback_congestion_end(); | 400 | congestion_end(WRITE); |
399 | return err; | 401 | return err; |
400 | } | 402 | } |
401 | 403 | ||
@@ -588,10 +590,10 @@ static void nfs_cancel_commit_list(struct list_head *head) | |||
588 | 590 | ||
589 | while(!list_empty(head)) { | 591 | while(!list_empty(head)) { |
590 | req = nfs_list_entry(head->next); | 592 | req = nfs_list_entry(head->next); |
593 | dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); | ||
591 | nfs_list_remove_request(req); | 594 | nfs_list_remove_request(req); |
592 | nfs_inode_remove_request(req); | 595 | nfs_inode_remove_request(req); |
593 | dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); | 596 | nfs_unlock_request(req); |
594 | nfs_clear_page_writeback(req); | ||
595 | } | 597 | } |
596 | } | 598 | } |
597 | 599 | ||